SAMA5D4: XDMAC driver now compiles error/warning free (still untested)

This commit is contained in:
Gregory Nutt
2014-06-17 16:31:09 -06:00
parent 9abd83b24d
commit 9c0de33715
3 changed files with 164 additions and 205 deletions
+6 -3
View File
@@ -289,9 +289,12 @@
#define XDMAC_CHINT_ERRORS (0x00000070)
#define XDMAC_CHINT_ALL (0x0000007f)
/* Channel Source Address Register (32-bit address) */
/* Channel Destination Address Register (32-bit address) */
/* Channel Next Descriptor Address Register (32-bit address) */
/* Channel Source Address (SA) Register (aligned 32-bit address) */
/* Channel Destination Address (DA) Register (aligned 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 */
+1 -1
View File
@@ -1426,7 +1426,7 @@ sam_allocdesc(struct sam_dmach_s *dmach, struct dma_linklist_s *prev,
* 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
File diff suppressed because it is too large Load Diff