summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/sdma-imx31.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/sdma-imx31.c')
-rw-r--r--firmware/target/arm/imx31/sdma-imx31.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/imx31/sdma-imx31.c b/firmware/target/arm/imx31/sdma-imx31.c
index 0683ec3568..100bd51028 100644
--- a/firmware/target/arm/imx31/sdma-imx31.c
+++ b/firmware/target/arm/imx31/sdma-imx31.c
@@ -613,23 +613,23 @@ void sdma_channel_set_priority(unsigned int channel, unsigned int priority)
613 SDMA_CHNPRI(channel) = priority; 613 SDMA_CHNPRI(channel) = priority;
614} 614}
615 615
616/* Start a channel cold - resets execution to start of script */ 616/* Resets a channel to start of script next time it runs. */
617void sdma_channel_start(unsigned int channel) 617bool sdma_channel_reset(unsigned int channel)
618{ 618{
619 struct channel_control_block *ccb_p; 619 struct channel_control_block *ccb_p;
620 620
621 if (channel == 0 || channel >= CH_NUM) 621 if (channel == 0 || channel >= CH_NUM)
622 return; 622 return false;
623 623
624 ccb_p = &ccb_array[channel]; 624 ccb_p = &ccb_array[channel];
625 625
626 if (ccb_p->status.opened_init == 0) 626 if (ccb_p->status.opened_init == 0)
627 return; 627 return false;
628 628
629 if (!setup_channel(ccb_p)) 629 if (!setup_channel(ccb_p))
630 return; 630 return false;
631 631
632 SDMA_HSTART = 1ul << channel; 632 return true;
633} 633}
634 634
635/* Resume or start execution on a channel */ 635/* Resume or start execution on a channel */