[PATCH] ARM: uniphier: Move uniphier_mem_map_init() call into dram_init()

Tom Rini trini at konsulko.com
Fri Apr 12 20:52:39 CEST 2024


On Fri, Apr 05, 2024 at 05:37:15PM +0900, Kunihiko Hayashi wrote:

> The function uniphier_mem_map_init() is to change global variable
> 'mem_map', which is referenced to get_page_table_size() to calculate
> the size of page table.
> 
> However, uniphier_mem_map_init() is called after get_page_table_size(),
> so the size of page table and 'mem_map' become inconsist each other.
> After all, U-Boot fails to boot on chip with memory map different from
> default map,
> 
> uniphier_mem_map_init() should be moved to dram_init(), which is
> called before get_page_table_size().
> 
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240412/765dde90/attachment.sig>


More information about the U-Boot mailing list