diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-22 12:12:09 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-22 12:12:09 +0000 |
commit | 16571745618e75af3fca3606bc9780fd0f011a10 (patch) | |
tree | de5e7bf0f21178410443d6fb4b60a85d479182f6 | |
parent | 94fb09316ae64f63373418df0bb1de4a90fdf73b (diff) | |
download | rockbox-16571745618e75af3fca3606bc9780fd0f011a10.tar.gz rockbox-16571745618e75af3fca3606bc9780fd0f011a10.zip |
sd-as3525v2: read cid & csd in the correct order, fix disk info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25292 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 7d1c2bfb18..945d6e5302 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -420,11 +420,13 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl | |||
420 | 420 | ||
421 | if(flags & MCI_LONG_RESP) | 421 | if(flags & MCI_LONG_RESP) |
422 | { | 422 | { |
423 | response[3] = MCI_RESP3; | 423 | response[0] = MCI_RESP3; |
424 | response[2] = MCI_RESP2; | 424 | response[1] = MCI_RESP2; |
425 | response[1] = MCI_RESP1; | 425 | response[2] = MCI_RESP1; |
426 | response[3] = MCI_RESP0; | ||
426 | } | 427 | } |
427 | response[0] = MCI_RESP0; | 428 | else |
429 | response[0] = MCI_RESP0; | ||
428 | } | 430 | } |
429 | return true; | 431 | return true; |
430 | } | 432 | } |