From 923e3a4496739820dfdfc3a8ad31a4599664d65e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 14 Apr 2006 07:56:02 +0000 Subject: [PATCH] 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 --- firmware/drivers/i2c-coldfire.c | 6 +++--- 1 file 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 */