mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
arch/stm32h7: add an option to bypass clock configuration
This commit is contained in:
@@ -2090,6 +2090,15 @@ config STM32H7_QSPI_REGDEBUG
|
||||
|
||||
endmenu
|
||||
|
||||
config STM32H7_BYPASS_CLOCKCONFIG
|
||||
bool "Bypass clock configuration"
|
||||
depends on ARCH_STM32H7_DUALCORE
|
||||
default n if ARCH_CHIP_STM32H7_CORTEXM7
|
||||
default y if ARCH_CHIP_STM32H7_CORTEXM4
|
||||
---help---
|
||||
Bypass clock configuration. For dual core chips only one core
|
||||
should configure clocks
|
||||
|
||||
config STM32H7_CUSTOM_CLOCKCONFIG
|
||||
bool "Custom clock configuration"
|
||||
default n
|
||||
|
||||
@@ -93,6 +93,7 @@
|
||||
|
||||
void stm32_clockconfig(void)
|
||||
{
|
||||
#ifndef CONFIG_STM32H7_BYPASS_CLOCKCONFIG
|
||||
/* Make sure that we are starting in the reset state */
|
||||
|
||||
rcc_reset();
|
||||
@@ -119,6 +120,7 @@ void stm32_clockconfig(void)
|
||||
stm32_stdclockconfig();
|
||||
|
||||
# endif
|
||||
#endif /* !CONFIG_STM32H7_BYPASS_CLOCKCONFIG */
|
||||
|
||||
/* Enable peripheral clocking */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user