@ -359,7 +359,9 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
_CLK_FIXED ( SEC , RCC_DDRITFCR , 9 , DDRPHYCAPB , _PCLK4 ) ,
_CLK_FIXED ( SEC , RCC_DDRITFCR , 9 , DDRPHYCAPB , _PCLK4 ) ,
_CLK_FIXED ( SEC , RCC_DDRITFCR , 10 , DDRPHYCAPBLP , _PCLK4 ) ,
_CLK_FIXED ( SEC , RCC_DDRITFCR , 10 , DDRPHYCAPBLP , _PCLK4 ) ,
# if defined(IMAGE_BL32)
_CLK_SC_FIXED ( N_S , RCC_MP_APB1ENSETR , 6 , TIM12_K , _PCLK1 ) ,
_CLK_SC_FIXED ( N_S , RCC_MP_APB1ENSETR , 6 , TIM12_K , _PCLK1 ) ,
# endif
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 14 , USART2_K , _UART24_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 14 , USART2_K , _UART24_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 15 , USART3_K , _UART35_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 15 , USART3_K , _UART35_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 16 , UART4_K , _UART24_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 16 , UART4_K , _UART24_SEL ) ,
@ -371,7 +373,9 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 23 , I2C3_K , _I2C35_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 23 , I2C3_K , _I2C35_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 24 , I2C5_K , _I2C35_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB1ENSETR , 24 , I2C5_K , _I2C35_SEL ) ,
# if defined(IMAGE_BL32)
_CLK_SC_FIXED ( N_S , RCC_MP_APB2ENSETR , 2 , TIM15_K , _PCLK2 ) ,
_CLK_SC_FIXED ( N_S , RCC_MP_APB2ENSETR , 2 , TIM15_K , _PCLK2 ) ,
# endif
_CLK_SC_SELEC ( N_S , RCC_MP_APB2ENSETR , 13 , USART6_K , _UART6_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_APB2ENSETR , 13 , USART6_K , _UART6_SEL ) ,
_CLK_SC_FIXED ( N_S , RCC_MP_APB3ENSETR , 11 , SYSCFG , _UNKNOWN_ID ) ,
_CLK_SC_FIXED ( N_S , RCC_MP_APB3ENSETR , 11 , SYSCFG , _UNKNOWN_ID ) ,
@ -392,8 +396,10 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
_CLK_SC_FIXED ( SEC , RCC_MP_APB5ENSETR , 16 , BSEC , _PCLK5 ) ,
_CLK_SC_FIXED ( SEC , RCC_MP_APB5ENSETR , 16 , BSEC , _PCLK5 ) ,
_CLK_SC_SELEC ( SEC , RCC_MP_APB5ENSETR , 20 , STGEN_K , _STGEN_SEL ) ,
_CLK_SC_SELEC ( SEC , RCC_MP_APB5ENSETR , 20 , STGEN_K , _STGEN_SEL ) ,
# if defined(IMAGE_BL32)
_CLK_SC_SELEC ( N_S , RCC_MP_AHB2ENSETR , 8 , USBO_K , _USBO_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB2ENSETR , 8 , USBO_K , _USBO_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB2ENSETR , 16 , SDMMC3_K , _SDMMC3_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB2ENSETR , 16 , SDMMC3_K , _SDMMC3_SEL ) ,
# endif
_CLK_SC_SELEC ( N_S , RCC_MP_AHB4ENSETR , 0 , GPIOA , _UNKNOWN_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB4ENSETR , 0 , GPIOA , _UNKNOWN_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB4ENSETR , 1 , GPIOB , _UNKNOWN_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB4ENSETR , 1 , GPIOB , _UNKNOWN_SEL ) ,
@ -413,11 +419,15 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
_CLK_SC_SELEC ( SEC , RCC_MP_AHB5ENSETR , 6 , RNG1_K , _RNG1_SEL ) ,
_CLK_SC_SELEC ( SEC , RCC_MP_AHB5ENSETR , 6 , RNG1_K , _RNG1_SEL ) ,
_CLK_SC_FIXED ( SEC , RCC_MP_AHB5ENSETR , 8 , BKPSRAM , _PCLK5 ) ,
_CLK_SC_FIXED ( SEC , RCC_MP_AHB5ENSETR , 8 , BKPSRAM , _PCLK5 ) ,
# if defined(IMAGE_BL2)
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 12 , FMC_K , _FMC_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 12 , FMC_K , _FMC_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 14 , QSPI_K , _QSPI_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 14 , QSPI_K , _QSPI_SEL ) ,
# endif
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 16 , SDMMC1_K , _SDMMC12_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 16 , SDMMC1_K , _SDMMC12_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 17 , SDMMC2_K , _SDMMC12_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 17 , SDMMC2_K , _SDMMC12_SEL ) ,
# if defined(IMAGE_BL32)
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 24 , USBH , _UNKNOWN_SEL ) ,
_CLK_SC_SELEC ( N_S , RCC_MP_AHB6ENSETR , 24 , USBH , _UNKNOWN_SEL ) ,
# endif
_CLK_SELEC ( SEC , RCC_BDCR , 20 , RTC , _RTC_SEL ) ,
_CLK_SELEC ( SEC , RCC_BDCR , 20 , RTC , _RTC_SEL ) ,
_CLK_SELEC ( N_S , RCC_DBGCFGR , 8 , CK_DBG , _UNKNOWN_SEL ) ,
_CLK_SELEC ( N_S , RCC_DBGCFGR , 8 , CK_DBG , _UNKNOWN_SEL ) ,