diff options
author | Johan Jonker <jbx6244@gmail.com> | 2023-03-13 01:33:09 +0100 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-05-06 17:28:18 +0800 |
commit | 55cd74d691d3bb363236941397bbe17ce80c8a40 (patch) | |
tree | d2fd456bfbb9c576802e69ba811d2901ded40905 /arch/arm/mach-stm32mp/spl.c | |
parent | 84404d8165387d9bdb990458f3503d58fb1fd389 (diff) | |
download | u-boot-55cd74d691d3bb363236941397bbe17ce80c8a40.tar.gz u-boot-55cd74d691d3bb363236941397bbe17ce80c8a40.tar.bz2 u-boot-55cd74d691d3bb363236941397bbe17ce80c8a40.zip |
arm: stm32mp: spl: fix function with fdt_addr_t input
The fdt_addr_t and phys_addr_t size have been decoupled.
A 32bit CPU can expect 64-bit data from the device tree parser,
so fix ofnode_get_addr_size function with fdt_addr_t input to
be able to handle both sizes for stm32mp SoC in spl.c file.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-stm32mp/spl.c')
-rw-r--r-- | arch/arm/mach-stm32mp/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c index 19d9fe04e0..6c79259b2c 100644 --- a/arch/arm/mach-stm32mp/spl.c +++ b/arch/arm/mach-stm32mp/spl.c @@ -112,7 +112,7 @@ uint32_t stm32mp_get_dram_size(void) static int optee_get_reserved_memory(uint32_t *start, uint32_t *size) { - phys_size_t fdt_mem_size; + fdt_addr_t fdt_mem_size; fdt_addr_t fdt_start; ofnode node; |