aboutsummaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorJohan Jonker <jbx6244@gmail.com>2023-03-13 01:33:23 +0100
committerKever Yang <kever.yang@rock-chips.com>2023-05-06 17:28:18 +0800
commit53c5093b2ec08c69b48183e23c5ada3c385053e1 (patch)
tree82b2d54c64fb393d4ac2be2605c27ba87921c5e8 /Kconfig
parent55cd74d691d3bb363236941397bbe17ce80c8a40 (diff)
downloadu-boot-53c5093b2ec08c69b48183e23c5ada3c385053e1.zip
u-boot-53c5093b2ec08c69b48183e23c5ada3c385053e1.tar.gz
u-boot-53c5093b2ec08c69b48183e23c5ada3c385053e1.tar.bz2
include: fdtdec: decouple fdt_addr_t and phys_addr_t size
The DT specification supports CPUs with both 32-bit and 64-bit addressing capabilities. In U-boot the fdt_addr_t and phys_addr_t size are coupled by a typedef. The MTD NAND drivers for 32-bit CPU's can describe partitions with a 64-bit reg property. These partitions synced from Linux end up with the wrong offset and sizes when only the lower 32-bit is passed. Decouple the fdt_addr_t and phys_addr_t size as they don't necessary match. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index a372378..70efb41 100644
--- a/Kconfig
+++ b/Kconfig
@@ -397,11 +397,19 @@ endif # EXPERT
config PHYS_64BIT
bool "64bit physical address support"
+ select FDT_64BIT
help
Say Y here to support 64bit physical memory address.
This can be used not only for 64bit SoCs, but also for
large physical address extension on 32bit SoCs.
+config FDT_64BIT
+ bool "64bit fdt address support"
+ help
+ Say Y here to support 64bit fdt addresses.
+ This can be used not only for 64bit SoCs, but also
+ for large address extensions on 32bit SoCs.
+
config HAS_ROM
bool
select BINMAN