Patchwork [U-Boot,v5,26/26] arm:universal_c210:pmic: Adjust C210 Universal target platform board to new PMIC framework

login
register
mail settings
Submitter Łukasz Majewski
Date Nov. 5, 2012, 5:28 p.m.
Message ID <1352136508-14198-27-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/197251/
State Superseded
Delegated to: Minkyu Kang
Headers show

Comments

Łukasz Majewski - Nov. 5, 2012, 5:28 p.m.
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>

Changes for v5:
- New patch at v5.
---
 board/samsung/universal_c210/universal.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
Minkyu Kang - Nov. 8, 2012, 10:18 a.m.
On 06/11/12 02:28, Lukasz Majewski wrote:
> 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>
> 
> Changes for v5:
> - New patch at v5.
> ---
>  board/samsung/universal_c210/universal.c |   11 +++++++----
>  1 files changed, 7 insertions(+), 4 deletions(-)
> 

Acked-by: Minkyu Kang <mk7.kang@samsung.com>

Thanks.
Minkyu Kang.

Patch

diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index a50fa7b..35156cb 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -58,16 +58,19 @@  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)
+{
+	pmic_init(I2C_5);
+
+	return 0;
+}
+
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +