]> git.sur5r.net Git - u-boot/commitdiff
ti_armv7_common: i2c: do not define DM_I2C for spl
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 18 Jul 2016 09:40:59 +0000 (15:10 +0530)
committerHeiko Schocher <hs@denx.de>
Tue, 26 Jul 2016 06:39:44 +0000 (08:39 +0200)
Since omap's spl doesn't support DM currently, do not define
DM_I2C for spl build.

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

index ba7cf15242f6422011b05ac4045d949269ea033b..b996f358d2844e4596749e97f7828618acfa1df7 100644 (file)
 /* Timer information. */
 #define CONFIG_SYS_PTV                 2       /* Divisor: 2^(PTV+1) => 8 */
 
+/*
+ * Disable DM_* for SPL build and can be re-enabled after adding
+ * DM support in SPL
+ */
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_I2C
+#endif
+
 /* I2C IP block */
 #define CONFIG_I2C
 #define CONFIG_SYS_I2C