summaryrefslogtreecommitdiff
path: root/include/configs/ti_armv7_common.h
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-07-18 09:40:59 (GMT)
committerHeiko Schocher <hs@denx.de>2016-07-26 06:39:44 (GMT)
commiteff6b7731b03f3a387d83a2a5b7b78a3037e74b0 (patch)
tree36533704d02f79cfc693c7b2d011bbe88411ed11 /include/configs/ti_armv7_common.h
parent5142ac791608a5e166f3f1b76b19adcd01aceabc (diff)
downloadu-boot-eff6b7731b03f3a387d83a2a5b7b78a3037e74b0.tar.xz
ti_armv7_common: i2c: do not define DM_I2C for spl
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>
Diffstat (limited to 'include/configs/ti_armv7_common.h')
-rw-r--r--include/configs/ti_armv7_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index ba7cf15..b996f35 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -108,6 +108,14 @@
/* 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