Patchwork [U-Boot,v4,06/24] pmic: Enable power_board_init() support at TRATS

login
register
mail settings
Submitter Łukasz Majewski
Date Oct. 30, 2012, 4:57 p.m.
Message ID <1351616239-21079-7-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/195543/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Łukasz Majewski - Oct. 30, 2012, 4:57 p.m.
Enable support for power_board_init() method at TRATS board.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Changes for v2:
- None
Changes for v3:
- Remove CONFIG_POWER_INIT flag
Changes for v4:
- None
---
 board/samsung/trats/trats.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

Patch

diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index 80ec4ad..de14f0d 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -68,10 +68,6 @@  int board_init(void)
 	check_hw_revision();
 	printf("HW Revision:\t0x%x\n", board_rev);
 
-#if defined(CONFIG_PMIC)
-	pmic_init(I2C_5);
-#endif
-
 	return 0;
 }
 
@@ -90,6 +86,13 @@  void i2c_init_board(void)
 	s5p_gpio_direction_output(&gpio2->y4, 1, 1);
 }
 
+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) +