summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 12:45:26 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:21 +0800
commitaec7c1c565b0455a0523e8d486294843fd93bca9 (patch)
tree891c2349409006bbf39398864752e043f31d22a6 /arch/x86/include
parentc90b302d5f824a494905324a0abf6e69b7dc49f0 (diff)
downloadu-boot-aec7c1c565b0455a0523e8d486294843fd93bca9.tar.gz
u-boot-aec7c1c565b0455a0523e8d486294843fd93bca9.tar.xz
u-boot-aec7c1c565b0455a0523e8d486294843fd93bca9.zip
x86: cpu: Report address width from cpu_get_info()
Add support for this new field in the common code used by most x86 CPU drivers. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index 21a05dab7d..5b001bbee2 100644
--- a/arch/x86/include/asm/cpu.h
+++ b/arch/x86/include/asm/cpu.h
@@ -288,4 +288,13 @@ u32 cpu_get_family_model(void);
*/
u32 cpu_get_stepping(void);
+/**
+ * cpu_phys_address_size() - Get the physical address size in bits
+ *
+ * This is 32 for older CPUs but newer ones may support 36.
+ *
+ * @return address size (typically 32 or 36)
+ */
+int cpu_phys_address_size(void);
+
#endif