Skip to content

Commit a32baae

Browse files
committed
stm32cube: stm32h7: eth: Fix ETH_DMA_XXX definitions
On the STM32MP13 Ethernet peripheral, there are two DMA channels. As a consequence, the ETH_DMACSR_XXX definitions do not exist and should be replaced by ETH_DMAC0SR_CDE and ETH_DMAC1SR_CDE. While waiting for the fix in the STM32Cube distribution, the workaround is to replace ETH_DMACSR_XXX with ETH_DMAC0SR_XXX. Indeed, the bit definitions for ETH_DMAC0SR_XXX and ETH_DMAC1SR_XXX are identical. Signed-off-by: Arnaud Pouliquen <[email protected]>
1 parent 55e1597 commit a32baae

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stm32cube/stm32mp13xx/drivers/include/stm32mp13xx_hal_eth.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,13 +1301,13 @@ typedef struct
13011301
#define ETH_DMA_TX_DESC_WRITE_ERROR_FLAG 0x00060000U
13021302
#define ETH_DMA_TX_BUFFER_READ_ERROR_FLAG 0x00050000U
13031303
#define ETH_DMA_TX_BUFFER_WRITE_ERROR_FLAG 0x00040000U
1304-
#define ETH_DMA_CONTEXT_DESC_ERROR_FLAG ETH_DMACSR_CDE
1305-
#define ETH_DMA_FATAL_BUS_ERROR_FLAG ETH_DMACSR_FBE
1306-
#define ETH_DMA_EARLY_TX_IT_FLAG ETH_DMACSR_ERI
1307-
#define ETH_DMA_RX_WATCHDOG_TIMEOUT_FLAG ETH_DMACSR_RWT
1308-
#define ETH_DMA_RX_PROCESS_STOPPED_FLAG ETH_DMACSR_RPS
1309-
#define ETH_DMA_RX_BUFFER_UNAVAILABLE_FLAG ETH_DMACSR_RBU
1310-
#define ETH_DMA_TX_PROCESS_STOPPED_FLAG ETH_DMACSR_TPS
1304+
#define ETH_DMA_CONTEXT_DESC_ERROR_FLAG ETH_DMAC0SR_CDE
1305+
#define ETH_DMA_FATAL_BUS_ERROR_FLAG ETH_DMAC0SR_FBE
1306+
#define ETH_DMA_EARLY_TX_IT_FLAG ETH_DMAC0SR_ERI
1307+
#define ETH_DMA_RX_WATCHDOG_TIMEOUT_FLAG ETH_DMAC0SR_RWT
1308+
#define ETH_DMA_RX_PROCESS_STOPPED_FLAG ETH_DMAC0SR_RPS
1309+
#define ETH_DMA_RX_BUFFER_UNAVAILABLE_FLAG ETH_DMAC0SR_RBU
1310+
#define ETH_DMA_TX_PROCESS_STOPPED_FLAG ETH_DMAC0SR_TPS
13111311
/**
13121312
* @}
13131313
*/

0 commit comments

Comments
 (0)