From a181eb3b18ffba26765f8e2c612a9000f9d58240 Mon Sep 17 00:00:00 2001 From: Sergei Miroshnichenko Date: Fri, 16 Dec 2016 14:05:50 +0300 Subject: [PATCH] RM#1047 stm32: Add configuration options for F76xxx/F77xxx MCUs --- cpu/arm_cortexm3/stm32/clock.c | 4 ++-- include/configs/stm32f769i-discovery.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpu/arm_cortexm3/stm32/clock.c b/cpu/arm_cortexm3/stm32/clock.c index f0cce5f..bf4da2b 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 005914c..eef943c 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 -- GitLab