|
@@ -28,6 +28,8 @@
|
|
|
#include <asm/imx-common/video.h>
|
|
|
#include <asm/arch/crm_regs.h>
|
|
|
#include <pca953x.h>
|
|
|
+#include <power/pmic.h>
|
|
|
+#include "../common/pfuze.h"
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
@@ -57,6 +59,8 @@ DECLARE_GLOBAL_DATA_PTR;
|
|
|
PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED | \
|
|
|
PAD_CTL_DSE_40ohm | PAD_CTL_SRE_FAST)
|
|
|
|
|
|
+#define I2C_PMIC 1
|
|
|
+
|
|
|
int dram_init(void)
|
|
|
{
|
|
|
gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
|
|
@@ -508,6 +512,17 @@ int board_spi_cs_gpio(unsigned bus, unsigned cs)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
+int power_init_board(void)
|
|
|
+{
|
|
|
+ struct pmic *p;
|
|
|
+
|
|
|
+ p = pfuze_common_init(I2C_PMIC);
|
|
|
+ if (!p)
|
|
|
+ return -ENODEV;
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
#ifdef CONFIG_CMD_BMODE
|
|
|
static const struct boot_mode board_boot_modes[] = {
|
|
|
/* 4 bit bus width */
|