diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:15:59 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:15:59 +0000 |
| commit | df0e5effc550db484ca0d377b9f3547fed27cd66 (patch) | |
| tree | d54a173927a2091263787f62c9c59fe0c0f57aaa /firmware/drivers/i2c-coldfire.c | |
| parent | 59825952f3d98d29e03b094642655968d7abcc02 (diff) | |
| download | rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.zip rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.tar.gz rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.tar.bz2 rockbox-df0e5effc550db484ca0d377b9f3547fed27cd66.tar.xz | |
Cleaned up bootloader linker control file and added the H300 target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 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, 2 insertions, 1 deletions
diff --git a/firmware/drivers/i2c-coldfire.c b/firmware/drivers/i2c-coldfire.c index aecd3a3..0c83c1c 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); void i2c_init(void) { +#ifdef IRIVER_H100_SERIES /* The FM chip has no pullup for SCL, so we have to bit-bang the I2C for that one. */ or_l(0x00800000, &GPIO1_OUT); @@ -45,7 +46,7 @@ void i2c_init(void) or_l(0x00000008, &GPIO_ENABLE); or_l(0x00800000, &GPIO1_FUNCTION); or_l(0x00000008, &GPIO_FUNCTION); - +#endif /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ MFDR = 0x14; |