/openbmc/linux/drivers/clk/imx/ |
H A 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() 558 hws[IMX8MP_CLK_CAN1] = imx8m_clk_hw_composite("can1", imx8mp_can1_sels, ccm_base + 0xa200); in imx8mp_clocks_probe() 559 hws[IMX8MP_CLK_CAN2] = imx8m_clk_hw_composite("can2", imx8mp_can2_sels, ccm_base + 0xa280); in imx8mp_clocks_probe() 561 hws[IMX8MP_CLK_I2C5] = imx8m_clk_hw_composite("i2c5", imx8mp_i2c5_sels, ccm_base + 0xa480); in imx8mp_clocks_probe() 562 hws[IMX8MP_CLK_I2C6] = imx8m_clk_hw_composite("i2c6", imx8mp_i2c6_sels, ccm_base + 0xa500); in imx8mp_clocks_probe() 563 hws[IMX8MP_CLK_SAI1] = imx8m_clk_hw_composite("sai1", imx8mp_sai1_sels, ccm_base + 0xa580); in imx8mp_clocks_probe() 564 hws[IMX8MP_CLK_SAI2] = imx8m_clk_hw_composite("sai2", imx8mp_sai2_sels, ccm_base + 0xa600); in imx8mp_clocks_probe() [all …]
|
H A 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() 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() 123 hws[IMXRT1050_CLK_LPUART_SEL] = imx_clk_hw_mux("lpuart_sel", ccm_base + 0x24, 6, 1, in imxrt1050_clocks_probe() 125 hws[IMXRT1050_CLK_LCDIF_SEL] = imx_clk_hw_mux("lcdif_sel", ccm_base + 0x38, 15, 3, in imxrt1050_clocks_probe() 127 hws[IMXRT1050_CLK_PER_CLK_SEL] = imx_clk_hw_mux("per_sel", ccm_base + 0x1C, 6, 1, in imxrt1050_clocks_probe() 149 hws[IMXRT1050_CLK_DMA] = imx_clk_hw_gate("dma", "ipg", ccm_base + 0x7C, 6); in imxrt1050_clocks_probe() [all …]
|
H A 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) 25 #define CCM_CISR (ccm_base + 0x30) 26 #define CCM_CIMR (ccm_base + 0x34) 27 #define CCM_CGPR (ccm_base + 0x3c) 69 static void __iomem *ccm_base; variable 205 ccm_base = of_iomap(np, 0); in vf610_clocks_init() [all …]
|
H A D | clk-imx5.c | 30 #define MXC_CCM_CCR (ccm_base + 0x00) 32 #define MXC_CCM_CSR (ccm_base + 0x08) 282 void __iomem *ccm_base; in mx50_clocks_init() local 298 ccm_base = of_iomap(np, 0); in mx50_clocks_init() 299 WARN_ON(!ccm_base); in mx50_clocks_init() 367 void __iomem *ccm_base; in mx51_clocks_init() local 383 ccm_base = of_iomap(np, 0); in mx51_clocks_init() 384 WARN_ON(!ccm_base); in mx51_clocks_init() 473 void __iomem *ccm_base; in mx53_clocks_init() local 493 ccm_base = of_iomap(np, 0); in mx53_clocks_init() [all …]
|
H A 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()
|
H A 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()
|
H A 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() 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() 379 writel_relaxed(reg, ccm_base + CCM_CS2CDR); in init_ldb_clks() [all …]
|
H A 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()
|
H A D | clk.h | 21 void imx_mmdc_mask_handshake(void __iomem *ccm_base, unsigned int chn);
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | pm-imx6.c | 64 static void __iomem *ccm_base; variable 227 struct imx6_pm_base ccm_base; member 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() 288 val = readl_relaxed(ccm_base + CCR); in imx6q_enable_wb() 524 pm_info->ccm_base.vbase = ccm_base; in imx6q_suspend_init() 602 WARN_ON(!ccm_base); in imx6_pm_common_init() 653 ccm_base = of_iomap(np, 0); in imx6_pm_ccm_init() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|