u-boot/arch/arm/mach-stm32mp/stm32mp1
Marek Vasut f5ee0f2bf7 ARM: stm32mp: Fix dram_bank_mmu_setup() for ram_top=0
On STM32MP15xx with 1 GiB of DRAM, the gd->ram_top becomes 0,
because DRAM base 0xc0000000 + DRAM size 0x40000000 leads to
gd->ram_top overflow which resets it to 0. Handle this special
case simply by checking for gd->ram_top being zero, and if it
is, assume there is no addr >= gd->ram_top .

This fixes boot hang on STM32MP15xx with 1 GiB of DRAM.

Fixes: 25fb58e88a ("ARM: stm32mp: Fix dram_bank_mmu_setup() for LMB located above ram_top")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2025-03-10 09:39:30 +01:00
..
cpu.c ARM: stm32mp: Fix dram_bank_mmu_setup() for ram_top=0 2025-03-10 09:39:30 +01:00
fdt.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
psci.c ARM: stm32: Fix secure_waitbits() mask check 2024-09-25 19:40:46 +02:00
pwr_regulator.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
spl.c stm32mp: allow calling optee_get_reserved_memory() from U-Boot 2024-09-03 14:08:50 -06:00
stm32mp13x.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
stm32mp15x.c Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
tzc400.c stm32mp2: initial support 2023-11-13 10:55:38 +01:00