]> git.sur5r.net Git - u-boot/commitdiff
arm:goni:pmic: Adjust GONI target platform board to new PMIC framework
authorŁukasz Majewski <l.majewski@samsung.com>
Tue, 13 Nov 2012 03:22:16 +0000 (03:22 +0000)
committerAnatolij Gustschin <agust@denx.de>
Wed, 14 Nov 2012 10:21:12 +0000 (11:21 +0100)
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>
board/samsung/goni/goni.c

index 50e92104e15dee063159118bbbe6165fd43b812f..ff76963925fab27b6c545cdb096b51e110775744 100644 (file)
@@ -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;
 }