Skip to content

Commit c6847fe

Browse files
committed
drivers: ethernet: stm32: Add support for SOC H7RS-Family
Add SOC_SERIES_STM32H7RSX to applicable Kconfig parameters and enable use of .eth_stm32_desc and .eth_stm32_buf linker sections for ethernet dma. Signed-off-by: Thomas Decker <[email protected]>
1 parent fe4540f commit c6847fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/ethernet/Kconfig.stm32_hal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ choice ETH_STM32_HAL_API_VERSION
2626

2727
config ETH_STM32_HAL_API_V2
2828
bool "Use official STM32Cube HAL driver"
29-
depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32H5X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32N6X
29+
depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32H7RSX || SOC_SERIES_STM32H5X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32N6X
3030
select USE_STM32_HAL_ETH_EX if SOC_SERIES_STM32N6X
3131
help
3232
Use the official STM32Cube HAL driver instead of the legacy one.
@@ -86,7 +86,7 @@ menuconfig PTP_CLOCK_STM32_HAL
8686
default y
8787
depends on PTP_CLOCK || NET_L2_PTP
8888
depends on ETH_STM32_HAL_API_V2
89-
depends on SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X || SOC_SERIES_STM32H5X
89+
depends on SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X || SOC_SERIES_STM32H7RSX || SOC_SERIES_STM32H5X
9090
help
9191
Enable STM32 PTP clock support.
9292

drivers/ethernet/eth_stm32_hal_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern const struct device *eth_stm32_phy_dev;
3333
DT_NODE_HAS_STATUS_OKAY(DT_CHOSEN(zephyr_dtcm))
3434
#define __eth_stm32_desc __dtcm_noinit_section
3535
#define __eth_stm32_buf __dtcm_noinit_section
36-
#elif defined(CONFIG_SOC_SERIES_STM32H7X)
36+
#elif defined(CONFIG_SOC_SERIES_STM32H7X) || defined(CONFIG_SOC_SERIES_STM32H7RSX)
3737
#define __eth_stm32_desc __attribute__((section(".eth_stm32_desc")))
3838
#define __eth_stm32_buf __attribute__((section(".eth_stm32_buf")))
3939
#elif defined(CONFIG_NOCACHE_MEMORY)

0 commit comments

Comments
 (0)