Skip to content

Commit d354938

Browse files
arnopoerwango
authored andcommitted
stm32cube: stm32mp13: eth: Fix ETH_DMA_XXX definitions
On the 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 d354938

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

stm32cube/stm32mp13xx/README

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,13 @@ Patch List:
5656
stm32cube/stm32mp13xx/drivers/src/stm32mp13xx_hal_dcmipp.c
5757
Internal reference: 215688
5858

59+
*ethernet: Fix ETH_DMA_XXX definitions
60+
On the Ethernet peripheral, there are two DMA channels.
61+
As a consequence, the ETH_DMACSR_XXX definitions do not exist and
62+
should be replaced by ETH_DMAC0SR_CDE and ETH_DMAC1SR_CDE.
63+
The workaround is to replace ETH_DMACSR_XXX with ETH_DMAC0SR_XXX.
64+
Impacted file:
65+
stm32cube/stm32mp13xx/drivers/include/stm32mp13xx_hal_eth.h
66+
Internal reference: 219972
67+
5968
See release_note.html from STM32Cube

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)