diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c')
-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 a74dbd41e9..c9f4d99224 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) | |||
121 | */ | 121 | */ |
122 | static void i2c_open(void) | 122 | static void i2c_open(void) |
123 | { | 123 | { |
124 | __cpm_start_i2c(); | ||
124 | i2c_setclk(10000); /* default 10 KHz */ | 125 | i2c_setclk(10000); /* default 10 KHz */ |
125 | __i2c_enable(); | 126 | __i2c_enable(); |
126 | } | 127 | } |
@@ -129,6 +130,7 @@ static void i2c_close(void) | |||
129 | { | 130 | { |
130 | udelay(300); /* wait for STOP goes over. */ | 131 | udelay(300); /* wait for STOP goes over. */ |
131 | __i2c_disable(); | 132 | __i2c_disable(); |
133 | __cpm_stop_i2c(); | ||
132 | } | 134 | } |
133 | 135 | ||
134 | int i2c_read(int device, unsigned char *buf, int count) | 136 | int i2c_read(int device, unsigned char *buf, int count) |