Home
last modified time | relevance | path

Searched refs:ccm_base (Results 1 – 13 of 13) sorted by relevance

/linux-5.19.10/drivers/clk/imx/
Dclk-imx8mp.c414 void __iomem *anatop_base, *ccm_base; in imx8mp_clocks_probe() local
423 ccm_base = devm_platform_ioremap_resource(pdev, 0); in imx8mp_clocks_probe()
424 if (WARN_ON(IS_ERR(ccm_base))) { in imx8mp_clocks_probe()
426 return PTR_ERR(ccm_base); in imx8mp_clocks_probe()
521 …hws[IMX8MP_CLK_A53_DIV] = imx8m_clk_hw_composite_core("arm_a53_div", imx8mp_a53_sels, ccm_base + 0… in imx8mp_clocks_probe()
524 …hws[IMX8MP_CLK_M7_CORE] = imx8m_clk_hw_composite_core("m7_core", imx8mp_m7_sels, ccm_base + 0x8080… in imx8mp_clocks_probe()
525 …hws[IMX8MP_CLK_ML_CORE] = imx8m_clk_hw_composite_core("ml_core", imx8mp_ml_sels, ccm_base + 0x8100… in imx8mp_clocks_probe()
526 …GPU3D_CORE] = imx8m_clk_hw_composite_core("gpu3d_core", imx8mp_gpu3d_core_sels, ccm_base + 0x8180); in imx8mp_clocks_probe()
527 …R_CORE] = imx8m_clk_hw_composite("gpu3d_shader_core", imx8mp_gpu3d_shader_sels, ccm_base + 0x8200); in imx8mp_clocks_probe()
528 …hws[IMX8MP_CLK_GPU2D_CORE] = imx8m_clk_hw_composite("gpu2d_core", imx8mp_gpu2d_sels, ccm_base + 0x… in imx8mp_clocks_probe()
[all …]
Dclk-imxrt1050.c38 void __iomem *ccm_base; in imxrt1050_clocks_probe() local
106 ccm_base = devm_platform_ioremap_resource(pdev, 0); in imxrt1050_clocks_probe()
107 if (WARN_ON(IS_ERR(ccm_base))) in imxrt1050_clocks_probe()
108 return PTR_ERR(ccm_base); in imxrt1050_clocks_probe()
110 hws[IMXRT1050_CLK_ARM_PODF] = imx_clk_hw_divider("arm_podf", "pll1_arm", ccm_base + 0x10, 0, 3); in imxrt1050_clocks_probe()
111 hws[IMXRT1050_CLK_PRE_PERIPH_SEL] = imx_clk_hw_mux("pre_periph_sel", ccm_base + 0x18, 18, 2, in imxrt1050_clocks_probe()
113 hws[IMXRT1050_CLK_PERIPH_SEL] = imx_clk_hw_mux("periph_sel", ccm_base + 0x14, 25, 1, in imxrt1050_clocks_probe()
115 hws[IMXRT1050_CLK_USDHC1_SEL] = imx_clk_hw_mux("usdhc1_sel", ccm_base + 0x1c, 16, 1, in imxrt1050_clocks_probe()
117 hws[IMXRT1050_CLK_USDHC2_SEL] = imx_clk_hw_mux("usdhc2_sel", ccm_base + 0x1c, 17, 1, in imxrt1050_clocks_probe()
119 hws[IMXRT1050_CLK_LPUART_SEL] = imx_clk_hw_mux("lpuart_sel", ccm_base + 0x24, 6, 1, in imxrt1050_clocks_probe()
[all …]
Dclk-vf610.c14 #define CCM_CCR (ccm_base + 0x00)
15 #define CCM_CSR (ccm_base + 0x04)
16 #define CCM_CCSR (ccm_base + 0x08)
17 #define CCM_CACRR (ccm_base + 0x0c)
18 #define CCM_CSCMR1 (ccm_base + 0x10)
19 #define CCM_CSCDR1 (ccm_base + 0x14)
20 #define CCM_CSCDR2 (ccm_base + 0x18)
21 #define CCM_CSCDR3 (ccm_base + 0x1c)
22 #define CCM_CSCMR2 (ccm_base + 0x20)
23 #define CCM_CSCDR4 (ccm_base + 0x24)
[all …]
Dclk-imx5.c30 #define MXC_CCM_CCR (ccm_base + 0x00)
31 #define MXC_CCM_CCDR (ccm_base + 0x04)
32 #define MXC_CCM_CSR (ccm_base + 0x08)
33 #define MXC_CCM_CCSR (ccm_base + 0x0c)
34 #define MXC_CCM_CACRR (ccm_base + 0x10)
35 #define MXC_CCM_CBCDR (ccm_base + 0x14)
36 #define MXC_CCM_CBCMR (ccm_base + 0x18)
37 #define MXC_CCM_CSCMR1 (ccm_base + 0x1c)
38 #define MXC_CCM_CSCMR2 (ccm_base + 0x20)
39 #define MXC_CCM_CSCDR1 (ccm_base + 0x24)
[all …]
Dclk.c40 void imx_mmdc_mask_handshake(void __iomem *ccm_base, in imx_mmdc_mask_handshake() argument
45 reg = readl_relaxed(ccm_base + CCM_CCDR); in imx_mmdc_mask_handshake()
47 writel_relaxed(reg, ccm_base + CCM_CCDR); in imx_mmdc_mask_handshake()
Dclk-imx6sl.c102 static void __iomem *ccm_base; variable
129 if (readl_relaxed(ccm_base + CCSR) & BM_CCSR_PLL1_SW_CLK_SEL) { in imx6sl_get_arm_divider_for_wait()
170 saved_arm_div = readl_relaxed(ccm_base + CACRR); in imx6sl_set_wait_clk()
171 writel_relaxed(arm_div_for_wait, ccm_base + CACRR); in imx6sl_set_wait_clk()
173 writel_relaxed(saved_arm_div, ccm_base + CACRR); in imx6sl_set_wait_clk()
175 while (__raw_readl(ccm_base + CDHIPR) & BM_CDHIPR_ARM_PODF_BUSY) in imx6sl_set_wait_clk()
291 ccm_base = base; in imx6sl_clocks_init()
Dclk-imx6q.c266 static void mmdc_ch1_disable(void __iomem *ccm_base) in mmdc_ch1_disable() argument
274 reg = readl_relaxed(ccm_base + CCM_CCSR); in mmdc_ch1_disable()
276 writel_relaxed(reg, ccm_base + CCM_CCSR); in mmdc_ch1_disable()
279 static void mmdc_ch1_reenable(void __iomem *ccm_base) in mmdc_ch1_reenable() argument
284 reg = readl_relaxed(ccm_base + CCM_CCSR); in mmdc_ch1_reenable()
286 writel_relaxed(reg, ccm_base + CCM_CCSR); in mmdc_ch1_reenable()
318 static void init_ldb_clks(struct device_node *np, void __iomem *ccm_base) in init_ldb_clks() argument
324 reg = readl_relaxed(ccm_base + CCM_CS2CDR); in init_ldb_clks()
366 mmdc_ch1_disable(ccm_base); in init_ldb_clks()
369 reg = readl_relaxed(ccm_base + CCM_CS2CDR); in init_ldb_clks()
[all …]
Dclk-imx25.c41 #define ccm(x) (ccm_base + (x))
76 static int __init __mx25_clocks_init(void __iomem *ccm_base) in __mx25_clocks_init() argument
78 BUG_ON(!ccm_base); in __mx25_clocks_init()
Dclk.h21 void imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn);
/linux-5.19.10/arch/arm/mach-imx/
Dpm-imx6.c63 static void __iomem *ccm_base; variable
226 struct imx6_pm_base ccm_base; member
235 u32 val = readl_relaxed(ccm_base + CGPR); in imx6_set_int_mem_clk_lpm()
240 writel_relaxed(val, ccm_base + CGPR); in imx6_set_int_mem_clk_lpm()
254 val = readl_relaxed(ccm_base + CCR); in imx6_enable_rbc()
257 writel_relaxed(val, ccm_base + CCR); in imx6_enable_rbc()
260 val = readl_relaxed(ccm_base + CCR); in imx6_enable_rbc()
263 writel(val, ccm_base + CCR); in imx6_enable_rbc()
281 val = readl_relaxed(ccm_base + CLPCR); in imx6q_enable_wb()
284 writel_relaxed(val, ccm_base + CLPCR); in imx6q_enable_wb()
[all …]
Dpm-imx27.c20 void __iomem *ccm_base; in mx27_suspend_enter() local
25 ccm_base = of_iomap(np, 0); in mx27_suspend_enter()
26 BUG_ON(!ccm_base); in mx27_suspend_enter()
31 cscr = imx_readl(ccm_base); in mx27_suspend_enter()
33 imx_writel(cscr, ccm_base); in mx27_suspend_enter()
Dcpu-imx27.c25 void __iomem *ccm_base; in mx27_read_cpu_rev() local
30 ccm_base = of_iomap(np, 0); in mx27_read_cpu_rev()
31 BUG_ON(!ccm_base); in mx27_read_cpu_rev()
37 val = imx_readl(ccm_base + SYSCTRL_OFFSET + SYS_CHIP_ID); in mx27_read_cpu_rev()
Dpm-imx5.c133 static void __iomem *ccm_base; variable
152 ccm_clpcr = imx_readl(ccm_base + MXC_CCM_CLPCR) & in mx5_cpu_lp_set()
194 imx_writel(ccm_clpcr, ccm_base + MXC_CCM_CLPCR); in mx5_cpu_lp_set()
388 ccm_base = ioremap(data->ccm_addr, SZ_16K); in imx5_pm_common_init()
391 WARN_ON(!ccm_base || !cortex_base || !gpc_base); in imx5_pm_common_init()