summaryrefslogtreecommitdiff
path: root/drivers/i2c/designware_i2c.h
diff options
context:
space:
mode:
authorArmando Visconti <armando.visconti@st.com>2012-12-06 00:04:19 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:17:32 -0700
commitd40d914c06e73c2a7823c2a6dd164d1c10529f84 (patch)
tree1c8823718128fa2569467f2b2d445f11eabdbea3 /drivers/i2c/designware_i2c.h
parentea31b7a7be738d7f4048f9fbe20fe02356999d44 (diff)
downloadu-boot-imx-d40d914c06e73c2a7823c2a6dd164d1c10529f84.zip
u-boot-imx-d40d914c06e73c2a7823c2a6dd164d1c10529f84.tar.gz
u-boot-imx-d40d914c06e73c2a7823c2a6dd164d1c10529f84.tar.bz2
designware_i2c.h: Define IC_CLK only if not already defined in config file
Signed-off-by: Armando Visconti <armando.visconti@st.com>
Diffstat (limited to 'drivers/i2c/designware_i2c.h')
-rw-r--r--drivers/i2c/designware_i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h
index 0dc8884..2faf4a8 100644
--- a/drivers/i2c/designware_i2c.h
+++ b/drivers/i2c/designware_i2c.h
@@ -60,7 +60,9 @@ struct i2c_regs {
u32 ic_tx_abrt_source;
};
+#if !defined(IC_CLK)
#define IC_CLK 166
+#endif
#define NANO_TO_MICRO 1000
/* High and low times in different speed modes (in ns) */