Onda VX747/VX777: fix FM radio

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24074 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2009-12-18 12:41:12 +00:00
parent 722f46af46
commit d42cdfd91c
2 changed files with 3 additions and 1 deletions

View file

@ -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)