aboutsummaryrefslogtreecommitdiff
path: root/board/samsung/goni
diff options
context:
space:
mode:
authorƁukasz Majewski2012-11-13 03:22:16 +0000
committerAnatolij Gustschin2012-11-14 11:21:12 +0100
commit0ecdab682c06b983b0ad30c69921b79e168e62b4 (patch)
treec066e7ec06b2285bc7ab34d64834ce64b751a659 /board/samsung/goni
parent2988e8662bba5b94c366bc3cb8eb26f0024f74de (diff)
arm:goni:pmic: Adjust GONI target platform board to new PMIC framework
Move pmic_init() function call from board_init() to power_init_board() to work with new PMIC/POWER framework. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/goni')
-rw-r--r--board/samsung/goni/goni.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 50e92104e15..ff76963925f 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -41,9 +41,16 @@ int board_init(void)
gd->bd->bi_arch_number = MACH_TYPE_GONI;
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-#if defined(CONFIG_POWER)
- pmic_init(I2C_5);
-#endif
+ return 0;
+}
+
+int power_init_board(void)
+{
+ int ret;
+
+ ret = pmic_init(I2C_5);
+ if (ret)
+ return ret;
return 0;
}