summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/intel_common
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/cpu/intel_common
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/cpu/intel_common')
-rw-r--r--arch/x86/cpu/intel_common/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index d8a3d60ae7..39aa0f63c6 100644
--- a/arch/x86/cpu/intel_common/cpu.c
+++ b/arch/x86/cpu/intel_common/cpu.c
@@ -127,6 +127,7 @@ int cpu_intel_get_info(struct cpu_info *info, int bclk)
info->cpu_freq = ((msr.lo >> 8) & 0xff) * bclk * 1000000;
info->features = 1 << CPU_FEAT_L1_CACHE | 1 << CPU_FEAT_MMU |
1 << CPU_FEAT_UCODE | 1 << CPU_FEAT_DEVICE_ID;
+ info->address_width = cpu_phys_address_size();
return 0;
}