]> git.dujemihanovic.xyz Git - u-boot.git/commit
include: fdtdec: decouple fdt_addr_t and phys_addr_t size
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:33:23 +0000 (01:33 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commit53c5093b2ec08c69b48183e23c5ada3c385053e1
tree82b2d54c64fb393d4ac2be2605c27ba87921c5e8
parent55cd74d691d3bb363236941397bbe17ce80c8a40
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>
Kconfig
include/fdtdec.h