summaryrefslogtreecommitdiff
path: root/firmware/drivers/i2c-coldfire.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/i2c-coldfire.c')
-rw-r--r--firmware/drivers/i2c-coldfire.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/i2c-coldfire.c b/firmware/drivers/i2c-coldfire.c
index aecd3a3b3b..0c83c1cb1a 100644
--- a/firmware/drivers/i2c-coldfire.c
+++ b/firmware/drivers/i2c-coldfire.c
@@ -37,6 +37,7 @@ static volatile unsigned char *i2c_get_addr(int device);
37 37
38void i2c_init(void) 38void i2c_init(void)
39{ 39{
40#ifdef IRIVER_H100_SERIES
40 /* The FM chip has no pullup for SCL, so we have to bit-bang the 41 /* The FM chip has no pullup for SCL, so we have to bit-bang the
41 I2C for that one. */ 42 I2C for that one. */
42 or_l(0x00800000, &GPIO1_OUT); 43 or_l(0x00800000, &GPIO1_OUT);
@@ -45,7 +46,7 @@ void i2c_init(void)
45 or_l(0x00000008, &GPIO_ENABLE); 46 or_l(0x00000008, &GPIO_ENABLE);
46 or_l(0x00800000, &GPIO1_FUNCTION); 47 or_l(0x00800000, &GPIO1_FUNCTION);
47 or_l(0x00000008, &GPIO_FUNCTION); 48 or_l(0x00000008, &GPIO_FUNCTION);
48 49#endif
49 /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ 50 /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */
50 MFDR = 0x14; 51 MFDR = 0x14;
51 52