1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2006-04-14 07:56:02 +00:00
parent 3e5c701de7
commit 923e3a4496

View file

@ -54,9 +54,9 @@ void i2c_init(void)
or_l(0x03000000, &GPIO1_FUNCTION); or_l(0x03000000, &GPIO1_FUNCTION);
#endif #endif
/* I2C Clock divisor = 576 => 119.952 MHz / 2 / 576 = 104.125 kHz */ /* I2C Clock divisor = 160 => 124.1556 MHz / 2 / 160 = 388.08 kHz */
MFDR = 0x14; MFDR = 0x0d;
MFDR2 = 0x14; MFDR2 = 0x0d;
#ifdef IAUDIO_X5 #ifdef IAUDIO_X5
MBCR = IEN; /* Enable interface */ MBCR = IEN; /* Enable interface */