summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/i2c-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:40:16 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:40:16 +0000
commit80101edcf7d680f9df26600daff6f9f8ee8f750d (patch)
tree0f434d8865add010d4d9d32af827d09153e24463 /firmware/target/arm/imx233/i2c-imx233.c
parente55394521b32ce22aa431826e51c61a4b33589d8 (diff)
downloadrockbox-80101edcf7d680f9df26600daff6f9f8ee8f750d.tar.gz
rockbox-80101edcf7d680f9df26600daff6f9f8ee8f750d.tar.bz2
rockbox-80101edcf7d680f9df26600daff6f9f8ee8f750d.zip
imx233/fuze+: correctly reset i2c block
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30536 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/i2c-imx233.c')
-rw-r--r--firmware/target/arm/imx233/i2c-imx233.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/i2c-imx233.c b/firmware/target/arm/imx233/i2c-imx233.c
index 6fa3182066..d502d3b2b4 100644
--- a/firmware/target/arm/imx233/i2c-imx233.c
+++ b/firmware/target/arm/imx233/i2c-imx233.c
@@ -55,7 +55,7 @@ void INT_I2C_DMA(void)
void i2c_init(void)
{
- __REG_SET(HW_I2C_CTRL0) = __BLOCK_SFTRST | __BLOCK_CLKGATE;
+ imx233_reset_block(&HW_I2C_CTRL0);
/* setup pins (must be done when shutdown) */
imx233_set_pin_function(0, 30, PINCTRL_FUNCTION_MAIN);
imx233_set_pin_function(0, 31, PINCTRL_FUNCTION_MAIN);