From 740d5d34b12f49b5e6c48e06dd8f519d9563a7e3 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 6 Mar 2016 19:27:49 -0700 Subject: cpu: Add support for microcode version and CPU ID Some CPUs use microcode and each core can have a different version of microcode loaded. Also some CPUs support the concept of an integer ID used for identification purposes. Add support for these in the CPU uclass. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- include/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cpu.h') diff --git a/include/cpu.h b/include/cpu.h index bfb0db2e2c..bda53150a6 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -15,15 +15,20 @@ * device. * * @cpu_id: Platform-specific way of identifying the CPU. + * @ucode_version: Microcode version, if CPU_FEAT_UCODE is set */ struct cpu_platdata { int cpu_id; + int ucode_version; + ulong device_id; }; /* CPU features - mostly just a placeholder for now */ enum { CPU_FEAT_L1_CACHE = 0, /* Supports level 1 cache */ CPU_FEAT_MMU = 1, /* Supports virtual memory */ + CPU_FEAT_UCODE = 2, /* Requires/uses microcode */ + CPU_FEAT_DEVICE_ID = 3, /* Provides a device ID */ CPU_FEAT_COUNT, }; -- cgit v1.2.1