diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-08 16:57:20 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-16 14:36:28 +0800 |
commit | 600f584d8191799acc19464c4a07f3056083057a (patch) | |
tree | 87bbba5d9ad49ad045b524d5ce9a1a8d60abd508 /include/cpu.h | |
parent | 98036fbdaf0ac1d6dc3ab3cb6db24c020bb65d6f (diff) | |
download | u-boot-600f584d8191799acc19464c4a07f3056083057a.tar.gz u-boot-600f584d8191799acc19464c4a07f3056083057a.tar.bz2 u-boot-600f584d8191799acc19464c4a07f3056083057a.zip |
cpu: Support querying the address width
Different CPUs may support different address widths, meaning the amount of
memory they can address. Add a property for this to the cpu_info struct.
Signed-off-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h index 28dd48feb8..6b1b6b37b3 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -44,10 +44,12 @@ enum { * * @cpu_freq: Current CPU frequency in Hz * @features: Flags for supported CPU features + * @address_width: Width of the CPU address space in bits (e.g. 32) */ struct cpu_info { ulong cpu_freq; ulong features; + uint address_width; }; struct cpu_ops { |