diff options
Diffstat (limited to 'firmware/target')
| -rw-r--r-- | firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c b/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c index a74dbd4..c9f4d99 100644 --- a/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c @@ -121,6 +121,7 @@ void i2c_setclk(unsigned int i2cclk) */ static void i2c_open(void) { + __cpm_start_i2c(); i2c_setclk(10000); /* default 10 KHz */ __i2c_enable(); } @@ -129,6 +130,7 @@ static void i2c_close(void) { udelay(300); /* wait for STOP goes over. */ __i2c_disable(); + __cpm_stop_i2c(); } int i2c_read(int device, unsigned char *buf, int count) |