diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-12-18 12:41:12 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-12-18 12:41:12 +0000 |
commit | d42cdfd91c581d20a4e895a73e5fdc8830693ba2 (patch) | |
tree | d85ae91d55777d266f064a48e3f710a5350b60d5 | |
parent | 722f46af46996ee9adfd3ddfc241e11e4586e065 (diff) | |
download | rockbox-d42cdfd91c581d20a4e895a73e5fdc8830693ba2.tar.gz rockbox-d42cdfd91c581d20a4e895a73e5fdc8830693ba2.zip |
Onda VX747/VX777: fix FM radio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/tuner/tea5767.c | 2 | ||||
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/i2c-jz4740.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/tea5767.c b/firmware/drivers/tuner/tea5767.c index 09503455f3..822fdcb9ec 100644 --- a/firmware/drivers/tuner/tea5767.c +++ b/firmware/drivers/tuner/tea5767.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "fmradio.h" | 28 | #include "fmradio.h" |
29 | #include "fmradio_i2c.h" /* physical interface driver */ | 29 | #include "fmradio_i2c.h" /* physical interface driver */ |
30 | 30 | ||
31 | #if defined(PHILIPS_HDD1630) | 31 | #if defined(PHILIPS_HDD1630) || defined(ONDA_VX747) |
32 | #define I2C_ADR 0x60 | 32 | #define I2C_ADR 0x60 |
33 | #else | 33 | #else |
34 | #define I2C_ADR 0xC0 | 34 | #define I2C_ADR 0xC0 |
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) | |||
121 | */ | 121 | */ |
122 | static void i2c_open(void) | 122 | static void i2c_open(void) |
123 | { | 123 | { |
124 | __cpm_start_i2c(); | ||
124 | i2c_setclk(10000); /* default 10 KHz */ | 125 | i2c_setclk(10000); /* default 10 KHz */ |
125 | __i2c_enable(); | 126 | __i2c_enable(); |
126 | } | 127 | } |
@@ -129,6 +130,7 @@ static void i2c_close(void) | |||
129 | { | 130 | { |
130 | udelay(300); /* wait for STOP goes over. */ | 131 | udelay(300); /* wait for STOP goes over. */ |
131 | __i2c_disable(); | 132 | __i2c_disable(); |
133 | __cpm_stop_i2c(); | ||
132 | } | 134 | } |
133 | 135 | ||
134 | int i2c_read(int device, unsigned char *buf, int count) | 136 | int i2c_read(int device, unsigned char *buf, int count) |