Home
last modified time | relevance | path

Searched refs:axi_clk (Results 1 – 25 of 34) sorted by relevance

12

/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_mdss.c22 struct clk *axi_clk; member
139 if (mdp5_mdss->axi_clk) in mdp5_mdss_enable()
140 clk_prepare_enable(mdp5_mdss->axi_clk); in mdp5_mdss_enable()
154 if (mdp5_mdss->axi_clk) in mdp5_mdss_disable()
155 clk_disable_unprepare(mdp5_mdss->axi_clk); in mdp5_mdss_disable()
170 mdp5_mdss->axi_clk = msm_clk_get(pdev, "bus"); in msm_mdss_get_clocks()
171 if (IS_ERR(mdp5_mdss->axi_clk)) in msm_mdss_get_clocks()
172 mdp5_mdss->axi_clk = NULL; in msm_mdss_get_clocks()
Dmdp5_kms.c303 clk_disable_unprepare(mdp5_kms->axi_clk); in mdp5_disable()
318 clk_prepare_enable(mdp5_kms->axi_clk); in mdp5_enable()
858 ret = get_clk(pdev, &mdp5_kms->axi_clk, "bus", true); in mdp5_init()
/drivers/staging/clocking-wizard/
Dclk-xlnx-clock-wizard.c80 struct clk *axi_clk; member
367 else if (ndata->clk == clk_wzrd->axi_clk) in clk_wzrd_clk_notifier()
388 clk_disable_unprepare(clk_wzrd->axi_clk); in clk_wzrd_suspend()
399 ret = clk_prepare_enable(clk_wzrd->axi_clk); in clk_wzrd_resume()
450 clk_wzrd->axi_clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); in clk_wzrd_probe()
451 if (IS_ERR(clk_wzrd->axi_clk)) { in clk_wzrd_probe()
452 if (clk_wzrd->axi_clk != ERR_PTR(-EPROBE_DEFER)) in clk_wzrd_probe()
454 return PTR_ERR(clk_wzrd->axi_clk); in clk_wzrd_probe()
456 ret = clk_prepare_enable(clk_wzrd->axi_clk); in clk_wzrd_probe()
461 rate = clk_get_rate(clk_wzrd->axi_clk); in clk_wzrd_probe()
[all …]
/drivers/spi/
Dspi-orion.c97 struct clk *axi_clk; member
703 spi->axi_clk = devm_clk_get(&pdev->dev, "axi"); in orion_spi_probe()
704 if (PTR_ERR(spi->axi_clk) == -EPROBE_DEFER) { in orion_spi_probe()
708 if (!IS_ERR(spi->axi_clk)) in orion_spi_probe()
709 clk_prepare_enable(spi->axi_clk); in orion_spi_probe()
798 clk_disable_unprepare(spi->axi_clk); in orion_spi_probe()
813 clk_disable_unprepare(spi->axi_clk); in orion_spi_remove()
830 clk_disable_unprepare(spi->axi_clk); in orion_spi_runtime_suspend()
840 if (!IS_ERR(spi->axi_clk)) in orion_spi_runtime_resume()
841 clk_prepare_enable(spi->axi_clk); in orion_spi_runtime_resume()
Dspi-mtk-nor.c106 struct clk *axi_clk; member
676 clk_disable_unprepare(sp->axi_clk); in mtk_nor_disable_clk()
693 ret = clk_prepare_enable(sp->axi_clk); in mtk_nor_enable_clk()
758 struct clk *spi_clk, *ctlr_clk, *axi_clk; in mtk_nor_probe() local
774 axi_clk = devm_clk_get_optional(&pdev->dev, "axi"); in mtk_nor_probe()
775 if (IS_ERR(axi_clk)) in mtk_nor_probe()
776 return PTR_ERR(axi_clk); in mtk_nor_probe()
810 sp->axi_clk = axi_clk; in mtk_nor_probe()
/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_kms.c180 if (mdp4_kms->axi_clk) in mdp4_disable()
181 clk_disable_unprepare(mdp4_kms->axi_clk); in mdp4_disable()
195 if (mdp4_kms->axi_clk) in mdp4_enable()
196 clk_prepare_enable(mdp4_kms->axi_clk); in mdp4_enable()
471 mdp4_kms->axi_clk = devm_clk_get(&pdev->dev, "bus_clk"); in mdp4_kms_init()
472 if (IS_ERR(mdp4_kms->axi_clk)) { in mdp4_kms_init()
474 ret = PTR_ERR(mdp4_kms->axi_clk); in mdp4_kms_init()
Dmdp4_kms.h33 struct clk *axi_clk; member
/drivers/gpu/drm/imx/dcss/
Ddcss-dev.c20 clk_prepare_enable(dcss->axi_clk); in dcss_clocks_enable()
33 clk_disable_unprepare(dcss->axi_clk); in dcss_clocks_disable()
138 {"axi", &dcss->axi_clk}, in dcss_clks_init()
161 devm_clk_put(dcss->dev, dcss->axi_clk); in dcss_clks_release()
/drivers/dma/xilinx/
Dxilinx_dma.c471 int (*clk_init)(struct platform_device *pdev, struct clk **axi_clk,
506 struct clk *axi_clk; member
2578 static int axidma_clk_init(struct platform_device *pdev, struct clk **axi_clk, in axidma_clk_init() argument
2586 *axi_clk = devm_clk_get(&pdev->dev, "s_axi_lite_aclk"); in axidma_clk_init()
2587 if (IS_ERR(*axi_clk)) in axidma_clk_init()
2588 return dev_err_probe(&pdev->dev, PTR_ERR(*axi_clk), "failed to get axi_aclk\n"); in axidma_clk_init()
2602 err = clk_prepare_enable(*axi_clk); in axidma_clk_init()
2633 clk_disable_unprepare(*axi_clk); in axidma_clk_init()
2638 static int axicdma_clk_init(struct platform_device *pdev, struct clk **axi_clk, in axicdma_clk_init() argument
2648 *axi_clk = devm_clk_get(&pdev->dev, "s_axi_lite_aclk"); in axicdma_clk_init()
[all …]
Dxilinx_dpdma.c265 struct clk *axi_clk; member
1639 xdev->axi_clk = devm_clk_get(xdev->dev, "axi_clk"); in xilinx_dpdma_probe()
1640 if (IS_ERR(xdev->axi_clk)) in xilinx_dpdma_probe()
1641 return PTR_ERR(xdev->axi_clk); in xilinx_dpdma_probe()
1696 ret = clk_prepare_enable(xdev->axi_clk); in xilinx_dpdma_probe()
1726 clk_disable_unprepare(xdev->axi_clk); in xilinx_dpdma_probe()
1747 clk_disable_unprepare(xdev->axi_clk); in xilinx_dpdma_remove()
/drivers/mmc/host/
Dsdhci-xenon.c524 priv->axi_clk = devm_clk_get(&pdev->dev, "axi"); in xenon_probe()
525 if (IS_ERR(priv->axi_clk)) { in xenon_probe()
526 err = PTR_ERR(priv->axi_clk); in xenon_probe()
530 err = clk_prepare_enable(priv->axi_clk); in xenon_probe()
573 clk_disable_unprepare(priv->axi_clk); in xenon_probe()
594 clk_disable_unprepare(priv->axi_clk); in xenon_remove()
Dsdhci-xenon.h90 struct clk *axi_clk; member
/drivers/gpu/drm/zte/
Dzx_vou.c176 struct clk *axi_clk; member
821 vou->axi_clk = devm_clk_get(dev, "aclk"); in zx_crtc_bind()
822 if (IS_ERR(vou->axi_clk)) { in zx_crtc_bind()
823 ret = PTR_ERR(vou->axi_clk); in zx_crtc_bind()
835 ret = clk_prepare_enable(vou->axi_clk); in zx_crtc_bind()
879 clk_disable_unprepare(vou->axi_clk); in zx_crtc_bind()
888 clk_disable_unprepare(vou->axi_clk); in zx_crtc_unbind()
/drivers/net/ethernet/xilinx/
Dxilinx_axienet_mdio.c162 if (lp->axi_clk) { in axienet_mdio_enable()
163 host_clock = clk_get_rate(lp->axi_clk); in axienet_mdio_enable()
Dxilinx_axienet_main.c1917 lp->axi_clk = devm_clk_get_optional(&pdev->dev, "s_axi_lite_clk"); in axienet_probe()
1918 if (!lp->axi_clk) { in axienet_probe()
1922 lp->axi_clk = devm_clk_get_optional(&pdev->dev, NULL); in axienet_probe()
1924 if (IS_ERR(lp->axi_clk)) { in axienet_probe()
1925 ret = PTR_ERR(lp->axi_clk); in axienet_probe()
1928 ret = clk_prepare_enable(lp->axi_clk); in axienet_probe()
2183 clk_disable_unprepare(lp->axi_clk); in axienet_probe()
2207 clk_disable_unprepare(lp->axi_clk); in axienet_remove()
Dxilinx_axienet.h440 struct clk *axi_clk; member
/drivers/phy/marvell/
Dphy-mvebu-cp110-comphy.c259 struct clk *axi_clk; member
950 priv->axi_clk = devm_clk_get(priv->dev, "axi_clk"); in mvebu_comphy_init_clks()
951 if (IS_ERR(priv->axi_clk)) { in mvebu_comphy_init_clks()
952 ret = PTR_ERR(priv->axi_clk); in mvebu_comphy_init_clks()
956 ret = clk_prepare_enable(priv->axi_clk); in mvebu_comphy_init_clks()
970 priv->axi_clk = NULL; in mvebu_comphy_init_clks()
977 if (priv->axi_clk) in mvebu_comphy_disable_unprepare_clks()
978 clk_disable_unprepare(priv->axi_clk); in mvebu_comphy_disable_unprepare_clks()
/drivers/clk/sunxi-ng/
Dccu-sun8i-v3s.c143 static SUNXI_CCU_M(axi_clk, "axi", "cpu", 0x050, 0, 2, 0);
399 &axi_clk.common,
475 &axi_clk.common,
572 [CLK_AXI] = &axi_clk.common.hw,
652 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun8i-a23.c173 static SUNXI_CCU_M(axi_clk, "axi", "cpux", 0x050, 0, 2, 0);
467 &axi_clk.common,
589 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun5i.c197 static SUNXI_CCU_M(axi_clk, "axi", "cpu", 0x054, 0, 2, 0);
521 &axi_clk.common,
649 [CLK_AXI] = &axi_clk.common.hw,
788 [CLK_AXI] = &axi_clk.common.hw,
894 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun8i-h3.c147 static SUNXI_CCU_M(axi_clk, "axi", "cpux", 0x050, 0, 2, 0);
511 &axi_clk.common,
624 &axi_clk.common,
759 [CLK_AXI] = &axi_clk.common.hw,
880 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun8i-a33.c183 static SUNXI_CCU_M(axi_clk, "axi", "cpux", 0x050, 0, 2, 0);
499 &axi_clk.common,
628 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun50i-a64.c223 static SUNXI_CCU_M(axi_clk, "axi", "cpux", 0x050, 0, 2, 0);
645 &axi_clk.common,
761 [CLK_AXI] = &axi_clk.common.hw,
Dccu-sun50i-h616.c243 static SUNXI_CCU_M(axi_clk, "axi", "cpux", 0x500, 0, 2, 0);
739 &axi_clk.common,
871 [CLK_AXI] = &axi_clk.common.hw,
/drivers/misc/
Dxilinx_sdfec.c180 struct clk *axi_clk; member
1215 clks->axi_clk = devm_clk_get(&pdev->dev, "s_axi_aclk"); in xsdfec_clk_init()
1216 if (IS_ERR(clks->axi_clk)) { in xsdfec_clk_init()
1218 return PTR_ERR(clks->axi_clk); in xsdfec_clk_init()
1282 err = clk_prepare_enable(clks->axi_clk); in xsdfec_clk_init()
1338 clk_disable_unprepare(clks->axi_clk); in xsdfec_clk_init()
1354 clk_disable_unprepare(clks->axi_clk); in xsdfec_disable_all_clks()

12