diff options
author | Piotr Wilczek <p.wilczek@samsung.com> | 2013-11-20 10:43:50 +0100 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2013-12-05 07:39:38 +0100 |
commit | a6756bbdac43474193472b43309626e2c28d8100 (patch) | |
tree | 8ac2ee5524daf9625286e273d22531390d31f256 /drivers/i2c/s3c24x0_i2c.c | |
parent | 2d8f1e27695a8a9a3ed863a510be58284b6b411c (diff) | |
download | u-boot-imx-a6756bbdac43474193472b43309626e2c28d8100.zip u-boot-imx-a6756bbdac43474193472b43309626e2c28d8100.tar.gz u-boot-imx-a6756bbdac43474193472b43309626e2c28d8100.tar.bz2 |
driver:i2c:s3c24x0: fix clock init for hsi2c
Fix clock value initialisation for Exynos other than Exynos5 for hsi2c.
Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/s3c24x0_i2c.c')
-rw-r--r-- | drivers/i2c/s3c24x0_i2c.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 5dc35e7..1e9dba0 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -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 t_ftl_cycle; -#if defined CONFIG_EXYNOS5 +#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5) clkin = get_i2c_clk(); +#else + clkin = get_PCLK(); #endif /* FPCLK / FI2C = * (CLK_DIV + 1) * (TSCLK_L + TSCLK_H + 2) + 8 + 2 * FLT_CYCLE |