]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
defconfig: am335x_boneblack_vboot: enable i2c driver model
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 18 Jul 2016 09:41:02 +0000 (15:11 +0530)
committerHeiko Schocher <hs@denx.de>
Tue, 26 Jul 2016 06:40:20 +0000 (08:40 +0200)
Enable i2c driver model for am335x_boneblack_vboot as omap i2c
supports driver model. Also enable CONFIG_DM_I2C_COMPAT for
legacy drivers of i2c devices.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/am335x_boneblack_vboot_defconfig
include/configs/ti_armv7_common.h

index 903f5180706ceb563f7c00023012869142bf6666..c2f09cb289fd9fb1fa297753d4aba1e017e1b398 100644 (file)
@@ -49,3 +49,4 @@ CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
 CONFIG_G_DNL_VENDOR_NUM=0x0451
 CONFIG_G_DNL_PRODUCT_NUM=0xd022
+CONFIG_DM_I2C=y
index b996f358d2844e4596749e97f7828618acfa1df7..9f947eeb87eda98d859b983e649adfc7ab9b33d0 100644 (file)
 
 /* I2C IP block */
 #define CONFIG_I2C
+#ifndef CONFIG_DM_I2C
 #define CONFIG_SYS_I2C
+#else
+/*
+ * Enable CONFIG_DM_I2C_COMPAT temporarily until all the i2c client
+ * devices are adopted to DM
+ */
+#define CONFIG_DM_I2C_COMPAT
+#endif
 
 /* MMC/SD IP block */
 #define CONFIG_MMC