IICCON_BUS_RELEASE bit must be masked when IICCON_ACKEN is set
for fimc i2c
Change-Id: Ic80e4978560bf0aebefdf80ecc31420231d936ea
Signed-off-by: Hyunki Koo <hyunki00.koo@samsung.com>
#define S3C2410_IICCON_TXDIV_512 (1 << 6)
#define S3C2410_IICCON_IRQEN (1 << 5)
#define S3C2410_IICCON_IRQPEND (1 << 4)
+#define S3C2410_IICCON_BUS_RELEASE (1 << 4)
#define S3C2410_IICCON_SCALE(x) ((x) & 0xf)
#define S3C2410_IICCON_SCALEMASK (0xf)
unsigned long tmp;
tmp = readl(i2c->regs + S3C2410_IICCON);
+ if (i2c->quirks & QUIRK_FIMC_I2C)
+ tmp &= ~S3C2410_IICCON_BUS_RELEASE;
writel(tmp | S3C2410_IICCON_ACKEN, i2c->regs + S3C2410_IICCON);
}