Sansa AMS: Assume IDE_CLK is used as MCLK for internal SD. We assumed PCLK previously.
commit115d45d1159866cafdf4c7e2ec6d3b67d101a408
authorFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Fri, 11 Dec 2009 04:53:22 +0000 (11 04:53 +0000)
committerFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Fri, 11 Dec 2009 04:53:22 +0000 (11 04:53 +0000)
tree9a1fb51bb8cc3ff4162c640e3f1678a2b998fec9
parent26f651625801537f8d03c35c3a8ad201216c8bc9
Sansa AMS:  Assume IDE_CLK is used as MCLK for internal SD.  We assumed PCLK previously.

This patch changes all references/assumptions of PCLK to IDE_CLK for the internal pl180 controller.
Lower the AS3525_IDE_FREQ to 50 MHz in order to be able to divide by 2 for 25 MHz on the internal SD card.
Adjust the code in debug-as3525.c to account for the change and the frequencies reported should be correct.
Add some #if defined(HAVE_MULTIDRIVE) conditionals to cut out the code dealing with uSD for the clip.
Isolate the write delay needed for low frequency writes to only run for standard speed uSD cards. That is the only case for an MCICLK at 15.5 MHz.

Internal cards run at 25 MHz, HS uSD at 31 MHz, and standard speed uSD cards at 15.5 MHz.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23929 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/ata_sd_as3525.c
firmware/target/arm/as3525/clock-target.h
firmware/target/arm/as3525/debug-as3525.c