sunxi: board: Print error after power initialization fails
authorOlliver Schinagl <oliver@schinagl.nl>
Wed, 21 Nov 2018 18:05:25 +0000 (20:05 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 7 Dec 2018 16:54:33 +0000 (22:24 +0530)
commita8011eb84dfac5187cebf00ed8bc981bdb5c1fa1
tree8cbaba1a58369efab63f43b07146f34c76e50aeb
parent57dbc151437b36cc1105857d222df28b095236d7
sunxi: board: Print error after power initialization fails

Currently during init, we enable all power, then enable the dram and
after that check whether there was an error during power-up.

This makes little sense, we should enable power and then check if power
was brought up properly before we continue to initialize other things.

This patch moves the DRAM init after the power failure check.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Priit Laes <plaes@plaes.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
board/sunxi/board.c