The default dcdc3 voltage is only 1.2V after reset on the Cubietruck. This might be too low for correct DRAM controller operation at high clock frequencies and even the initialization itself may theoretically fail. So we initialize AXP first. And only then move on to the DRAM setup.
Signed-off-by: Siarhei Siamashka <[email protected]> --- board/sunxi/board.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 27feecc..2f37bef 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -142,12 +142,6 @@ void sunxi_board_init(void) int power_failed = 0; #if !defined(CONFIG_SUN6I) && !defined(CONFIG_SUN8I) unsigned long ramsize; - - printf("DRAM:"); - ramsize = sunxi_dram_init(); - printf(" %lu MiB\n", ramsize >> 20); - if (!ramsize) - hang(); #endif #ifdef CONFIG_AXP152_POWER @@ -182,6 +176,12 @@ void sunxi_board_init(void) #endif #if !defined(CONFIG_SUN6I) && !defined(CONFIG_SUN8I) + printf("DRAM:"); + ramsize = sunxi_dram_init(); + printf(" %lu MiB\n", ramsize >> 20); + if (!ramsize) + hang(); + /* * Only clock up the CPU to full speed if we are reasonably * assured it's being powered with suitable core voltage -- 1.8.3.2 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
