From 969abe3c4bc463a857406525f640eb71c7ab0a44 Mon Sep 17 00:00:00 2001 From: Hyunki Koo Date: Mon, 3 Mar 2014 16:09:30 +0900 Subject: [PATCH] i2c: s3c2410: set NCLK for FIMC_I2C Change-Id: I5d292d70e0f04a718086f870c788237b873ae455 Signed-off-by: Hyunki Koo --- drivers/i2c/busses/i2c-s3c2410.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index f18eea60e68c..80eb0fc63476 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -52,6 +52,7 @@ static LIST_HEAD(drvdata_list); #define S3C2410_IICADD 0x08 #define S3C2410_IICDS 0x0C #define S3C2440_IICLC 0x10 +#define S3C2440_CLK_BYPASS 0x14 #define S3C2440_IICINT 0x20 #define S3C2440_IICNCLK_DIV2 0x28 @@ -896,6 +897,7 @@ static int s3c24xx_i2c_calcdivisor(struct s3c24xx_i2c *i2c, if (i2c->quirks & QUIRK_FIMC_I2C) { /* Input NCLK is used directly in i2c */ writel(0, i2c->regs + S3C2440_IICNCLK_DIV2); + writeb(1, i2c->regs + S3C2440_CLK_BYPASS); clk_prescaler = 32; } else clk_prescaler = 16; -- 2.20.1