Skip to content

Commit 47c671d

Browse files
Gabriel-Fernandzbebarino
authored andcommitted
clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock
This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 6efb943 commit 47c671d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/clk/clk-stm32mp1.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,16 +1657,16 @@ static const struct stm32_mux_cfg ker_mux_cfg[M_LAST] = {
16571657
};
16581658

16591659
static const struct clock_config stm32mp1_clock_cfg[] = {
1660-
/* Oscillator divider */
1661-
DIV(NO_ID, "clk-hsi-div", "clk-hsi", CLK_DIVIDER_POWER_OF_TWO,
1662-
RCC_HSICFGR, 0, 2, CLK_DIVIDER_READ_ONLY),
1663-
16641660
/* External / Internal Oscillators */
16651661
GATE_MP1(CK_HSE, "ck_hse", "clk-hse", 0, RCC_OCENSETR, 8, 0),
16661662
/* ck_csi is used by IO compensation and should be critical */
16671663
GATE_MP1(CK_CSI, "ck_csi", "clk-csi", CLK_IS_CRITICAL,
16681664
RCC_OCENSETR, 4, 0),
1669-
GATE_MP1(CK_HSI, "ck_hsi", "clk-hsi-div", 0, RCC_OCENSETR, 0, 0),
1665+
COMPOSITE(CK_HSI, "ck_hsi", PARENT("clk-hsi"), 0,
1666+
_GATE_MP1(RCC_OCENSETR, 0, 0),
1667+
_NO_MUX,
1668+
_DIV(RCC_HSICFGR, 0, 2, CLK_DIVIDER_POWER_OF_TWO |
1669+
CLK_DIVIDER_READ_ONLY, NULL)),
16701670
GATE(CK_LSI, "ck_lsi", "clk-lsi", 0, RCC_RDLSICR, 0, 0),
16711671
GATE(CK_LSE, "ck_lse", "clk-lse", 0, RCC_BDCR, 0, 0),
16721672

0 commit comments

Comments
 (0)