summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2012-11-13 03:22:17 +0000
committerAnatolij Gustschin <agust@denx.de>2012-11-14 11:21:12 +0100
commitf5a7004cf772ad93dbfb1224cc02d882282c914e (patch)
tree93ac4ac9c42eb53fbbd87dbdd2d2e83c9b5efca8 /board
parent0ecdab682c06b983b0ad30c69921b79e168e62b4 (diff)
downloadu-boot-imx-f5a7004cf772ad93dbfb1224cc02d882282c914e.zip
u-boot-imx-f5a7004cf772ad93dbfb1224cc02d882282c914e.tar.gz
u-boot-imx-f5a7004cf772ad93dbfb1224cc02d882282c914e.tar.bz2
arm:universal_c210:pmic: Adjust C210 Universal 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')
-rw-r--r--board/samsung/universal_c210/universal.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 9849c6d..36a0472 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -58,16 +58,23 @@ int board_init(void)
gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
-#if defined(CONFIG_POWER)
- pmic_init(I2C_5);
-#endif
-
check_hw_revision();
printf("HW Revision:\t0x%x\n", board_rev);
return 0;
}
+int power_init_board(void)
+{
+ int ret;
+
+ ret = pmic_init(I2C_5);
+ if (ret)
+ return ret;
+
+ return 0;
+}
+
int dram_init(void)
{
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +