浏览代码

designware_i2c.h: Define IC_CLK only if not already defined in config file

Signed-off-by: Armando Visconti <armando.visconti@st.com>
Armando Visconti 12 年之前
父节点
当前提交
d40d914c06
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/i2c/designware_i2c.h

+ 2 - 0
drivers/i2c/designware_i2c.h

@@ -60,7 +60,9 @@ struct i2c_regs {
 	u32 ic_tx_abrt_source;
 	u32 ic_tx_abrt_source;
 };
 };
 
 
+#if !defined(IC_CLK)
 #define IC_CLK			166
 #define IC_CLK			166
+#endif
 #define NANO_TO_MICRO		1000
 #define NANO_TO_MICRO		1000
 
 
 /* High and low times in different speed modes (in ns) */
 /* High and low times in different speed modes (in ns) */