mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
clk: clk_stm32f: Add DSI clock support
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>
This commit is contained in:
committed by
Tom Rini
parent
5e993508cb
commit
6243c88448
@@ -432,7 +432,7 @@ static ulong stm32_clk_get_rate(struct clk *clk)
|
|||||||
return (sysclk >> stm32_get_apb_shift(regs, APB1));
|
return (sysclk >> stm32_get_apb_shift(regs, APB1));
|
||||||
|
|
||||||
/* APB2 CLOCK */
|
/* APB2 CLOCK */
|
||||||
case STM32F7_APB2_CLOCK(TIM1) ... STM32F7_APB2_CLOCK(LTDC):
|
case STM32F7_APB2_CLOCK(TIM1) ... STM32F7_APB2_CLOCK(DSI):
|
||||||
switch (clk->id) {
|
switch (clk->id) {
|
||||||
/*
|
/*
|
||||||
* particular case for SDMMC1 and SDMMC2 :
|
* particular case for SDMMC1 and SDMMC2 :
|
||||||
|
@@ -106,6 +106,7 @@
|
|||||||
#define STM32F7_RCC_APB2_SAI1 22
|
#define STM32F7_RCC_APB2_SAI1 22
|
||||||
#define STM32F7_RCC_APB2_SAI2 23
|
#define STM32F7_RCC_APB2_SAI2 23
|
||||||
#define STM32F7_RCC_APB2_LTDC 26
|
#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_RESET(bit) (STM32F7_RCC_APB2_##bit + (0x24 * 8))
|
||||||
#define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0)
|
#define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0)
|
||||||
|
Reference in New Issue
Block a user