]> git.sur5r.net Git - u-boot/commitdiff
clk: clk_stm32f: Add DSI clock support
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 8 Feb 2018 16:20:51 +0000 (17:20 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 14 Mar 2018 01:45:37 +0000 (21:45 -0400)
DSI clock is available on STM32F769-disco and
STM32F469-disco board.

Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/clk/clk_stm32f.c
include/dt-bindings/mfd/stm32f7-rcc.h

index a683911ebf005430d26e3d9fa286c2252fe91c79..d8eab1a88d7cb5804e83841b5161282e43609734 100644 (file)
@@ -432,7 +432,7 @@ static ulong stm32_clk_get_rate(struct clk *clk)
                return (sysclk >> stm32_get_apb_shift(regs, APB1));
 
        /* APB2 CLOCK */
-       case STM32F7_APB2_CLOCK(TIM1) ... STM32F7_APB2_CLOCK(LTDC):
+       case STM32F7_APB2_CLOCK(TIM1) ... STM32F7_APB2_CLOCK(DSI):
                switch (clk->id) {
                /*
                 * particular case for SDMMC1 and SDMMC2 :
index 44c091449381603f6d4f9e783c653ec36297e2f7..c9087f5f3dac0a990f01300c298b6b19fbada88c 100644 (file)
 #define STM32F7_RCC_APB2_SAI1          22
 #define STM32F7_RCC_APB2_SAI2          23
 #define STM32F7_RCC_APB2_LTDC          26
+#define STM32F7_RCC_APB2_DSI           27
 
 #define STM32F7_APB2_RESET(bit)        (STM32F7_RCC_APB2_##bit + (0x24 * 8))
 #define STM32F7_APB2_CLOCK(bit)        (STM32F7_RCC_APB2_##bit + 0xA0)