Skip to content

Commit 9ddcdcc

Browse files
committed
Merge tag 'u-boot-stm32-20230106' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- stm32mp: Fix board_get_usable_ram_top(): workaround to avoid issue after the commit 777aaaa ("common/memsize.c: Fix get_effective_memsize() to check for overflow") because the effective DDR effective size is reduce by 4KiB and sometime the board hang on boot
2 parents bd7fbd5 + a2e0b04 commit 9ddcdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-stm32mp/dram_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
5151

5252
/* found enough not-reserved memory to relocated U-Boot */
5353
lmb_init(&lmb);
54-
lmb_add(&lmb, gd->ram_base, gd->ram_size);
54+
lmb_add(&lmb, gd->ram_base, get_effective_memsize());
5555
boot_fdt_add_mem_rsv_regions(&lmb, (void *)gd->fdt_blob);
5656
/* add 8M for reserved memory for display, fdt, gd,... */
5757
size = ALIGN(SZ_8M + CONFIG_SYS_MALLOC_LEN + total_size, MMU_SECTION_SIZE),

0 commit comments

Comments
 (0)