Skip to content

Commit 79b918a

Browse files
Sam Protsenkokrzk
authored andcommitted
clk: samsung: exynos850: Add TMU clock
Add TMU PCLK clock in CMU_PERI unit. It acts simultaneously as an interface clock (to access TMU registers) and an operating clock which makes TMU IP-core functional. Signed-off-by: Sam Protsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 01ce1bf commit 79b918a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/clk/samsung/clk-exynos850.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define CLKS_NR_HSI (CLK_GOUT_HSI_CMU_HSI_PCLK + 1)
2929
#define CLKS_NR_IS (CLK_GOUT_IS_SYSREG_PCLK + 1)
3030
#define CLKS_NR_MFCMSCL (CLK_GOUT_MFCMSCL_SYSREG_PCLK + 1)
31-
#define CLKS_NR_PERI (CLK_GOUT_WDT1_PCLK + 1)
31+
#define CLKS_NR_PERI (CLK_GOUT_BUSIF_TMU_PCLK + 1)
3232
#define CLKS_NR_CORE (CLK_GOUT_SPDMA_CORE_ACLK + 1)
3333
#define CLKS_NR_DPU (CLK_GOUT_DPU_SYSREG_PCLK + 1)
3434

@@ -1921,6 +1921,7 @@ static const struct samsung_cmu_info mfcmscl_cmu_info __initconst = {
19211921
#define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_0 0x200c
19221922
#define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_1 0x2010
19231923
#define CLK_CON_GAT_GATE_CLK_PERI_HSI2C_2 0x2014
1924+
#define CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK 0x2018
19241925
#define CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK 0x2020
19251926
#define CLK_CON_GAT_GOUT_PERI_HSI2C_0_IPCLK 0x2024
19261927
#define CLK_CON_GAT_GOUT_PERI_HSI2C_0_PCLK 0x2028
@@ -1957,6 +1958,7 @@ static const unsigned long peri_clk_regs[] __initconst = {
19571958
CLK_CON_GAT_GATE_CLK_PERI_HSI2C_0,
19581959
CLK_CON_GAT_GATE_CLK_PERI_HSI2C_1,
19591960
CLK_CON_GAT_GATE_CLK_PERI_HSI2C_2,
1961+
CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK,
19601962
CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK,
19611963
CLK_CON_GAT_GOUT_PERI_HSI2C_0_IPCLK,
19621964
CLK_CON_GAT_GOUT_PERI_HSI2C_0_PCLK,
@@ -2068,6 +2070,9 @@ static const struct samsung_gate_clock peri_gate_clks[] __initconst = {
20682070
GATE(CLK_GOUT_GPIO_PERI_PCLK, "gout_gpio_peri_pclk",
20692071
"mout_peri_bus_user",
20702072
CLK_CON_GAT_GOUT_PERI_GPIO_PERI_PCLK, 21, CLK_IGNORE_UNUSED, 0),
2073+
GATE(CLK_GOUT_BUSIF_TMU_PCLK, "gout_busif_tmu_pclk",
2074+
"mout_peri_bus_user",
2075+
CLK_CON_GAT_GOUT_PERI_BUSIF_TMU_PCLK, 21, 0, 0),
20712076
};
20722077

20732078
static const struct samsung_cmu_info peri_cmu_info __initconst = {

0 commit comments

Comments
 (0)