Home
last modified time | relevance | path

Searched refs:aclk (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/linux/drivers/clk/
H A Dclk-axm5516.c38 struct axxia_clk aclk; member
41 #define to_axxia_pllclk(_aclk) container_of(_aclk, struct axxia_pllclk, aclk)
50 struct axxia_clk *aclk = to_axxia_clk(hw); in axxia_pllclk_recalc() local
51 struct axxia_pllclk *pll = to_axxia_pllclk(aclk); in axxia_pllclk_recalc()
55 regmap_read(aclk->regmap, pll->reg, &control); in axxia_pllclk_recalc()
76 struct axxia_clk aclk; member
81 #define to_axxia_divclk(_aclk) container_of(_aclk, struct axxia_divclk, aclk)
89 struct axxia_clk *aclk = to_axxia_clk(hw); in axxia_divclk_recalc_rate() local
90 struct axxia_divclk *divclk = to_axxia_divclk(aclk); in axxia_divclk_recalc_rate()
93 regmap_read(aclk->regmap, divclk->reg, &ctrl); in axxia_divclk_recalc_rate()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Dz0194a.h15 u8 aclk = 0; in sharp_z0194a_set_symbol_rate() local
19 aclk = 0xb7; bclk = 0x47; } in sharp_z0194a_set_symbol_rate()
21 aclk = 0xb7; bclk = 0x4b; } in sharp_z0194a_set_symbol_rate()
23 aclk = 0xb7; bclk = 0x4f; } in sharp_z0194a_set_symbol_rate()
25 aclk = 0xb7; bclk = 0x53; } in sharp_z0194a_set_symbol_rate()
27 aclk = 0xb6; bclk = 0x53; } in sharp_z0194a_set_symbol_rate()
29 aclk = 0xb4; bclk = 0x51; } in sharp_z0194a_set_symbol_rate()
31 stv0299_writereg(fe, 0x13, aclk); in sharp_z0194a_set_symbol_rate()
H A Dbsbe1.h36 u8 aclk = 0; in alps_bsbe1_set_symbol_rate() local
39 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in alps_bsbe1_set_symbol_rate()
40 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in alps_bsbe1_set_symbol_rate()
41 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in alps_bsbe1_set_symbol_rate()
42 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
43 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
44 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in alps_bsbe1_set_symbol_rate()
46 stv0299_writereg(fe, 0x13, aclk); in alps_bsbe1_set_symbol_rate()
H A Dbsru6.h55 u8 aclk = 0; in alps_bsru6_set_symbol_rate() local
59 aclk = 0xb7; in alps_bsru6_set_symbol_rate()
62 aclk = 0xb7; in alps_bsru6_set_symbol_rate()
65 aclk = 0xb7; in alps_bsru6_set_symbol_rate()
68 aclk = 0xb7; in alps_bsru6_set_symbol_rate()
71 aclk = 0xb6; in alps_bsru6_set_symbol_rate()
74 aclk = 0xb4; in alps_bsru6_set_symbol_rate()
78 stv0299_writereg(fe, 0x13, aclk); in alps_bsru6_set_symbol_rate()
/openbmc/linux/drivers/memory/
H A Dpl353-smc.c25 struct clk *aclk; member
33 clk_disable(pl353_smc->aclk); in pl353_smc_suspend()
43 ret = clk_enable(pl353_smc->aclk); in pl353_smc_resume()
52 clk_disable(pl353_smc->aclk); in pl353_smc_resume()
84 pl353_smc->aclk = devm_clk_get(&adev->dev, "apb_pclk"); in pl353_smc_probe()
85 if (IS_ERR(pl353_smc->aclk)) { in pl353_smc_probe()
87 return PTR_ERR(pl353_smc->aclk); in pl353_smc_probe()
96 err = clk_prepare_enable(pl353_smc->aclk); in pl353_smc_probe()
133 clk_disable_unprepare(pl353_smc->aclk); in pl353_smc_probe()
143 clk_disable_unprepare(pl353_smc->aclk); in pl353_smc_remove()
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_dev.c97 return sysfs_emit(buf, "%lu\n", clk_get_rate(mdev->aclk)); in aclk_hz_show()
210 mdev->aclk = devm_clk_get(dev, "aclk"); in komeda_dev_create()
211 if (IS_ERR(mdev->aclk)) { in komeda_dev_create()
213 err = PTR_ERR(mdev->aclk); in komeda_dev_create()
214 mdev->aclk = NULL; in komeda_dev_create()
218 clk_prepare_enable(mdev->aclk); in komeda_dev_create()
258 clk_disable_unprepare(mdev->aclk); in komeda_dev_create()
275 clk_disable_unprepare(mdev->aclk); in komeda_dev_create()
293 if (mdev->aclk) in komeda_dev_destroy()
294 clk_prepare_enable(mdev->aclk); in komeda_dev_destroy()
[all …]
H A Dkomeda_crtc.c51 u64 pxlclk, aclk; in komeda_crtc_update_clock_ratio() local
59 aclk = komeda_crtc_get_aclk(kcrtc_st); in komeda_crtc_update_clock_ratio()
61 kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); in komeda_crtc_update_clock_ratio()
143 err = clk_set_rate(mdev->aclk, komeda_crtc_get_aclk(kcrtc_st)); in komeda_crtc_prepare()
146 err = clk_prepare_enable(mdev->aclk); in komeda_crtc_prepare()
192 clk_disable_unprepare(mdev->aclk); in komeda_crtc_unprepare()
426 return clk_round_rate(mdev->aclk, min_aclk); in komeda_crtc_get_aclk()
451 if (clk_round_rate(mdev->aclk, min_aclk) < min_aclk) { in komeda_crtc_mode_valid()
/openbmc/linux/drivers/media/pci/mantis/
H A Dmantis_vp1033.c109 u8 aclk = 0; in lgtdqcs001f_set_symbol_rate() local
113 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate()
116 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate()
119 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate()
122 aclk = 0xb7; in lgtdqcs001f_set_symbol_rate()
125 aclk = 0xb6; in lgtdqcs001f_set_symbol_rate()
128 aclk = 0xb4; in lgtdqcs001f_set_symbol_rate()
131 stv0299_writereg(fe, 0x13, aclk); in lgtdqcs001f_set_symbol_rate()
/openbmc/u-boot/drivers/adc/
H A Dstm32-adc-core.c76 if (clk_valid(&common->aclk)) { in stm32h7_adc_clk_sel()
81 rate = clk_get_rate(&common->aclk); in stm32h7_adc_clk_sel()
162 ret = clk_get_by_name(dev, "adc", &common->aclk); in stm32_adc_core_probe()
164 ret = clk_enable(&common->aclk); in stm32_adc_core_probe()
191 if (clk_valid(&common->aclk)) in stm32_adc_core_probe()
192 clk_disable(&common->aclk); in stm32_adc_core_probe()
H A Dstm32-adc-core.h45 struct clk aclk; member
/openbmc/linux/drivers/iio/adc/
H A Dstm32-dfsdm-core.c100 struct clk *aclk; /* audio clock */ member
114 if (ret || !priv->aclk) in stm32_dfsdm_clk_prepare_enable()
117 ret = clk_prepare_enable(priv->aclk); in stm32_dfsdm_clk_prepare_enable()
128 clk_disable_unprepare(priv->aclk); in stm32_dfsdm_clk_disable_unprepare()
151 clk_src = priv->aclk ? 1 : 0; in stm32_dfsdm_start_dfsdm()
252 priv->aclk = devm_clk_get(&pdev->dev, "audio"); in stm32_dfsdm_parse_of()
253 if (IS_ERR(priv->aclk)) in stm32_dfsdm_parse_of()
254 priv->aclk = NULL; in stm32_dfsdm_parse_of()
256 if (priv->aclk) in stm32_dfsdm_parse_of()
257 clk_freq = clk_get_rate(priv->aclk); in stm32_dfsdm_parse_of()
H A Dstm32-adc-core.c107 struct clk *aclk; member
144 if (!priv->aclk) { in stm32f4_adc_clk_sel()
149 rate = clk_get_rate(priv->aclk); in stm32f4_adc_clk_sel()
226 if (priv->aclk) { in stm32h7_adc_clk_sel()
231 rate = clk_get_rate(priv->aclk); in stm32h7_adc_clk_sel()
238 duty = clk_get_scaled_duty_cycle(priv->aclk, 100); in stm32h7_adc_clk_sel()
564 ret = clk_prepare_enable(priv->aclk); in stm32_adc_core_hw_start()
593 clk_disable_unprepare(priv->aclk); in stm32_adc_core_hw_stop()
748 priv->aclk = devm_clk_get_optional(&pdev->dev, "adc"); in stm32_adc_probe()
749 if (IS_ERR(priv->aclk)) in stm32_adc_probe()
[all …]
/openbmc/linux/drivers/bus/
H A Dbt1-axi.c51 struct clk *aclk; member
153 clk_disable_unprepare(axi->aclk); in bt1_axi_disable_clk()
160 axi->aclk = devm_clk_get(axi->dev, "aclk"); in bt1_axi_request_clk()
161 if (IS_ERR(axi->aclk)) in bt1_axi_request_clk()
162 return dev_err_probe(axi->dev, PTR_ERR(axi->aclk), in bt1_axi_request_clk()
165 ret = clk_prepare_enable(axi->aclk); in bt1_axi_request_clk()
/openbmc/linux/Documentation/devicetree/bindings/soc/xilinx/
H A Dxlnx,vcu.txt16 - clocks: phandle for aclk and pll_ref clocksource
17 - clock-names: The identification string, "aclk", is always required for
25 clock-names = "pll_ref", "aclk";
/openbmc/linux/drivers/media/common/b2c2/
H A Dflexcop-fe-tuner.c201 u8 aclk = 0; in samsung_tbmu24112_set_symbol_rate() local
205 aclk = 0xb7; bclk = 0x47; in samsung_tbmu24112_set_symbol_rate()
207 aclk = 0xb7; bclk = 0x4b; in samsung_tbmu24112_set_symbol_rate()
209 aclk = 0xb7; bclk = 0x4f; in samsung_tbmu24112_set_symbol_rate()
211 aclk = 0xb7; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate()
213 aclk = 0xb6; bclk = 0x53; in samsung_tbmu24112_set_symbol_rate()
215 aclk = 0xb4; bclk = 0x51; in samsung_tbmu24112_set_symbol_rate()
218 stv0299_writereg(fe, 0x13, aclk); in samsung_tbmu24112_set_symbol_rate()
/openbmc/linux/drivers/clk/xilinx/
H A Dxlnx_vcu.c63 struct clk *aclk; member
656 xvcu->aclk = devm_clk_get(&pdev->dev, "aclk"); in xvcu_probe()
657 if (IS_ERR(xvcu->aclk)) { in xvcu_probe()
659 return PTR_ERR(xvcu->aclk); in xvcu_probe()
668 ret = clk_prepare_enable(xvcu->aclk); in xvcu_probe()
693 clk_disable_unprepare(xvcu->aclk); in xvcu_probe()
716 clk_disable_unprepare(xvcu->aclk); in xvcu_remove()
/openbmc/linux/drivers/phy/hisilicon/
H A Dphy-hi3670-pcie.c162 struct clk *aclk; member
485 ret = clk_set_rate(phy->aclk, AXI_CLK_FREQ); in hi3670_pcie_allclk_ctrl()
613 ret = clk_prepare_enable(phy->aclk); in kirin_pcie_clk_ctrl()
626 clk_disable_unprepare(phy->aclk); in kirin_pcie_clk_ctrl()
780 phy->aclk = devm_clk_get(dev, "aclk"); in hi3670_pcie_phy_get_resources()
781 if (IS_ERR(phy->aclk)) in hi3670_pcie_phy_get_resources()
782 return PTR_ERR(phy->aclk); in hi3670_pcie_phy_get_resources()
/openbmc/linux/arch/arm64/boot/dts/exynos/
H A Dexynos5433.dtsi665 clock-names = "pclk", "aclk";
1143 clock-names = "pclk", "aclk", "aclk_xiu",
1158 clock-names = "pclk", "aclk", "aclk_xiu",
1173 clock-names = "pclk", "aclk", "aclk_xiu",
1239 clock-names = "pclk", "aclk", "aclk_xiu";
1251 clock-names = "pclk", "aclk", "aclk_xiu";
1263 clock-names = "pclk", "aclk", "aclk_xiu", "sclk";
1276 clock-names = "pclk", "aclk", "aclk_xiu";
1289 clock-names = "aclk", "pclk";
1300 clock-names = "aclk", "pclk";
[all …]
/openbmc/u-boot/drivers/video/
H A Dmali_dp.c93 struct clk aclk; member
277 err = clk_get_by_name(dev, "aclk", &priv->aclk); in malidp_probe()
325 clk_enable(&priv->aclk); in malidp_probe()
373 clk_free(&priv->aclk); in malidp_probe()
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos7_drm_decon.c48 struct clk *aclk; member
709 ctx->aclk = devm_clk_get(dev, "aclk_decon0"); in decon_probe()
710 if (IS_ERR(ctx->aclk)) { in decon_probe()
712 ret = PTR_ERR(ctx->aclk); in decon_probe()
787 clk_disable_unprepare(ctx->aclk); in exynos7_decon_suspend()
805 ret = clk_prepare_enable(ctx->aclk); in exynos7_decon_resume()
831 clk_disable_unprepare(ctx->aclk); in exynos7_decon_resume()
/openbmc/linux/drivers/ata/
H A Dahci_dwc.c230 struct clk *aclk; in ahci_dwc_init_timer() local
243 aclk = ahci_platform_find_clk(hpriv, "aclk"); in ahci_dwc_init_timer()
244 if (!aclk) in ahci_dwc_init_timer()
250 rate = clk_get_rate(aclk) / 1000UL; in ahci_dwc_init_timer()
/openbmc/linux/sound/soc/xilinx/
H A Dxlnx_spdif.c48 u32 aclk; member
112 clk_div = DIV_ROUND_CLOSEST(ctx->aclk, MAX_CHANNELS * AES_SAMPLE_WIDTH * in xlnx_spdif_hw_params()
292 ret = of_property_read_u32(node, "xlnx,aud_clk_i", &ctx->aclk); in xlnx_spdif_probe()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-kirin.c134 struct clk *aclk; member
171 phy->aclk = devm_clk_get(dev, "pcie_aclk"); in hi3660_pcie_phy_get_clk()
172 if (IS_ERR(phy->aclk)) in hi3660_pcie_phy_get_clk()
173 return PTR_ERR(phy->aclk); in hi3660_pcie_phy_get_clk()
262 ret = clk_prepare_enable(phy->aclk); in hi3660_pcie_phy_clk_ctrl()
275 clk_disable_unprepare(phy->aclk); in hi3660_pcie_phy_clk_ctrl()
/openbmc/linux/drivers/media/platform/rockchip/rga/
H A Drga.c703 ret = clk_prepare_enable(rga->aclk); in rga_enable_clocks()
718 clk_disable_unprepare(rga->aclk); in rga_enable_clocks()
729 clk_disable_unprepare(rga->aclk); in rga_disable_clocks()
772 rga->aclk = devm_clk_get(rga->dev, "aclk"); in rga_parse_dt()
773 if (IS_ERR(rga->aclk)) { in rga_parse_dt()
775 return PTR_ERR(rga->aclk); in rga_parse_dt()
/openbmc/linux/drivers/media/usb/ttusb-budget/
H A Ddvb-ttusb-budget.c1200 u8 aclk = 0; in alps_stv0299_set_symbol_rate() local
1204 aclk = 0xb7; in alps_stv0299_set_symbol_rate()
1207 aclk = 0xb7; in alps_stv0299_set_symbol_rate()
1210 aclk = 0xb7; in alps_stv0299_set_symbol_rate()
1213 aclk = 0xb7; in alps_stv0299_set_symbol_rate()
1216 aclk = 0xb6; in alps_stv0299_set_symbol_rate()
1219 aclk = 0xb4; in alps_stv0299_set_symbol_rate()
1223 stv0299_writereg(fe, 0x13, aclk); in alps_stv0299_set_symbol_rate()

123