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:
parent
3e5c701de7
commit
923e3a4496
1 changed files with 3 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue