cpu: Support querying the address width
[oweals/u-boot.git] / include / cpu.h
index 28dd48feb8f0a6c1ce8aceaa2d8d15b8d49c39aa..6b1b6b37b3bf2446b1f840dc9beb3cd1f117e25a 100644 (file)
@@ -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 {