Added Kconfig Enable Support for SAI and I2S PLL
This commit is contained in:
parent
bddc4dbd6a
commit
b95c642a88
@ -779,6 +779,8 @@ config ARCH_CHIP_STM32F446M
|
|||||||
select STM32_STM32F40XX
|
select STM32_STM32F40XX
|
||||||
select STM32_STM32F446
|
select STM32_STM32F446
|
||||||
select ARCH_HAVE_FPU
|
select ARCH_HAVE_FPU
|
||||||
|
select STM32_HAVE_SAIPLL
|
||||||
|
select STM32_HAVE_I2SPLL
|
||||||
|
|
||||||
config ARCH_CHIP_STM32F446R
|
config ARCH_CHIP_STM32F446R
|
||||||
bool "STM32F446R"
|
bool "STM32F446R"
|
||||||
@ -786,6 +788,8 @@ config ARCH_CHIP_STM32F446R
|
|||||||
select STM32_STM32F40XX
|
select STM32_STM32F40XX
|
||||||
select STM32_STM32F446
|
select STM32_STM32F446
|
||||||
select ARCH_HAVE_FPU
|
select ARCH_HAVE_FPU
|
||||||
|
select STM32_HAVE_SAIPLL
|
||||||
|
select STM32_HAVE_I2SPLL
|
||||||
|
|
||||||
config ARCH_CHIP_STM32F446V
|
config ARCH_CHIP_STM32F446V
|
||||||
bool "STM32F446V"
|
bool "STM32F446V"
|
||||||
@ -793,6 +797,8 @@ config ARCH_CHIP_STM32F446V
|
|||||||
select STM32_STM32F40XX
|
select STM32_STM32F40XX
|
||||||
select STM32_STM32F446
|
select STM32_STM32F446
|
||||||
select ARCH_HAVE_FPU
|
select ARCH_HAVE_FPU
|
||||||
|
select STM32_HAVE_SAIPLL
|
||||||
|
select STM32_HAVE_I2SPLL
|
||||||
|
|
||||||
config ARCH_CHIP_STM32F446Z
|
config ARCH_CHIP_STM32F446Z
|
||||||
bool "STM32F446Z"
|
bool "STM32F446Z"
|
||||||
@ -800,7 +806,8 @@ config ARCH_CHIP_STM32F446Z
|
|||||||
select STM32_STM32F40XX
|
select STM32_STM32F40XX
|
||||||
select STM32_STM32F446
|
select STM32_STM32F446
|
||||||
select ARCH_HAVE_FPU
|
select ARCH_HAVE_FPU
|
||||||
|
select STM32_HAVE_SAIPLL
|
||||||
|
select STM32_HAVE_I2SPLL
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
@ -1382,6 +1389,14 @@ config STM32_HAVE_SPI6
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config STM32_HAVE_SAIPLL
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config STM32_HAVE_I2SPLL
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
# These are the peripheral selections proper
|
# These are the peripheral selections proper
|
||||||
|
|
||||||
config STM32_ADC1
|
config STM32_ADC1
|
||||||
@ -2045,6 +2060,24 @@ config ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG
|
|||||||
---help---
|
---help---
|
||||||
Enables special, board-specific STM32 clock configuration.
|
Enables special, board-specific STM32 clock configuration.
|
||||||
|
|
||||||
|
config STM32_SAIPLL
|
||||||
|
bool "SAIPLL"
|
||||||
|
default n
|
||||||
|
depends on STM32_HAVE_SAIPLL
|
||||||
|
---help---
|
||||||
|
The STM32F446 has a separate PLL for the SAI block.
|
||||||
|
Set this true and provide configuration parameters in
|
||||||
|
board.h to use this PLL.
|
||||||
|
|
||||||
|
config STM32_I2SPLL
|
||||||
|
bool "I2SPLL"
|
||||||
|
default n
|
||||||
|
depends on STM32_HAVE_I2SPLL
|
||||||
|
---help---
|
||||||
|
The STM32F446 has a separate PLL for the I2S block.
|
||||||
|
Set this true and provide configuration parameters in
|
||||||
|
board.h to use this PLL.
|
||||||
|
|
||||||
config STM32_CCMEXCLUDE
|
config STM32_CCMEXCLUDE
|
||||||
bool "Exclude CCM SRAM from the heap"
|
bool "Exclude CCM SRAM from the heap"
|
||||||
default y if ARCH_DMA || ELF
|
default y if ARCH_DMA || ELF
|
||||||
|
@ -693,7 +693,7 @@ static void stm32_stdclockconfig(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_USE_PLLSAI
|
#if defined(CONFIG_STM32_SAIPLL)
|
||||||
|
|
||||||
/* Configure PLLSAI */
|
/* Configure PLLSAI */
|
||||||
|
|
||||||
@ -739,7 +739,7 @@ static void stm32_stdclockconfig(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_USE_PLLI2S
|
#if defined(CONFIG_STM32_I2SPLL)
|
||||||
|
|
||||||
/* Configure PLLI2S */
|
/* Configure PLLI2S */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user