diff options
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c index 6a8606af6a..17f1bfa11d 100644 --- a/firmware/target/arm/as3525/sd-as3525.c +++ b/firmware/target/arm/as3525/sd-as3525.c | |||
@@ -665,7 +665,7 @@ static int sd_select_bank(signed char bank) | |||
665 | dma_retain(); | 665 | dma_retain(); |
666 | /* we don't use the uncached buffer here, because we need the | 666 | /* we don't use the uncached buffer here, because we need the |
667 | * physical memory address for DMA transfers */ | 667 | * physical memory address for DMA transfers */ |
668 | dma_enable_channel(0, AS3525_PHYSICAL_ADDR(&aligned_buffer[0]), | 668 | dma_enable_channel(1, AS3525_PHYSICAL_ADDR(&aligned_buffer[0]), |
669 | MCI_FIFO(INTERNAL_AS3525), DMA_PERI_SD, | 669 | MCI_FIFO(INTERNAL_AS3525), DMA_PERI_SD, |
670 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); | 670 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); |
671 | 671 | ||
@@ -809,7 +809,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
809 | 809 | ||
810 | if(write) | 810 | if(write) |
811 | { | 811 | { |
812 | dma_enable_channel(0, dma_buf, MCI_FIFO(drive), | 812 | dma_enable_channel(1, dma_buf, MCI_FIFO(drive), |
813 | (drive == INTERNAL_AS3525) ? DMA_PERI_SD : DMA_PERI_SD_SLOT, | 813 | (drive == INTERNAL_AS3525) ? DMA_PERI_SD : DMA_PERI_SD_SLOT, |
814 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); | 814 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); |
815 | 815 | ||
@@ -823,7 +823,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
823 | #endif | 823 | #endif |
824 | } | 824 | } |
825 | else | 825 | else |
826 | dma_enable_channel(0, MCI_FIFO(drive), dma_buf, | 826 | dma_enable_channel(1, MCI_FIFO(drive), dma_buf, |
827 | (drive == INTERNAL_AS3525) ? DMA_PERI_SD : DMA_PERI_SD_SLOT, | 827 | (drive == INTERNAL_AS3525) ? DMA_PERI_SD : DMA_PERI_SD_SLOT, |
828 | DMAC_FLOWCTRL_PERI_PERI_TO_MEM, false, true, 0, DMA_S8, NULL); | 828 | DMAC_FLOWCTRL_PERI_PERI_TO_MEM, false, true, 0, DMA_S8, NULL); |
829 | 829 | ||
@@ -846,7 +846,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
846 | * dma channel here, otherwise there are still 4 words in the fifo | 846 | * dma channel here, otherwise there are still 4 words in the fifo |
847 | * and the retried write will get corrupted. | 847 | * and the retried write will get corrupted. |
848 | */ | 848 | */ |
849 | dma_disable_channel(0); | 849 | dma_disable_channel(1); |
850 | 850 | ||
851 | last_disk_activity = current_tick; | 851 | last_disk_activity = current_tick; |
852 | 852 | ||