summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-06-15 14:23:36 -0500
committerDavid Lechner <[email protected]>2026-06-24 10:06:16 -0500
commit58c7145d687a6442c077b0ed0a8c57012de347af (patch)
treea5f6b7ccfdb1e228dedb16ef5b3f4ce853a053a7 /include
parent6f274732f7960319ea0337e34210d440753ff11e (diff)
arm: mediatek: mt8189: fix gd->bd->bi_dram[0].size
Use board_get_usable_ram_top() instead of get_effective_memsize() to set gd->ram_top to something <= 4GiB. Both board_get_usable_ram_top() and get_effective_memsize() are used to set gd->ram_top in setup_dest_addr(). However, get_effective_memsize() also sets gd->bd->bi_dram[0].size in dram_init_banksize(), which is undesirable. We can just use board_get_usable_ram_top() now to set gd->ram_top to the correct value instead. This is possible now, thanks to LMB_LIMIT_DMA_BELOW_RAM_TOP being set by default for 64-bit Mediatek ARM SoCs. Fixes: a7c682565b4b ("arm: mediatek: add support of MT8189 SoC family") Link: https://patch.msgid.link/[email protected] Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions