/openbmc/linux/drivers/clk/ |
H A D | clk-axm5516.c | 38 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 D | z0194a.h | 15 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 D | bsbe1.h | 36 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 D | bsru6.h | 55 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 D | pl353-smc.c | 25 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 D | komeda_dev.c | 97 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 D | komeda_crtc.c | 51 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 D | mantis_vp1033.c | 109 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 D | stm32-adc-core.c | 76 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 D | stm32-adc-core.h | 45 struct clk aclk; member
|
/openbmc/linux/drivers/iio/adc/ |
H A D | stm32-dfsdm-core.c | 100 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 D | stm32-adc-core.c | 107 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 D | bt1-axi.c | 51 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 D | xlnx,vcu.txt | 16 - 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 D | flexcop-fe-tuner.c | 201 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 D | xlnx_vcu.c | 63 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 D | phy-hi3670-pcie.c | 162 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 D | exynos5433.dtsi | 665 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 D | mali_dp.c | 93 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 D | exynos7_drm_decon.c | 48 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 D | ahci_dwc.c | 230 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 D | xlnx_spdif.c | 48 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 D | pcie-kirin.c | 134 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 D | rga.c | 703 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 D | dvb-ttusb-budget.c | 1200 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()
|