From 9ced006c06a4240cbd2a9ebe9196d9a0658810f9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 19 May 2012 13:23:17 +0200 Subject: imx233: move icoll stuff to its own file The icoll code now has an IRQ storm detection mechanism which will prevent the device from hard freezing in case it happen. Change-Id: I9861238dce61d29af1e48f9c534ec63a7f23465c --- firmware/target/arm/imx233/i2c-imx233.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/imx233/i2c-imx233.c') diff --git a/firmware/target/arm/imx233/i2c-imx233.c b/firmware/target/arm/imx233/i2c-imx233.c index 199ad181ba..c58494154f 100644 --- a/firmware/target/arm/imx233/i2c-imx233.c +++ b/firmware/target/arm/imx233/i2c-imx233.c @@ -124,7 +124,7 @@ enum imx233_i2c_error_t imx233_i2c_end(unsigned timeout) i2c_stage[i2c_nr_stages - 1].dma.cmd |= HW_APB_CHx_CMD__SEMAPHORE | HW_APB_CHx_CMD__IRQONCMPLT; __REG_CLR(HW_I2C_CTRL1) = HW_I2C_CTRL1__ALL_IRQ; - imx233_enable_interrupt(INT_SRC_I2C_DMA, true); + imx233_icoll_enable_interrupt(INT_SRC_I2C_DMA, true); imx233_dma_enable_channel_interrupt(APB_I2C, true); imx233_dma_reset_channel(APB_I2C); imx233_dma_start_command(APB_I2C, &i2c_stage[0].dma); -- cgit v1.2.3