]> git.baikalelectronics.ru Git - uboot.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)
commit40b198ce172fb363b06d22ec75fe5230fd8a2098
tree82b2d54c64fb393d4ac2be2605c27ba87921c5e8
parentaca720f22698f91d6b1f35d06e4f96a22665dc9e
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