diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-03-28 18:08:03 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-03-28 18:08:03 +0000 |
commit | 7d74fdec020d1f54f0cab318c595d34dd2dc1a0c (patch) | |
tree | cccbec8164cd64cd7796a62a1db0bd14b152a421 | |
parent | 87aa86cedd27445e51b0ad38dbc7cf2bdaa42364 (diff) | |
download | rockbox-7d74fdec020d1f54f0cab318c595d34dd2dc1a0c.tar.gz rockbox-7d74fdec020d1f54f0cab318c595d34dd2dc1a0c.zip |
AMSv2 sd: do sd slot switching with GPIO B5 only for AMSv2 variant 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29656 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 4338855931..d04b5aed86 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -399,9 +399,9 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl | |||
399 | !send_cmd(drive, SD_APP_CMD, card_info[drive].rca, MCI_RESP, response)) | 399 | !send_cmd(drive, SD_APP_CMD, card_info[drive].rca, MCI_RESP, response)) |
400 | return false; | 400 | return false; |
401 | 401 | ||
402 | #if defined(HAVE_MULTIDRIVE) | 402 | #if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) |
403 | if(sd_present(SD_SLOT_AS3525)) | 403 | if (amsv2_variant == 1) |
404 | GPIOB_PIN(5) = (1-drive) << 5; | 404 | GPIOB_PIN(5) = (drive == INTERNAL_AS3525) ? 1 << 5 : 0; |
405 | #endif | 405 | #endif |
406 | 406 | ||
407 | MCI_ARGUMENT = arg; | 407 | MCI_ARGUMENT = arg; |