u-boot/arch/arm/mach-stm32mp
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
..
cmd_stm32prog arm: stm32mp: stm32prog: update multiplier is part-size is above SZ_1G 2025-01-31 08:57:39 +01:00
include/mach stm32mp: allow calling optee_get_reserved_memory() from U-Boot 2024-09-03 14:08:50 -06:00
stm32mp1 ARM: stm32mp: Fix dram_bank_mmu_setup() for ram_top=0 2025-03-10 09:39:30 +01:00
stm32mp2 smt32mp: add setup_mac_address for stm32mp25 2024-01-19 14:38:01 +01:00
boot_params.c fdt: Swap the signature for board_fdt_blob_setup() 2024-12-18 15:18:59 -06:00
bsec.c arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
cmd_stm32key.c cmd: Make use of U_BOOT_LONGHELP when missing 2024-06-26 13:17:51 -06:00
dram_init.c stm32mp: Fix board_get_usable_ram_top() 2025-01-31 10:13:10 +01:00
ecdsa_romapi.c ARM: stm32: Add missing header for save_boot_params 2023-06-16 11:13:55 +02:00
Kconfig ARM: stm32mp: enable data cache after LMB configuration for STM32MP1 2024-10-16 20:18:56 +02:00
Kconfig.13x bootstash: Do not provide a default address for all 2024-07-19 16:48:07 -06:00
Kconfig.15x bootstash: Do not provide a default address for all 2024-07-19 16:48:07 -06:00
Kconfig.25x bootstash: Do not provide a default address for all 2024-07-19 16:48:07 -06:00
Makefile arch: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:47 -06:00
soc.c smt32mp: add setup_mac_address for stm32mp25 2024-01-19 14:38:01 +01:00
syscon.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00