Skip to content

Commit 444cc6f

Browse files
committed
Merge tag 'u-boot-stm32-20250310' of https://source.denx.de/u-boot/custodians/u-boot-stm
ARM: stm32mp: Fix boot hang on STM32MP15xx with 1 GiB of DRAM.
2 parents 0fd7ee0 + f5ee0f2 commit 444cc6f

File tree

1 file changed

+1
-1
lines changed
  • arch/arm/mach-stm32mp/stm32mp1

1 file changed

+1
-1
lines changed

arch/arm/mach-stm32mp/stm32mp1/cpu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void dram_bank_mmu_setup(int bank)
8282
option = DCACHE_DEFAULT_OPTION;
8383
if (use_lmb &&
8484
(lmb_is_reserved_flags(i << MMU_SECTION_SHIFT, LMB_NOMAP) ||
85-
addr >= gd->ram_top)
85+
(gd->ram_top && addr >= gd->ram_top))
8686
)
8787
option = 0; /* INVALID ENTRY in TLB */
8888
set_section_dcache(i, option);

0 commit comments

Comments
 (0)