Skip to content

Commit

Permalink
Merge tag 'u-boot-stm32-20230106' of https://gitlab.denx.de/u-boot/cu…
Browse files Browse the repository at this point in the history
…stodians/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
  • Loading branch information
trini committed Jan 6, 2023
2 parents bd7fbd5 + a2e0b04 commit 9ddcdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-stm32mp/dram_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)

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

0 comments on commit 9ddcdcc

Please sign in to comment.