Skip to content

Commit

Permalink
dts: arm: atmel: samx7x: synchronize SAM E70/V71 DMA PERIDs
Browse files Browse the repository at this point in the history
Synchronize the Atmel SAM E70/V71 DMA Peripheral Hardware Requests HW
Interface Numbers and adjust them to match those listed in the SAM
E70/S70/V70/V71 datasheet.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
  • Loading branch information
henrikbrixandersen committed Jan 14, 2025
1 parent 986a170 commit b76d592
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
17 changes: 15 additions & 2 deletions dts/arm/atmel/dma_atmel_same70.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
#ifndef DMA_ATMEL_SAME70_H_
#define DMA_ATMEL_SAME70_H_

/** Peripheral Hardware Request Line Identifier */
/**
* SAMx7x Peripheral Hardware Request HW Interface Number (XDMAC_CC.PERID).
*
* See table Table 35-1. Peripheral Hardware Requests in the SAM E70/S70/V70/V71 datasheet.
*/
#define DMA_PERID_HSMCI_TX_RX 0
#define DMA_PERID_SPI0_TX 1
#define DMA_PERID_SPI0_RX 2
Expand Down Expand Up @@ -37,7 +41,8 @@
#define DMA_PERID_UART3_RX 27
#define DMA_PERID_UART4_TX 28
#define DMA_PERID_UART4_RX 29
#define DMA_PERID_DACC_TX 30
#define DMA_PERID_DACC0_TX 30
#define DMA_PERID_DACC1_TX 31
#define DMA_PERID_SSC_TX 32
#define DMA_PERID_SSC_RX 33
#define DMA_PERID_PIOA_RX 34
Expand All @@ -50,5 +55,13 @@
#define DMA_PERID_TC1_RX 41
#define DMA_PERID_TC2_RX 42
#define DMA_PERID_TC3_RX 43
#define DMA_PERID_I2SC0_TX_L 44
#define DMA_PERID_I2SC0_RX_L 45
#define DMA_PERID_I2SC1_TX_L 46
#define DMA_PERID_I2SC1_RX_L 47
#define DMA_PERID_I2SC0_TX_R 48
#define DMA_PERID_I2SC0_RX_R 49
#define DMA_PERID_I2SC1_TX_R 50
#define DMA_PERID_I2SC1_RX_R 51

#endif /* DMA_ATMEL_SAME70_H_ */
12 changes: 8 additions & 4 deletions dts/arm/atmel/dma_atmel_samv71.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
#ifndef DMA_ATMEL_SAMV71_H_
#define DMA_ATMEL_SAMV71_H_

/** Peripheral Hardware Request Line Identifier */
/**
* SAMx7x Peripheral Hardware Request HW Interface Number (XDMAC_CC.PERID).
*
* See table Table 35-1. Peripheral Hardware Requests in the SAM E70/S70/V70/V71 datasheet.
*/
#define DMA_PERID_HSMCI_TX_RX 0
#define DMA_PERID_SPI0_TX 1
#define DMA_PERID_SPI0_RX 2
Expand Down Expand Up @@ -48,9 +52,9 @@
#define DMA_PERID_AES_RX 38
#define DMA_PERID_PWM1_TX 39
#define DMA_PERID_TC0_RX 40
#define DMA_PERID_TC3_RX 41
#define DMA_PERID_TC6_RX 42
#define DMA_PERID_TC9_RX 43
#define DMA_PERID_TC1_RX 41
#define DMA_PERID_TC2_RX 42
#define DMA_PERID_TC3_RX 43
#define DMA_PERID_I2SC0_TX_L 44
#define DMA_PERID_I2SC0_RX_L 45
#define DMA_PERID_I2SC1_TX_L 46
Expand Down

0 comments on commit b76d592

Please sign in to comment.