projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpu: Support querying the address width
[oweals/u-boot.git]
/
drivers
/
cpu
/
cpu_sandbox.c
diff --git
a/drivers/cpu/cpu_sandbox.c
b/drivers/cpu/cpu_sandbox.c
index ff87e8adca3a0f9fb2d76d03efca57b537ba3709..05b384f6a4577127eabd5db3f3d65d8e382806c2 100644
(file)
--- a/
drivers/cpu/cpu_sandbox.c
+++ b/
drivers/cpu/cpu_sandbox.c
@@
-19,6
+19,7
@@
int cpu_sandbox_get_info(struct udevice *dev, struct cpu_info *info)
{
info->cpu_freq = 42 * 42 * 42 * 42 * 42;
info->features = 0x42424242;
+ info->address_width = IS_ENABLED(CONFIG_PHYS_64BIT) ? 64 : 32;
return 0;
}