summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-18 12:41:12 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-18 12:41:12 +0000
commitd42cdfd91c581d20a4e895a73e5fdc8830693ba2 (patch)
treed85ae91d55777d266f064a48e3f710a5350b60d5 /firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c
parent722f46af46996ee9adfd3ddfc241e11e4586e065 (diff)
downloadrockbox-d42cdfd91c581d20a4e895a73e5fdc8830693ba2.tar.gz
rockbox-d42cdfd91c581d20a4e895a73e5fdc8830693ba2.tar.bz2
rockbox-d42cdfd91c581d20a4e895a73e5fdc8830693ba2.zip
Onda VX747/VX777: fix FM radio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c2
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)
*/
static void i2c_open(void)
{
+ __cpm_start_i2c();
i2c_setclk(10000); /* default 10 KHz */
__i2c_enable();
}
@@ -129,6 +130,7 @@ static void i2c_close(void)
{
udelay(300); /* wait for STOP goes over. */
__i2c_disable();
+ __cpm_stop_i2c();
}
int i2c_read(int device, unsigned char *buf, int count)