diff options
author | Marek Vasut <marex@denx.de> | 2024-04-14 20:37:20 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-04-18 16:37:19 -0600 |
commit | 16da853114efa97682920356a0eaa6a34270477f (patch) | |
tree | 5a7ccba81b6873d6a830b6ed088397d51d9c8de6 /drivers/ddr/microchip/ddr2_timing.h | |
parent | 91f5dac3f6aff7e1f88adcd91d98b0006e85789b (diff) |
boot: fdt: Turn all addresses and sizes into u64
In case of systems where DRAM bank ends at the edge of 32bit boundary,
start + size calculations would overflow. This happens on STM32MP15xx
with 1 DRAM bank starting at 0xc0000000 and 1 GiB of DRAM. This is a
usual 32bit system DRAM size overflow, fix it by doing all DRAM size
and offset calculations using u64 types. This also covers a case where
a 32bit PAE system might be able to address up to 36bits of DRAM.
Fixes: a4df06e41fa2 ("boot: fdt: Change type of env_get_bootm_low() to phys_addr_t")
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/ddr/microchip/ddr2_timing.h')
0 files changed, 0 insertions, 0 deletions