[U-Boot] [PATCH v2 12/12] odroid: config: enable dm pmic, dm regulator and max77686 driver

Przemyslaw Marczak p.marczak at samsung.com
Tue Mar 3 17:24:43 CET 2015


This change enables the configs required to init and setup
max77686 regulator driver, using the new driver model pmic API.

Enabled configs:
- CONFIG_DM_PMIC_I2C
- CONFIG_DM_PMIC_MAX77686
- CONFIG_DM_REGULATOR
- CONFIG_DM_REGULATOR_MAX77686

And removes the unused:
- CONFIG_DM_I2C_COMPAT
- CONFIG_POWER
- CONFIG_POWER_I2C
- CONFIG_POWER_MAX77686

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
---
Changes V2:
- config: enable dm i2c; cleanup
- remove CONFIG_DM_I2C_COMPAT
- enable regulator command
---
 configs/odroid_defconfig | 1 -
 include/configs/odroid.h | 9 ++++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/configs/odroid_defconfig b/configs/odroid_defconfig
index 816a3fa..4116137 100644
--- a/configs/odroid_defconfig
+++ b/configs/odroid_defconfig
@@ -4,4 +4,3 @@ CONFIG_TARGET_ODROID=y
 CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="exynos4412-odroid"
 CONFIG_DM_I2C=y
-CONFIG_DM_I2C_COMPAT=y
diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 8b47537..d2bc7ee 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -182,9 +182,12 @@
 #define CONFIG_SYS_I2C_S3C24X0_SLAVE	0
 
 /* POWER */
-#define CONFIG_POWER
-#define CONFIG_POWER_I2C
-#define CONFIG_POWER_MAX77686
+#define CONFIG_DM_PMIC
+#define CONFIG_DM_PMIC_CMD
+#define CONFIG_DM_PMIC_MAX77686
+#define CONFIG_DM_REGULATOR
+#define CONFIG_DM_REGULATOR_CMD
+#define CONFIG_DM_REGULATOR_MAX77686
 
 /* GPT */
 #define CONFIG_RANDOM_UUID
-- 
1.9.1



More information about the U-Boot mailing list