/linux-6.12.1/drivers/clk/imx/ |
D | clk-imx8mp.c | 412 void __iomem *anatop_base, *ccm_base; in imx8mp_clocks_probe() local 422 ccm_base = devm_platform_ioremap_resource(pdev, 0); in imx8mp_clocks_probe() 423 if (WARN_ON(IS_ERR(ccm_base))) in imx8mp_clocks_probe() 424 return PTR_ERR(ccm_base); in imx8mp_clocks_probe() 516 …hws[IMX8MP_CLK_A53_DIV] = imx8m_clk_hw_composite_core("arm_a53_div", imx8mp_a53_sels, ccm_base + 0… in imx8mp_clocks_probe() 519 …hws[IMX8MP_CLK_M7_CORE] = imx8m_clk_hw_composite_core("m7_core", imx8mp_m7_sels, ccm_base + 0x8080… in imx8mp_clocks_probe() 520 …hws[IMX8MP_CLK_ML_CORE] = imx8m_clk_hw_composite_core("ml_core", imx8mp_ml_sels, ccm_base + 0x8100… in imx8mp_clocks_probe() 521 …GPU3D_CORE] = imx8m_clk_hw_composite_core("gpu3d_core", imx8mp_gpu3d_core_sels, ccm_base + 0x8180); in imx8mp_clocks_probe() 522 …R_CORE] = imx8m_clk_hw_composite("gpu3d_shader_core", imx8mp_gpu3d_shader_sels, ccm_base + 0x8200); in imx8mp_clocks_probe() 523 …hws[IMX8MP_CLK_GPU2D_CORE] = imx8m_clk_hw_composite("gpu2d_core", imx8mp_gpu2d_sels, ccm_base + 0x… in imx8mp_clocks_probe() [all …]
|
D | clk-imxrt1050.c | 38 void __iomem *ccm_base; in imxrt1050_clocks_probe() local 108 ccm_base = devm_platform_ioremap_resource(pdev, 0); in imxrt1050_clocks_probe() 109 if (WARN_ON(IS_ERR(ccm_base))) { in imxrt1050_clocks_probe() 110 ret = PTR_ERR(ccm_base); in imxrt1050_clocks_probe() 114 hws[IMXRT1050_CLK_ARM_PODF] = imx_clk_hw_divider("arm_podf", "pll1_arm", ccm_base + 0x10, 0, 3); in imxrt1050_clocks_probe() 115 hws[IMXRT1050_CLK_PRE_PERIPH_SEL] = imx_clk_hw_mux("pre_periph_sel", ccm_base + 0x18, 18, 2, in imxrt1050_clocks_probe() 117 hws[IMXRT1050_CLK_PERIPH_SEL] = imx_clk_hw_mux("periph_sel", ccm_base + 0x14, 25, 1, in imxrt1050_clocks_probe() 119 hws[IMXRT1050_CLK_USDHC1_SEL] = imx_clk_hw_mux("usdhc1_sel", ccm_base + 0x1c, 16, 1, in imxrt1050_clocks_probe() 121 hws[IMXRT1050_CLK_USDHC2_SEL] = imx_clk_hw_mux("usdhc2_sel", ccm_base + 0x1c, 17, 1, in imxrt1050_clocks_probe() 123 hws[IMXRT1050_CLK_LPUART_SEL] = imx_clk_hw_mux("lpuart_sel", ccm_base + 0x24, 6, 1, in imxrt1050_clocks_probe() [all …]
|
D | clk-vf610.c | 14 #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 …]
|
D | clk-imx5.c | 30 #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 …]
|
D | clk.c | 32 void imx_mmdc_mask_handshake(void __iomem *ccm_base, in imx_mmdc_mask_handshake() argument 37 reg = readl_relaxed(ccm_base + CCM_CCDR); in imx_mmdc_mask_handshake() 39 writel_relaxed(reg, ccm_base + CCM_CCDR); in imx_mmdc_mask_handshake()
|
D | clk-imx6sl.c | 102 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()
|
D | clk-imx6q.c | 271 static void mmdc_ch1_disable(void __iomem *ccm_base) in mmdc_ch1_disable() argument 279 reg = readl_relaxed(ccm_base + CCM_CCSR); in mmdc_ch1_disable() 281 writel_relaxed(reg, ccm_base + CCM_CCSR); in mmdc_ch1_disable() 284 static void mmdc_ch1_reenable(void __iomem *ccm_base) in mmdc_ch1_reenable() argument 289 reg = readl_relaxed(ccm_base + CCM_CCSR); in mmdc_ch1_reenable() 291 writel_relaxed(reg, ccm_base + CCM_CCSR); in mmdc_ch1_reenable() 323 static void init_ldb_clks(struct device_node *np, void __iomem *ccm_base) in init_ldb_clks() argument 329 reg = readl_relaxed(ccm_base + CCM_CS2CDR); in init_ldb_clks() 371 mmdc_ch1_disable(ccm_base); in init_ldb_clks() 374 reg = readl_relaxed(ccm_base + CCM_CS2CDR); in init_ldb_clks() [all …]
|
D | clk-imx25.c | 42 #define ccm(x) (ccm_base + (x)) 77 static void __init __mx25_clocks_init(void __iomem *ccm_base) in __mx25_clocks_init() argument 79 BUG_ON(!ccm_base); in __mx25_clocks_init()
|
D | clk.h | 21 void imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn);
|
/linux-6.12.1/arch/arm/mach-imx/ |
D | pm-imx6.c | 64 static void __iomem *ccm_base; variable 227 struct imx6_pm_base ccm_base; member 236 u32 val = readl_relaxed(ccm_base + CGPR); in imx6_set_int_mem_clk_lpm() 241 writel_relaxed(val, ccm_base + CGPR); in imx6_set_int_mem_clk_lpm() 255 val = readl_relaxed(ccm_base + CCR); in imx6_enable_rbc() 258 writel_relaxed(val, ccm_base + CCR); in imx6_enable_rbc() 261 val = readl_relaxed(ccm_base + CCR); in imx6_enable_rbc() 264 writel(val, ccm_base + CCR); in imx6_enable_rbc() 282 val = readl_relaxed(ccm_base + CLPCR); in imx6q_enable_wb() 285 writel_relaxed(val, ccm_base + CLPCR); in imx6q_enable_wb() [all …]
|
D | pm-imx27.c | 20 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()
|
D | cpu-imx27.c | 25 void __iomem *ccm_base; in mx27_read_cpu_rev() local 30 ccm_base = of_iomap(np, 0); in mx27_read_cpu_rev() 32 BUG_ON(!ccm_base); in mx27_read_cpu_rev() 38 val = imx_readl(ccm_base + SYSCTRL_OFFSET + SYS_CHIP_ID); in mx27_read_cpu_rev()
|
D | pm-imx5.c | 134 static void __iomem *ccm_base; variable 153 ccm_clpcr = imx_readl(ccm_base + MXC_CCM_CLPCR) & in mx5_cpu_lp_set() 195 imx_writel(ccm_clpcr, ccm_base + MXC_CCM_CLPCR); in mx5_cpu_lp_set() 389 ccm_base = ioremap(data->ccm_addr, SZ_16K); in imx5_pm_common_init() 392 WARN_ON(!ccm_base || !cortex_base || !gpc_base); in imx5_pm_common_init()
|