]> git.ipfire.org Git - thirdparty/u-boot.git/commit
ARM: uniphier: Move uniphier_mem_map_init() call into dram_init()
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 5 Apr 2024 08:37:15 +0000 (17:37 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2024 14:53:31 +0000 (08:53 -0600)
commit4341fb73326907faecfc9e3b711bbfcd3937b525
tree52fdcdbbf87dfa777fa87e8ac9e27577003f5d0a
parent51b2f4f085593d36a82c1a2b5916751584490544
ARM: uniphier: Move uniphier_mem_map_init() call into dram_init()

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@socionext.com>
arch/arm/mach-uniphier/dram_init.c