diff options
Diffstat (limited to 'firmware/drivers/i2c-coldfire.c')
-rw-r--r-- | firmware/drivers/i2c-coldfire.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/i2c-coldfire.c b/firmware/drivers/i2c-coldfire.c index 5b4f4a1830..788385101a 100644 --- a/firmware/drivers/i2c-coldfire.c +++ b/firmware/drivers/i2c-coldfire.c | |||
@@ -37,15 +37,17 @@ static volatile unsigned char *i2c_get_addr(int device); | |||
37 | 37 | ||
38 | void i2c_init(void) | 38 | void i2c_init(void) |
39 | { | 39 | { |
40 | /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ | ||
41 | MFDR = 0x14; | ||
42 | MFDR2 = 0x14; | ||
43 | |||
40 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) | 44 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) |
41 | /* Audio Codec */ | 45 | /* Audio Codec */ |
42 | MADR = 0x6c; /* iRiver firmware uses this addr */ | ||
43 | MBDR = 0; /* iRiver firmware does this */ | 46 | MBDR = 0; /* iRiver firmware does this */ |
44 | MBCR = IEN; /* Enable interface */ | 47 | MBCR = IEN; /* Enable interface */ |
45 | 48 | ||
46 | #if 0 | 49 | #if 0 |
47 | /* FM Tuner */ | 50 | /* FM Tuner */ |
48 | MADR2 = 0x6c; | ||
49 | MBDR2 = 0; | 51 | MBDR2 = 0; |
50 | MBCR2 = IEN; | 52 | MBCR2 = IEN; |
51 | #endif | 53 | #endif |