|
@@ -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;
|