diff --git a/arch/arm/src/cxd56xx/cxd56_udmac.c b/arch/arm/src/cxd56xx/cxd56_udmac.c index b6f88e108b..fdcfe71d0d 100644 --- a/arch/arm/src/cxd56xx/cxd56_udmac.c +++ b/arch/arm/src/cxd56xx/cxd56_udmac.c @@ -442,8 +442,8 @@ void cxd56_rxudmasetup(DMA_HANDLE handle, uintptr_t paddr, uintptr_t maddr, /* Configure the primary channel descriptor */ desc = cxd56_get_descriptor(dmach, false); - desc->srcend = (uint32_t *)paddr; - desc->dstend = (uint32_t *)(maddr + nbytes - xfersize); + desc->srcend = paddr; + desc->dstend = (maddr + nbytes - xfersize); /* No source increment, destination increments according to transfer size. * No privileges. Arbitrate after each transfer. Default priority. @@ -539,8 +539,8 @@ void cxd56_txudmasetup(DMA_HANDLE handle, uintptr_t paddr, uintptr_t maddr, /* Configure the primary channel descriptor */ desc = cxd56_get_descriptor(dmach, false); - desc->srcend = (uint32_t *)(maddr + nbytes - xfersize); - desc->dstend = (uint32_t *)paddr; + desc->srcend = (maddr + nbytes - xfersize); + desc->dstend = paddr; /* No destination increment, source increments according to transfer size. * No privileges. Arbitrate after each transfer. Default priority. diff --git a/arch/arm/src/cxd56xx/hardware/cxd56_udmac.h b/arch/arm/src/cxd56xx/hardware/cxd56_udmac.h index 297e366fd6..156542cc1c 100644 --- a/arch/arm/src/cxd56xx/hardware/cxd56_udmac.h +++ b/arch/arm/src/cxd56xx/hardware/cxd56_udmac.h @@ -135,10 +135,10 @@ struct dma_descriptor_s { - volatile void * volatile srcend; - volatile void * volatile dstend; - volatile uint32_t ctrl; - volatile uint32_t user; + volatile uintptr_t srcend; + volatile uintptr_t dstend; + volatile uint32_t ctrl; + volatile uint32_t user; }; /****************************************************************************