mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
SAMA5D4: XDMAC driver now compiles error/warning free (still untested)
This commit is contained in:
@@ -289,9 +289,12 @@
|
|||||||
#define XDMAC_CHINT_ERRORS (0x00000070)
|
#define XDMAC_CHINT_ERRORS (0x00000070)
|
||||||
#define XDMAC_CHINT_ALL (0x0000007f)
|
#define XDMAC_CHINT_ALL (0x0000007f)
|
||||||
|
|
||||||
/* Channel Source Address Register (32-bit address) */
|
/* Channel Source Address (SA) Register (aligned 32-bit address) */
|
||||||
/* Channel Destination Address Register (32-bit address) */
|
/* Channel Destination Address (DA) Register (aligned 32-bit address) */
|
||||||
/* Channel Next Descriptor Address Register (32-bit address) */
|
|
||||||
|
/* Channel Next Descriptor Address (CNDA) Register (aligned 32-bit address) */
|
||||||
|
|
||||||
|
#define XDMACH_CNDA_NDAIF (1 << 0) /* Bit 0: Channel Next Descriptor Interface */
|
||||||
|
|
||||||
/* Channel Next Descriptor Control Register */
|
/* Channel Next Descriptor Control Register */
|
||||||
|
|
||||||
|
|||||||
@@ -1426,7 +1426,7 @@ sam_allocdesc(struct sam_dmach_s *dmach, struct dma_linklist_s *prev,
|
|||||||
* via AHB IF0.
|
* via AHB IF0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
prev->dscr = (uint32_t)desc;
|
prev->dscr = (uint32_t)sam_physramaddr((uintptr_t)descr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* In any event, this is the new tail of the list. The source
|
/* In any event, this is the new tail of the list. The source
|
||||||
|
|||||||
+157
-201
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user