drivers/clock_control: stm32f7: allow enabling MCO outputs
This enables the MCO clock output pins to be configured through Kconfig on
stm32f7 devices.
@@ -62,25 +62,25 @@ config CLOCK_STM32_MCO1_SRC_EXT_HSE
config CLOCK_STM32_MCO1_SRC_LSE
bool "LSE"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use LSE as source of MCO1
config CLOCK_STM32_MCO1_SRC_HSE
bool "HSE"
- depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use HSE as source of MCO1
config CLOCK_STM32_MCO1_SRC_HSI
bool "HSI"
- depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F1X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use HSI as source of MCO1
config CLOCK_STM32_MCO1_SRC_PLLCLK
bool "PLLCLK"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use PLLCLK as source of MCO1
@@ -117,7 +117,7 @@ endchoice
config CLOCK_STM32_MCO1_DIV
int "MCO1 prescaler"
- depends on SOC_SERIES_STM32F4X && !CLOCK_STM32_MCO1_SRC_NOCLOCK
+ depends on !CLOCK_STM32_MCO1_SRC_NOCLOCK && (SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X)
default 1
range 1 5
help
@@ -134,25 +134,25 @@ config CLOCK_STM32_MCO2_SRC_NOCLOCK
config CLOCK_STM32_MCO2_SRC_SYSCLK
bool "SYSCLK"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use SYSCLK as source of MCO2
config CLOCK_STM32_MCO2_SRC_PLLI2S
bool "PLLI2S"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use PLLI2S as source of MCO2
config CLOCK_STM32_MCO2_SRC_HSE
bool "HSE"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use HSE as source of MCO2
config CLOCK_STM32_MCO2_SRC_PLLCLK
bool "PLLCLK"
- depends on SOC_SERIES_STM32F4X
+ depends on SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X
help
Use PLLCLK as source of MCO2
