stm32h7:ethernet Use proper Clock limits for H7

This commit is contained in:
David Sidrane 2020-05-19 14:10:31 -07:00 committed by Alan Carvalho de Assis
parent d93091459d
commit 21a96c4784

View File

@ -259,8 +259,10 @@
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV42
#elif STM32_HCLK_FREQUENCY >= 100000000 && STM32_HCLK_FREQUENCY < 150000000
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV62
#elif STM32_HCLK_FREQUENCY >= 150000000 && STM32_HCLK_FREQUENCY <= 216000000
#elif STM32_HCLK_FREQUENCY >= 150000000 && STM32_HCLK_FREQUENCY <= 250000000
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV102
#elif STM32_HCLK_FREQUENCY >= 250000000 && STM32_HCLK_FREQUENCY <= 300000000
# define ETH_MACMDIOAR_CR ETH_MACMDIOAR_CR_DIV124
#else
# error "STM32_HCLK_FREQUENCY not supportable"
#endif