diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 68baff4a46..aaa7ea4da5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -343,7 +343,7 @@ config ARCH_CHIP_STM32H7 bool "STMicro STM32 H7" select ARCH_CORTEXM7 select ARCH_HAVE_MPU -# select ARCH_HAVE_I2CRESET + select ARCH_HAVE_I2CRESET # select ARCH_HAVE_HEAPCHECK select ARCH_HAVE_SPI_BITORDER select ARM_HAVE_MPU_UNIFIED diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c index ebf7a2e16b..81f7cb41ca 100644 --- a/arch/arm/src/stm32h7/stm32_spi.c +++ b/arch/arm/src/stm32h7/stm32_spi.c @@ -147,6 +147,8 @@ defined(CONFIG_STM32H7_SPI3) # if STM32_RCC_D2CCIP1R_SPI123SRC == RCC_D2CCIP1R_SPI123SEL_PLL1 # define SPI123_KERNEL_CLOCK_FREQ STM32_PLL1Q_FREQUENCY +# elif STM32_RCC_D2CCIP1R_SPI123SRC == RCC_D2CCIP1R_SPI123SEL_PLL2 +# define SPI123_KERNEL_CLOCK_FREQ STM32_PLL2P_FREQUENCY # else # error Not supported yet # endif @@ -158,6 +160,8 @@ #if defined(CONFIG_STM32H7_SPI4) || defined(CONFIG_STM32H7_SPI5) # if STM32_RCC_D2CCIP1R_SPI45SRC == RCC_D2CCIP1R_SPI45SEL_APB # define SPI45_KERNEL_CLOCK_FREQ STM32_PCLK2_FREQUENCY +# elif STM32_RCC_D2CCIP1R_SPI45SRC == RCC_D2CCIP1R_SPI45SEL_PLL2 +# define SPI45_KERNEL_CLOCK_FREQ STM32_PLL2Q_FREQUENCY # else # error Not supported yet # endif @@ -169,6 +173,8 @@ #if defined(CONFIG_STM32H7_SPI6) # if STM32_RCC_D3CCIPR_SPI6SRC == RCC_D3CCIPR_SPI6SEL_PCLK4 # define SPI6_KERNEL_CLOCK_FREQ STM32_PCLK4_FREQUENCY +# elif STM32_RCC_D3CCIPR_SPI6SRC == RCC_D3CCIPR_SPI6SEL_PLL2 +# define SPI6_KERNEL_CLOCK_FREQ STM32_PLL2Q_FREQUENCY # else # error Not supported yet # endif