ARM: uniphier: make dram_init() independent of SG_MEMCONF
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jul 2019 11:07:43 +0000 (20:07 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jul 2019 13:42:04 +0000 (22:42 +0900)
commit6f47c99423c67e4cda251ac43a404e16af616ff9
treeb963c33d8ab20d42e873c17bbaaee03145d7fcc6
parent34ded875067306961a684186cf23227b58802b28
ARM: uniphier: make dram_init() independent of SG_MEMCONF

Currently, dram_init() code relies on the fact the DRAM size
configuration exists in the SG_MEMCONF register.

This will no longer be true for a planned new SoC, which will
replace SG_MEMCONF with a different register.

Refactor the hook in a more generic way.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/dram_init.c