AMSv2: only switch sd cards to high speed mode for for v2 sd cards, just like is done for AMSv1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28808 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7b3c7db486
commit
9da76f3031
1 changed files with 17 additions and 14 deletions
|
@ -541,6 +541,8 @@ static int sd_init_card(const int drive)
|
||||||
#endif
|
#endif
|
||||||
/* End of Card Identification Mode ************************************/
|
/* End of Card Identification Mode ************************************/
|
||||||
|
|
||||||
|
if (sd_v2)
|
||||||
|
{
|
||||||
/* Attempt to switch cards to HS timings, non HS cards just ignore this */
|
/* Attempt to switch cards to HS timings, non HS cards just ignore this */
|
||||||
/* CMD7 w/rca: Select card to put it in TRAN state */
|
/* CMD7 w/rca: Select card to put it in TRAN state */
|
||||||
if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_NO_RESP, NULL))
|
if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_NO_RESP, NULL))
|
||||||
|
@ -558,6 +560,7 @@ static int sd_init_card(const int drive)
|
||||||
/* CMD7 w/rca=0: Deselect card to put it in STBY state */
|
/* CMD7 w/rca=0: Deselect card to put it in STBY state */
|
||||||
if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
|
if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
|
||||||
return -10;
|
return -10;
|
||||||
|
}
|
||||||
|
|
||||||
/* CMD9 send CSD */
|
/* CMD9 send CSD */
|
||||||
if(!send_cmd(drive, SD_SEND_CSD, card_info[drive].rca,
|
if(!send_cmd(drive, SD_SEND_CSD, card_info[drive].rca,
|
||||||
|
|
Loading…
Reference in a new issue