[U-Boot] [PATCH v5 25/26] arm:goni:pmic: Adjust GONI target platform board to new PMIC framework

Lukasz Majewski l.majewski at samsung.com
Mon Nov 5 18:28:27 CET 2012


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 at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
Cc: Minkyu Kang <mk7.kang at samsung.com>

Changes for v5:
        - New patch at v5.
---
 board/samsung/goni/goni.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 46254e0..2fc8471 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -41,9 +41,12 @@ 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)
+	return 0;
+}
+
+int power_init_board(void)
+{
 	pmic_init(I2C_5);
-#endif
 
 	return 0;
 }
-- 
1.7.2.3



More information about the U-Boot mailing list