summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sd-as3525v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525v2.c')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 65308089b7..836981f321 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -963,6 +963,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
963 963
964 dma_release(); 964 dma_release();
965 965
966 /* CMD lines are separate, not common, so we need to actively deselect */
967 /* CMD7 w/rca =0 : deselects card & puts it in STBY state */
968 if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
969 return -21;
970
966#ifndef BOOTLOADER 971#ifndef BOOTLOADER
967 sd_enable(false); 972 sd_enable(false);
968 led(false); 973 led(false);