]> git.sur5r.net Git - u-boot/blobdiff - drivers/i2c/designware_i2c.h
EXYNOS: Resolve the i2c compilation error
[u-boot] / drivers / i2c / designware_i2c.h
index e004152ac34b200b69faeb4fbb2f48c718c6f9b0..2faf4a8717a31f1868dfa70cebb0f12b1b7d5694 100644 (file)
@@ -60,14 +60,16 @@ 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) */
 #define MIN_SS_SCL_HIGHTIME    4000
-#define MIN_SS_SCL_LOWTIME     5000
-#define MIN_FS_SCL_HIGHTIME    800
-#define MIN_FS_SCL_LOWTIME     1700
+#define MIN_SS_SCL_LOWTIME     4700
+#define MIN_FS_SCL_HIGHTIME    600
+#define MIN_FS_SCL_LOWTIME     1300
 #define MIN_HS_SCL_HIGHTIME    60
 #define MIN_HS_SCL_LOWTIME     160