summaryrefslogtreecommitdiff
path: root/include/cpu.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-08-19 02:23:26 +0300
committerAlexander Graf <agraf@suse.de>2016-10-19 10:01:51 +0300
commit6f192ddcbd8e13351a8f13365e7c714e7b61a79e (patch)
tree7b96d3e0f38df77b1fe6f24220bccd1bf585668f /include/cpu.h
parente824cf3fb5857ef452bb84018da854328d816514 (diff)
downloadu-boot-6f192ddcbd8e13351a8f13365e7c714e7b61a79e.tar.xz
cpu: Add DMTF id and family fields
For SMBIOS tables we need to know the CPU family as well as CPU IDs. This patches allocates some space for them in the cpu device and populates it on x86. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/cpu.h')
-rw-r--r--include/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index bda53150a6..7d4486bbf3 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -21,6 +21,8 @@ struct cpu_platdata {
int cpu_id;
int ucode_version;
ulong device_id;
+ u16 family; /* DMTF CPU Family */
+ u32 id[2]; /* DMTF CPU Processor IDs */
};
/* CPU features - mostly just a placeholder for now */