Sansa AMS: Wait until sd_init_card() to turn on the clocks for the pl180 controller.
commitd78f918822a281ab4a1eb6aaaddd938b32b19709
authorFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Thu, 3 Dec 2009 17:22:03 +0000 (3 17:22 +0000)
committerFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Thu, 3 Dec 2009 17:22:03 +0000 (3 17:22 +0000)
treeac4b77140dbd32fced1edc8dc29d2f9c98d57a2f
parent04408a006158633bffc09499f1935a665b7a2a13
Sansa AMS:  Wait until sd_init_card() to turn on the clocks for the pl180 controller.

Currently the bypass bit is not cleared so it's possible to enter the identification phase at bypass speed instead of ident speed.
The simplest solution to ensure the bypass bit is not set is to set the register with an = operation instead of |=.
This makes setting the MCI_CLOCK register at the end of the controller init unnecessary.

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