diff options
Diffstat (limited to 'firmware/target/arm/imx233/i2c-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/i2c-imx233.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/i2c-imx233.c b/firmware/target/arm/imx233/i2c-imx233.c index d502d3b2b4..21b66bcde8 100644 --- a/firmware/target/arm/imx233/i2c-imx233.c +++ b/firmware/target/arm/imx233/i2c-imx233.c | |||
@@ -53,7 +53,7 @@ void INT_I2C_DMA(void) | |||
53 | semaphore_release(&i2c_sema); | 53 | semaphore_release(&i2c_sema); |
54 | } | 54 | } |
55 | 55 | ||
56 | void i2c_init(void) | 56 | void imx233_i2c_init(void) |
57 | { | 57 | { |
58 | imx233_reset_block(&HW_I2C_CTRL0); | 58 | imx233_reset_block(&HW_I2C_CTRL0); |
59 | /* setup pins (must be done when shutdown) */ | 59 | /* setup pins (must be done when shutdown) */ |
@@ -147,6 +147,10 @@ enum imx233_i2c_error_t imx233_i2c_end(unsigned timeout) | |||
147 | return ret; | 147 | return ret; |
148 | } | 148 | } |
149 | 149 | ||
150 | void i2c_init(void) | ||
151 | { | ||
152 | } | ||
153 | |||
150 | int i2c_write(int device, const unsigned char* buf, int count) | 154 | int i2c_write(int device, const unsigned char* buf, int count) |
151 | { | 155 | { |
152 | uint8_t addr = device; | 156 | uint8_t addr = device; |