[PATCH v5 4/7] rpi: Add a local get_effective_memsize()

Simon Glass sjg at chromium.org
Sun Jun 7 20:19:07 CEST 2026


Hi Ilias,

On 2026-06-04T07:37:05, Ilias Apalodimas <ilias.apalodimas at linaro.org> wrote:
> rpi: Add a local get_effective_memsize()
>
> We are about to change the place we call dram_init_banksize().
> The goal is to have all the information we need to pick a proper
> relocation address in gd->dram[].
>
> However, the RPI boards, and specifically the tested rpi4, seems
> to hang if we relocate anywhere above the address returned from
> bcm2835_mbox_call_prop().
> So store that address and return it on get_effective_memsize()
> which is used to calculate ram_top.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> board/raspberrypi/rpi/rpi.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>
Tested-by: Simon Glass <sjg at chromium.org>   # rpi, rpi4

Regards,
Simon


More information about the U-Boot mailing list