summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/i2c-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-18 15:38:43 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-18 15:38:43 +0200
commit4604e984e857fc15db22cc78a415efeec172b6e8 (patch)
treeae3c9a9a8b256ab8727dfe21fd45896237ba08b9 /firmware/target/arm/imx233/i2c-imx233.h
parent246c2127a7fb9001781dff5bff41b53cc2215e98 (diff)
downloadrockbox-4604e984e857fc15db22cc78a415efeec172b6e8.tar.gz
rockbox-4604e984e857fc15db22cc78a415efeec172b6e8.tar.bz2
rockbox-4604e984e857fc15db22cc78a415efeec172b6e8.zip
imx233: rework i2c driver to fix dma issues
There are tricky DMA/cache related issue on the imx233 which could pop up with the old driver. The new one ensures that all dma tranfers are cache safe by using an intermediate buffer. Change-Id: I72060682d1c285c83ae16455cfdb62f372b5d687
Diffstat (limited to 'firmware/target/arm/imx233/i2c-imx233.h')
-rw-r--r--firmware/target/arm/imx233/i2c-imx233.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/i2c-imx233.h b/firmware/target/arm/imx233/i2c-imx233.h
index edce674e89..ad93ae8d35 100644
--- a/firmware/target/arm/imx233/i2c-imx233.h
+++ b/firmware/target/arm/imx233/i2c-imx233.h
@@ -123,7 +123,8 @@ enum imx233_i2c_error_t
I2C_TIMEOUT = -2,
I2C_MASTER_LOSS = -3,
I2C_NO_SLAVE_ACK = -4,
- I2C_SLAVE_NAK = -5
+ I2C_SLAVE_NAK = -5,
+ I2C_BUFFER_FULL = -6,
};
void imx233_i2c_init(void);