diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-04-14 07:56:02 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-04-14 07:56:02 +0000 |
commit | 923e3a4496739820dfdfc3a8ad31a4599664d65e (patch) | |
tree | 73051d9eda535ad4405c25f48296b1807394fb1f /firmware | |
parent | 3e5c701de7767467177f42ed9f6326715dad4337 (diff) |
Coldfire: Use the maximum possible i2c clock for the audio codec. Both the UDA1380TT and the TLV320AIC23B can handle up to 400kHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9656 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/i2c-coldfire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/i2c-coldfire.c b/firmware/drivers/i2c-coldfire.c index 2dcf74572f..a9c3931d36 100644 --- a/firmware/drivers/i2c-coldfire.c +++ b/firmware/drivers/i2c-coldfire.c @@ -54,9 +54,9 @@ void i2c_init(void) or_l(0x03000000, &GPIO1_FUNCTION); #endif - /* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ - MFDR = 0x14; - MFDR2 = 0x14; + /* I2C Clock divisor = 160 => 124.1556 MHz / 2 / 160 = 388.08 kHz */ + MFDR = 0x0d; + MFDR2 = 0x0d; #ifdef IAUDIO_X5 MBCR = IEN; /* Enable interface */ |