|
@@ -303,8 +303,10 @@ static int hsi2c_get_clk_details(struct s3c24x0_i2c_bus *i2c_bus)
|
|
unsigned int i = 0, utemp0 = 0, utemp1 = 0;
|
|
unsigned int i = 0, utemp0 = 0, utemp1 = 0;
|
|
unsigned int t_ftl_cycle;
|
|
unsigned int t_ftl_cycle;
|
|
|
|
|
|
-#if defined CONFIG_EXYNOS5
|
|
|
|
|
|
+#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
|
|
clkin = get_i2c_clk();
|
|
clkin = get_i2c_clk();
|
|
|
|
+#else
|
|
|
|
+ clkin = get_PCLK();
|
|
#endif
|
|
#endif
|
|
/* FPCLK / FI2C =
|
|
/* FPCLK / FI2C =
|
|
* (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2) + 8 + 2 * FLT_CYCLE
|
|
* (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2) + 8 + 2 * FLT_CYCLE
|