diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:42:19 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:42:19 +0000 |
commit | 73a35a1aa445932176fca78688d43c636a3fda5e (patch) | |
tree | ba8cca63507301045a685883b3b23b79eb3e476e /firmware/drivers/i2c-coldfire.c | |
parent | d79f3a1e845bcad2d64cbaf467c0f0dae596f537 (diff) | |
download | rockbox-73a35a1aa445932176fca78688d43c636a3fda5e.tar.gz rockbox-73a35a1aa445932176fca78688d43c636a3fda5e.zip |
Reverted erroneous commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7918 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/i2c-coldfire.c')
-rw-r--r-- | firmware/drivers/i2c-coldfire.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/i2c-coldfire.c b/firmware/drivers/i2c-coldfire.c index 0c83c1cb1a..aecd3a3b3b 100644 --- a/firmware/drivers/i2c-coldfire.c +++ b/firmware/drivers/i2c-coldfire.c | |||
@@ -37,7 +37,6 @@ static volatile unsigned char *i2c_get_addr(int device); | |||
37 | 37 | ||
38 | void i2c_init(void) | 38 | void i2c_init(void) |
39 | { | 39 | { |
40 | #ifdef IRIVER_H100_SERIES | ||
41 | /* The FM chip has no pullup for SCL, so we have to bit-bang the | 40 | /* The FM chip has no pullup for SCL, so we have to bit-bang the |
42 | I2C for that one. */ | 41 | I2C for that one. */ |
43 | or_l(0x00800000, &GPIO1_OUT); | 42 | or_l(0x00800000, &GPIO1_OUT); |
@@ -46,7 +45,7 @@ void i2c_init(void) | |||
46 | or_l(0x00000008, &GPIO_ENABLE); | 45 | or_l(0x00000008, &GPIO_ENABLE); |
47 | or_l(0x00800000, &GPIO1_FUNCTION); | 46 | or_l(0x00800000, &GPIO1_FUNCTION); |
48 | or_l(0x00000008, &GPIO_FUNCTION); | 47 | or_l(0x00000008, &GPIO_FUNCTION); |
49 | #endif | 48 | |
50 | /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ | 49 | /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ |
51 | MFDR = 0x14; | 50 | MFDR = 0x14; |
52 | 51 | ||