From: Hyunki Koo Date: Mon, 3 Mar 2014 07:09:30 +0000 (+0900) Subject: i2c: s3c2410: set NCLK for FIMC_I2C X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=969abe3c4bc463a857406525f640eb71c7ab0a44;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: s3c2410: set NCLK for FIMC_I2C Change-Id: I5d292d70e0f04a718086f870c788237b873ae455 Signed-off-by: Hyunki Koo --- 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;