Fix SAM bug: Parmaters reversed in DMA function call
This commit is contained in:
parent
b0e8231fa3
commit
bfaf64e54e
@ -5323,3 +5323,6 @@
|
|||||||
correct some bad register address and some bad assertions that caused
|
correct some bad register address and some bad assertions that caused
|
||||||
false alarms. These latter were backported to the SAM34 DMAC driver
|
false alarms. These latter were backported to the SAM34 DMAC driver
|
||||||
as well (2013-8-6).
|
as well (2013-8-6).
|
||||||
|
* arch/arm/src/sama5/sam_dmac.c and sam34/sam34_dmac.c: Correct
|
||||||
|
some parameters reversed in function call (2013-8-6).
|
||||||
|
|
||||||
|
@ -903,7 +903,7 @@ static int sam_rxbuffer(struct sam_dma_s *dmach, uint32_t paddr,
|
|||||||
ctrlb = sam_rxctrlb(dmach);
|
ctrlb = sam_rxctrlb(dmach);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrla = sam_rxctrla(dmach, regval, nbytes);
|
ctrla = sam_rxctrla(dmach, nbytes, regval);
|
||||||
|
|
||||||
/* Add the new link list entry */
|
/* Add the new link list entry */
|
||||||
|
|
||||||
@ -1159,7 +1159,7 @@ static int sam_dmainterrupt(int irq, void *context)
|
|||||||
|
|
||||||
void weak_function up_dmainitialize(void)
|
void weak_function up_dmainitialize(void)
|
||||||
{
|
{
|
||||||
dmallvdbg("Iinitialize DMAC0\n");
|
dmallvdbg("Initialize DMAC0\n");
|
||||||
|
|
||||||
/* Enable peripheral clock */
|
/* Enable peripheral clock */
|
||||||
|
|
||||||
|
@ -1158,7 +1158,7 @@ static int sam_rxbuffer(struct sam_dmach_s *dmach, uint32_t paddr,
|
|||||||
ctrlb = sam_rxctrlb(dmach);
|
ctrlb = sam_rxctrlb(dmach);
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrla = sam_rxctrla(dmach, regval, nbytes);
|
ctrla = sam_rxctrla(dmach, nbytes, regval);
|
||||||
|
|
||||||
/* Add the new link list entry */
|
/* Add the new link list entry */
|
||||||
|
|
||||||
@ -1480,7 +1480,7 @@ void sam_dmainitialize(struct sam_dmac_s *dmac)
|
|||||||
void weak_function up_dmainitialize(void)
|
void weak_function up_dmainitialize(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SAMA5_DMAC0
|
#ifdef CONFIG_SAMA5_DMAC0
|
||||||
dmallvdbg("Iinitialize DMAC0\n");
|
dmallvdbg("Initialize DMAC0\n");
|
||||||
|
|
||||||
/* Enable peripheral clock */
|
/* Enable peripheral clock */
|
||||||
|
|
||||||
@ -1500,7 +1500,7 @@ void weak_function up_dmainitialize(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SAMA5_DMAC1
|
#ifdef CONFIG_SAMA5_DMAC1
|
||||||
dmallvdbg("Iinitialize DMAC1\n");
|
dmallvdbg("Initialize DMAC1\n");
|
||||||
|
|
||||||
/* Enable peripheral clock */
|
/* Enable peripheral clock */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user