arch: cxd56xx: Use uintptr_t for srcend/dstend in dma_descriptor_s

Summary:
- This commit uses uintptr_t for srcend/dstend in dma_descriptor_s

Impact:
- None

Testing:
- N/A

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-06-03 06:25:48 +09:00 committed by Xiang Xiao
parent 4ba5740c6e
commit a6572fc8c9
2 changed files with 8 additions and 8 deletions

View File

@ -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.

View File

@ -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;
};
/****************************************************************************