diff --git a/cpu/arm_cortexm3/stm32/clock.c b/cpu/arm_cortexm3/stm32/clock.c index f0cce5f1613b0b592cb59505ebe9ba71d9062f6f..bf4da2b994127902712e104a5e6927827a365963 100644 --- a/cpu/arm_cortexm3/stm32/clock.c +++ b/cpu/arm_cortexm3/stm32/clock.c @@ -100,14 +100,14 @@ # if (CONFIG_STM32_PLL_Q < 4) || (CONFIG_STM32_PLL_Q > 15) # error "Incorrect PLL_Q value." # endif -# if defined(CONFIG_SYS_STM32F769I_DISCO) +# if defined(CONFIG_SYS_STM32F76xxx) || defined(CONFIG_SYS_STM32F77xxx) # if !defined(CONFIG_STM32_PLL_R) # error "PLL_R must be set for STM32F769." # endif # if (CONFIG_STM32_PLL_R < 2) || (CONFIG_STM32_PLL_R > 7) # error "Incorrect PLL_R value." # endif -# endif /* CONFIG_SYS_STM32F769I_DISCO */ +# endif /* STM32F76xxx || STM32F77xxx */ #endif /* CONFIG_STM32_SYS_CLK_PLL */ /* diff --git a/include/configs/stm32f769i-discovery.h b/include/configs/stm32f769i-discovery.h index 005914c94be712198ea49d4aade9852d40aaa6f8..eef943cd0bb10e21f2aa16d22fba89ef1272d7c2 100644 --- a/include/configs/stm32f769i-discovery.h +++ b/include/configs/stm32f769i-discovery.h @@ -42,6 +42,7 @@ */ #define CONFIG_SYS_STM32 #define CONFIG_SYS_STM32F7 +#define CONFIG_SYS_STM32F76xxx #undef CONFIG_SYS_STM32F7_DISCO #define CONFIG_SYS_STM32F769I_DISCO