drivers: ethernet: stm32: Add Kconfig to select new HAL API

STM32H7X and STM32F4X ETH HAL Drivers now provide a new api.
This commit only adds a new Kconfig option

Signed-off-by: Bjarne von Horn <B.von_horn@wzl.rwth-aachen.de>
diff --git a/drivers/ethernet/Kconfig.stm32_hal b/drivers/ethernet/Kconfig.stm32_hal
index 3e5f0ef..0b14af3 100644
--- a/drivers/ethernet/Kconfig.stm32_hal
+++ b/drivers/ethernet/Kconfig.stm32_hal
@@ -16,6 +16,12 @@
 
 if ETH_STM32_HAL
 
+config ETH_STM32_HAL_API_V2
+	bool "Use new HAL driver"
+	depends on SOC_SERIES_STM32H7X || SOC_SERIES_STM32F4X
+	help
+	  Use the new HAL driver instead of the legacy one.
+
 config ETH_STM32_HAL_RX_THREAD_STACK_SIZE
 	int "RX thread stack size"
 	default 1500