Skip to content

Commit 00e532c

Browse files
Sam Protsenkokrzk
authored andcommitted
clk: samsung: exynos850: Add PDMA clocks
Add Peripheral DMA (PDMA) clocks in CMU_CORE controller: - PDMA_ACLK: clock for PDMA0 (regular DMA) - SPDMA_ACLK: clock for PDMA1 (secure DMA) Signed-off-by: Sam Protsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent dd4905d commit 00e532c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

drivers/clk/samsung/clk-exynos850.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define CLKS_NR_IS (CLK_GOUT_IS_SYSREG_PCLK + 1)
2727
#define CLKS_NR_MFCMSCL (CLK_GOUT_MFCMSCL_SYSREG_PCLK + 1)
2828
#define CLKS_NR_PERI (CLK_GOUT_WDT1_PCLK + 1)
29-
#define CLKS_NR_CORE (CLK_GOUT_SYSREG_CORE_PCLK + 1)
29+
#define CLKS_NR_CORE (CLK_GOUT_SPDMA_CORE_ACLK + 1)
3030
#define CLKS_NR_DPU (CLK_GOUT_DPU_SYSREG_PCLK + 1)
3131

3232
/* ---- CMU_TOP ------------------------------------------------------------- */
@@ -1667,6 +1667,8 @@ CLK_OF_DECLARE(exynos850_cmu_peri, "samsung,exynos850-cmu-peri",
16671667
#define CLK_CON_GAT_GOUT_CORE_GPIO_CORE_PCLK 0x2044
16681668
#define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_I_ACLK 0x20e8
16691669
#define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN 0x20ec
1670+
#define CLK_CON_GAT_GOUT_CORE_PDMA_ACLK 0x20f0
1671+
#define CLK_CON_GAT_GOUT_CORE_SPDMA_ACLK 0x2124
16701672
#define CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK 0x2128
16711673
#define CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK 0x212c
16721674
#define CLK_CON_GAT_GOUT_CORE_SYSREG_CORE_PCLK 0x2130
@@ -1683,6 +1685,8 @@ static const unsigned long core_clk_regs[] __initconst = {
16831685
CLK_CON_GAT_GOUT_CORE_GPIO_CORE_PCLK,
16841686
CLK_CON_GAT_GOUT_CORE_MMC_EMBD_I_ACLK,
16851687
CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN,
1688+
CLK_CON_GAT_GOUT_CORE_PDMA_ACLK,
1689+
CLK_CON_GAT_GOUT_CORE_SPDMA_ACLK,
16861690
CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK,
16871691
CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK,
16881692
CLK_CON_GAT_GOUT_CORE_SYSREG_CORE_PCLK,
@@ -1726,6 +1730,10 @@ static const struct samsung_gate_clock core_gate_clks[] __initconst = {
17261730
GATE(CLK_GOUT_MMC_EMBD_SDCLKIN, "gout_mmc_embd_sdclkin",
17271731
"mout_core_mmc_embd_user", CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN,
17281732
21, CLK_SET_RATE_PARENT, 0),
1733+
GATE(CLK_GOUT_PDMA_CORE_ACLK, "gout_pdma_core_aclk",
1734+
"mout_core_bus_user", CLK_CON_GAT_GOUT_CORE_PDMA_ACLK, 21, 0, 0),
1735+
GATE(CLK_GOUT_SPDMA_CORE_ACLK, "gout_spdma_core_aclk",
1736+
"mout_core_bus_user", CLK_CON_GAT_GOUT_CORE_SPDMA_ACLK, 21, 0, 0),
17291737
GATE(CLK_GOUT_SSS_ACLK, "gout_sss_aclk", "mout_core_sss_user",
17301738
CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK, 21, 0, 0),
17311739
GATE(CLK_GOUT_SSS_PCLK, "gout_sss_pclk", "dout_core_busp",

0 commit comments

Comments
 (0)