summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJack Halpin <jack.halpin@gmail.com>2010-03-22 06:09:19 +0000
committerJack Halpin <jack.halpin@gmail.com>2010-03-22 06:09:19 +0000
commitbeaa292199dd2ae7f24bde5522afe9e04a76f85e (patch)
tree61a914b91e28a2a376dd4f7b853d97e3ca49926c /firmware
parent2a75da37ae583c06f0cd6a612795d17a7fde658a (diff)
downloadrockbox-beaa292199dd2ae7f24bde5522afe9e04a76f85e.tar.gz
rockbox-beaa292199dd2ae7f24bde5522afe9e04a76f85e.tar.bz2
rockbox-beaa292199dd2ae7f24bde5522afe9e04a76f85e.zip
sd-as3525v2.c We don't need to disable/enable MCI_CLKENA in send_cmd().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25286 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index ad55a15b5d..7d1c2bfb18 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -401,8 +401,6 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT;
}
- MCI_CLKENA &= (1 << drive);
-
MCI_ARGUMENT = arg;
MCI_COMMAND |= CMD_DONE_BIT;
@@ -410,13 +408,9 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
while(MCI_COMMAND & CMD_DONE_BIT)
{
if(--max == 0) /* timeout */
- {
- MCI_CLKENA |= (1 << drive);
return false;
- }
}
- MCI_CLKENA |= (1 << drive);
if(flags & MCI_RESP)
{