summaryrefslogtreecommitdiff
path: root/board/samsung/smdk5250/smdk5250.c
diff options
context:
space:
mode:
authorRajeshwari Shinde <rajeshwari.s@samsung.com>2012-12-10 01:55:48 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2012-12-11 12:59:59 +0900
commit211e8438cf61df1e2a53b6b979a8e4224158d5dc (patch)
treea9f068c55d2c10bcea3c80ea25e6df3c6f138092 /board/samsung/smdk5250/smdk5250.c
parent857765e9aaeb9b80ae29e4d4e4916979d07040ba (diff)
downloadu-boot-imx-211e8438cf61df1e2a53b6b979a8e4224158d5dc.zip
u-boot-imx-211e8438cf61df1e2a53b6b979a8e4224158d5dc.tar.gz
u-boot-imx-211e8438cf61df1e2a53b6b979a8e4224158d5dc.tar.bz2
SMDK5250: Enable pmic MAX77686
Enabled pmic MAX77686 for SMDK5250. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/smdk5250/smdk5250.c')
-rw-r--r--board/samsung/smdk5250/smdk5250.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 4c50342..9c926d6 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -30,7 +30,7 @@
#include <asm/arch/mmc.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/sromc.h>
-#include <pmic.h>
+#include <power/pmic.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -65,9 +65,6 @@ static int smc9115_pre_init(void)
int board_init(void)
{
gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
-#if defined(CONFIG_PMIC)
- pmic_init();
-#endif
#ifdef CONFIG_EXYNOS_SPI
spi_init();
#endif
@@ -87,6 +84,16 @@ int dram_init(void)
return 0;
}
+#if defined(CONFIG_POWER)
+int power_init_board(void)
+{
+ if (pmic_init(I2C_PMIC))
+ return -1;
+ else
+ return 0;
+}
+#endif
+
void dram_init_banksize(void)
{
gd->bd->bi_dram[0].start = PHYS_SDRAM_1;