From fefbd3e0e5132a7655046e19c4c7305ec3490e11 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Mon, 11 May 2015 13:42:29 +0800 Subject: MLK-10873-1 imx:mx7d use pmic framework Use pmic framework to simplify code and make code clean. Signed-off-by: Peng Fan --- include/configs/mx7d_12x12_ddr3_arm2.h | 9 ++++----- include/configs/mx7d_12x12_lpddr3_arm2.h | 1 - include/configs/mx7d_19x19_ddr3_arm2.h | 9 ++++----- 3 files changed, 8 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/configs/mx7d_12x12_ddr3_arm2.h b/include/configs/mx7d_12x12_ddr3_arm2.h index b6c07dba9f..5ff3625c87 100644 --- a/include/configs/mx7d_12x12_ddr3_arm2.h +++ b/include/configs/mx7d_12x12_ddr3_arm2.h @@ -33,11 +33,10 @@ #define CONFIG_SYS_I2C_MXC #define CONFIG_SYS_I2C_SPEED 100000 /* PMIC */ -#define CONFIG_PFUZE3000_PMIC_I2C -#ifdef CONFIG_PFUZE3000_PMIC_I2C -#define CONFIG_PMIC_I2C_BUS 0 -#define CONFIG_PMIC_I2C_SLAVE 0x8 -#endif +#define CONFIG_POWER +#define CONFIG_POWER_I2C +#define CONFIG_POWER_PFUZE300 +#define CONFIG_POWER_PFUZE300_I2C_ADDR 0x08 #endif #ifdef CONFIG_SYS_USE_SPINOR diff --git a/include/configs/mx7d_12x12_lpddr3_arm2.h b/include/configs/mx7d_12x12_lpddr3_arm2.h index ece93b1077..1ad45c121b 100644 --- a/include/configs/mx7d_12x12_lpddr3_arm2.h +++ b/include/configs/mx7d_12x12_lpddr3_arm2.h @@ -44,7 +44,6 @@ #define CONFIG_ENV_IS_IN_MMC #endif -/* PMIC */ /* PMIC */ #define CONFIG_POWER #define CONFIG_POWER_I2C diff --git a/include/configs/mx7d_19x19_ddr3_arm2.h b/include/configs/mx7d_19x19_ddr3_arm2.h index dddc248169..d855d00069 100644 --- a/include/configs/mx7d_19x19_ddr3_arm2.h +++ b/include/configs/mx7d_19x19_ddr3_arm2.h @@ -53,11 +53,10 @@ #define CONFIG_SYS_I2C_MXC #define CONFIG_SYS_I2C_SPEED 100000 /* PMIC */ -#define CONFIG_PFUZE3000_PMIC_I2C -#ifdef CONFIG_PFUZE3000_PMIC_I2C -#define CONFIG_PMIC_I2C_BUS 0 -#define CONFIG_PMIC_I2C_SLAVE 0x8 -#endif +#define CONFIG_POWER +#define CONFIG_POWER_I2C +#define CONFIG_POWER_PFUZE300 +#define CONFIG_POWER_PFUZE300_I2C_ADDR 0x08 #endif #ifdef CONFIG_SYS_USE_SPINOR -- cgit v1.2.3