summaryrefslogtreecommitdiff
path: root/board/samsung/goni
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2012-11-13 03:22:16 +0000
committerAnatolij Gustschin <agust@denx.de>2012-11-14 11:21:12 +0100
commit0ecdab682c06b983b0ad30c69921b79e168e62b4 (patch)
treec066e7ec06b2285bc7ab34d64834ce64b751a659 /board/samsung/goni
parent2988e8662bba5b94c366bc3cb8eb26f0024f74de (diff)
downloadu-boot-imx-0ecdab682c06b983b0ad30c69921b79e168e62b4.zip
u-boot-imx-0ecdab682c06b983b0ad30c69921b79e168e62b4.tar.gz
u-boot-imx-0ecdab682c06b983b0ad30c69921b79e168e62b4.tar.bz2
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 50e9210..ff76963 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;
}