Skip to content

Commit 9855e18

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 <decker@jb-lighting.de>
1 parent fe4540f commit 9855e18

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

drivers/ethernet/Kconfig.stm32_hal

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ 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_STM32F4X \
30+
|| SOC_SERIES_STM32F7X \
31+
|| SOC_SERIES_STM32H5X \
32+
|| SOC_SERIES_STM32H7X \
33+
|| SOC_SERIES_STM32H7RSX \
34+
|| SOC_SERIES_STM32N6X
3035
select USE_STM32_HAL_ETH_EX if SOC_SERIES_STM32N6X
3136
help
3237
Use the official STM32Cube HAL driver instead of the legacy one.
@@ -86,7 +91,7 @@ menuconfig PTP_CLOCK_STM32_HAL
8691
default y
8792
depends on PTP_CLOCK || NET_L2_PTP
8893
depends on ETH_STM32_HAL_API_V2
89-
depends on SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X || SOC_SERIES_STM32H5X
94+
depends on SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X || SOC_SERIES_STM32H7RSX || SOC_SERIES_STM32H5X
9095
help
9196
Enable STM32 PTP clock support.
9297

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)