summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c6
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 c87a15ea09..6d07bcca97 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -546,6 +546,9 @@ static int sd_init_card(const int drive)
546#endif 546#endif
547 /* End of Card Identification Mode ************************************/ 547 /* End of Card Identification Mode ************************************/
548 548
549 /* Card back to full speed */
550 MCI_CLKDIV &= ~(0xFF); /* CLK_DIV_0 : bits 7:0 = 0x00 */
551
549 if (sd_v2) 552 if (sd_v2)
550 { 553 {
551 /* Attempt to switch cards to HS timings, non HS cards just ignore this */ 554 /* Attempt to switch cards to HS timings, non HS cards just ignore this */
@@ -585,9 +588,6 @@ static int sd_init_card(const int drive)
585 if(drive == INTERNAL_AS3525) /* The OF is stored in the first blocks */ 588 if(drive == INTERNAL_AS3525) /* The OF is stored in the first blocks */
586 card_info[INTERNAL_AS3525].numblocks -= AMS_OF_SIZE; 589 card_info[INTERNAL_AS3525].numblocks -= AMS_OF_SIZE;
587 590
588 /* Card back to full speed */
589 MCI_CLKDIV &= ~(0xFF); /* CLK_DIV_0 : bits 7:0 = 0x00 */
590
591 /* CMD7 w/rca: Select card to put it in TRAN state */ 591 /* CMD7 w/rca: Select card to put it in TRAN state */
592 if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_RESP, &response)) 592 if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_RESP, &response))
593 return -12; 593 return -12;