1
0
Fork 0
forked from len0rd/rockbox

H300: The FM tuner uses different port pins

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7963 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-11-18 14:33:06 +00:00
parent 64d9ee70c2
commit bd0d12c43e

View file

@ -37,6 +37,7 @@ static volatile unsigned char *i2c_get_addr(int device);
void i2c_init(void) void i2c_init(void)
{ {
#ifdef IRIVER_H100_SERIES
/* The FM chip has no pullup for SCL, so we have to bit-bang the /* The FM chip has no pullup for SCL, so we have to bit-bang the
I2C for that one. */ I2C for that one. */
or_l(0x00800000, &GPIO1_OUT); or_l(0x00800000, &GPIO1_OUT);
@ -45,7 +46,7 @@ void i2c_init(void)
or_l(0x00000008, &GPIO_ENABLE); or_l(0x00000008, &GPIO_ENABLE);
or_l(0x00800000, &GPIO1_FUNCTION); or_l(0x00800000, &GPIO1_FUNCTION);
or_l(0x00000008, &GPIO_FUNCTION); or_l(0x00000008, &GPIO_FUNCTION);
#endif
/* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */
MFDR = 0x14; MFDR = 0x14;