mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
sd-as3525v2.c: Correct SD_APP_OP_COND command to send full voltage range for v1 SD cards.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25266 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f1d9491e9c
commit
da325b6270
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ static int sd_init_card(const int drive)
|
|||
send_cmd(drive, SD_APP_CMD, 0, MCI_RESP, &response);
|
||||
|
||||
/* ACMD41 For v2 cards set HCS bit[30] & send host voltage range to all */
|
||||
if(!send_cmd(drive, SD_APP_OP_COND, (sd_v2 ? 0x40FF8000 : (1<<23)),
|
||||
if(!send_cmd(drive, SD_APP_OP_COND, (0x00FF8000 | (sd_v2 ? 1<<30 : 0)),
|
||||
MCI_RESP, &card_info[drive].ocr))
|
||||
return -3;
|
||||
} while(!(card_info[drive].ocr & (1<<31)) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue