Home
last modified time | relevance | path

Searched refs:hclk (Results 1 – 68 of 68) sorted by relevance

/linux-4.4.14/drivers/cpufreq/
Ds3c2412-cpufreq.c36 static struct clk *hclk; variable
44 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
49 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs()
61 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs()
77 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
83 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs()
86 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs()
91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
96 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
[all …]
Ds3c2440-cpufreq.c35 static struct clk *hclk; variable
58 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
63 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs()
81 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
82 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs()
86 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs()
91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
105 if (armclk < hclk) in s3c2440_cpufreq_calcdivs()
106 armclk = hclk; in s3c2440_cpufreq_calcdivs()
[all …]
Ds3c2410-cpufreq.c48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
53 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs()
60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
63 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs()
68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
88 .hclk = 100000000,
141 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
Ds3c2416-cpufreq.c30 struct clk *hclk; member
134 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs()
135 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs()
192 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs()
194 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
196 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
199 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs()
245 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target()
390 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init()
391 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init()
[all …]
Ds3c24xx-cpufreq.c65 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
68 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
75 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
77 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
86 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
90 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
106 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show()
188 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
211 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget()
224 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
[all …]
Dhighbank-cpufreq.c37 unsigned long action, void *hclk) in hb_cpufreq_clk_notify() argument
39 struct clk_notifier_data *clk_data = hclk; in hb_cpufreq_clk_notify()
Ds3c24xx-cpufreq-debugfs.c34 f->fclk, f->hclk, f->pclk, f->armclk); in show_max()
89 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show()
90 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
/linux-4.4.14/arch/arm/mach-s3c24xx/
Diotiming-s3c2410.c136 int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument
220 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_calc_bank() local
234 ret = calc_0124(bt->tacs, hclk, &res, S3C2410_BANKCON_Tacs_SHIFT); in s3c2410_calc_bank()
235 ret |= calc_0124(bt->tcos, hclk, &res, S3C2410_BANKCON_Tcos_SHIFT); in s3c2410_calc_bank()
236 ret |= calc_0124(bt->tcah, hclk, &res, S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_calc_bank()
237 ret |= calc_0124(bt->tcoh, hclk, &res, S3C2410_BANKCON_Tcoh_SHIFT); in s3c2410_calc_bank()
242 ret |= calc_tacp(bt->tacp, hclk, &res); in s3c2410_calc_bank()
243 ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res); in s3c2410_calc_bank()
299 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_iotiming_getbank() local
301 bt->tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_iotiming_getbank()
[all …]
Diotiming-s3c2412.c98 unsigned int hclk = cfg->freq.hclk_tns; in s3c2412_calc_bank() local
101 bt->smbidcyr = calc_timing(bt->idcy, hclk, &err); in s3c2412_calc_bank()
102 bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err); in s3c2412_calc_bank()
103 bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err); in s3c2412_calc_bank()
104 bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err); in s3c2412_calc_bank()
105 bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err); in s3c2412_calc_bank()
106 bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err); in s3c2412_calc_bank()
277 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2412_cpufreq_setrefresh()
Dmach-osiris-dvs.c49 return f->armclk == f->hclk; in is_dvs()
68 freqs->old.armclk, freqs->old.hclk, in osiris_dvs_notify()
69 freqs->new.armclk, freqs->new.hclk); in osiris_dvs_notify()
Dcpufreq-utils.c46 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2410_cpufreq_setrefresh()
/linux-4.4.14/arch/arm/mach-mv78xx0/
Dcommon.c49 int hclk; in get_hclk() local
56 hclk = 166666667; in get_hclk()
59 hclk = 200000000; in get_hclk()
62 hclk = 266666667; in get_hclk()
65 hclk = 333333333; in get_hclk()
68 hclk = 400000000; in get_hclk()
75 return hclk; in get_hclk()
78 static void get_pclk_l2clk(int hclk, int core_index, int *pclk, int *l2clk) in get_pclk_l2clk() argument
96 *pclk = ((u64)hclk * (2 + (cfg & 0xf))) >> 1; in get_pclk_l2clk()
393 int hclk; in mv78xx0_init() local
[all …]
/linux-4.4.14/arch/avr32/mach-at32ap/
Dpdc.c16 struct clk *pclk, *hclk; in pdc_probe() local
23 hclk = clk_get(&pdev->dev, "hclk"); in pdc_probe()
24 if (IS_ERR(hclk)) { in pdc_probe()
27 return PTR_ERR(hclk); in pdc_probe()
31 clk_enable(hclk); in pdc_probe()
Dat32ap700x.c611 DEV_CLK(hclk, dw_dmac0, hsb, 10);
716 DEV_CLK(hclk, pdc, hsb, 4);
1072 DEV_CLK(hclk, macb0, hsb, 8);
1081 DEV_CLK(hclk, macb1, hsb, 9);
1451 DEV_CLK(hclk, atmel_lcdfb0, hsb, 7);
/linux-4.4.14/drivers/soc/qcom/
Dqcom_gsbi.c119 struct clk *hclk; member
191 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe()
192 if (IS_ERR(gsbi->hclk)) in gsbi_probe()
193 return PTR_ERR(gsbi->hclk); in gsbi_probe()
195 clk_prepare_enable(gsbi->hclk); in gsbi_probe()
231 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
/linux-4.4.14/sound/soc/rockchip/
Drockchip_spdif.c39 struct clk *hclk; member
62 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_suspend()
78 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_runtime_resume()
305 spdif->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_spdif_probe()
306 if (IS_ERR(spdif->hclk)) { in rk_spdif_probe()
308 return PTR_ERR(spdif->hclk); in rk_spdif_probe()
310 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_probe()
383 clk_disable_unprepare(spdif->hclk); in rk_spdif_remove()
Drockchip_i2s.c29 struct clk *hclk; member
466 i2s->hclk = devm_clk_get(&pdev->dev, "i2s_hclk"); in rockchip_i2s_probe()
467 if (IS_ERR(i2s->hclk)) { in rockchip_i2s_probe()
469 return PTR_ERR(i2s->hclk); in rockchip_i2s_probe()
471 ret = clk_prepare_enable(i2s->hclk); in rockchip_i2s_probe()
556 clk_disable_unprepare(i2s->hclk); in rockchip_i2s_remove()
/linux-4.4.14/arch/arm/boot/dts/
Dste-nomadik-stn8815.dtsi208 hclk: hclk@0 { label
210 compatible = "st,nomadik-hclk-clock";
219 clocks = <&hclk>;
283 clocks = <&hclk>;
289 clocks = <&hclk>;
295 clocks = <&hclk>;
301 clocks = <&hclk>;
307 clocks = <&hclk>;
361 clocks = <&hclk>;
367 clocks = <&hclk>;
[all …]
Dat91sam9x5_macb1.dtsi50 clock-names = "hclk", "pclk";
Dsama5d3_emac.dtsi50 clock-names = "hclk", "pclk";
Dat91sam9x5_macb0.dtsi62 clock-names = "hclk", "pclk";
Dzynq-7000.dtsi202 clock-names = "pclk", "hclk", "tx_clk";
213 clock-names = "pclk", "hclk", "tx_clk";
Dat91sam9263.dtsi856 clock-names = "hclk", "pclk";
865 clock-names = "pclk", "hclk";
990 clock-names = "lcdc_clk", "hclk";
1017 clock-names = "ohci_clk", "hclk", "uhpck";
Dsama5d3_gmac.dtsi83 clock-names = "hclk", "pclk";
Dat91sam9261.dtsi79 clock-names = "ohci_clk", "hclk", "uhpck";
90 clock-names = "lcdc_clk", "hclk";
131 clock-names = "pclk", "hclk";
Dat91sam9260.dtsi853 clock-names = "hclk", "pclk";
862 clock-names = "pclk", "hclk";
1015 clock-names = "ohci_clk", "hclk", "uhpck";
Dsama5d2.dtsi118 clock-names = "pclk", "hclk";
245 clock-names = "ohci_clk", "hclk", "uhpck";
835 clock-names = "hclk", "pclk";
Dat91sam9g45.dtsi975 clock-names = "hclk", "pclk";
1169 clock-names = "pclk", "hclk";
1281 clock-names = "hclk", "lcdc_clk";
1309 clock-names = "ohci_clk", "hclk", "uhpck";
Dat91rm9200.dtsi906 clock-names = "pclk", "hclk";
946 clock-names = "ohci_clk", "hclk", "uhpck";
Dat91sam9rl.dtsi91 clock-names = "hclk", "lcdc_clk";
301 clock-names = "pclk", "hclk";
Dsama5d4.dtsi135 clock-names = "pclk", "hclk";
262 clock-names = "ohci_clk", "hclk", "uhpck";
973 clock-names = "hclk", "pclk";
1201 clock-names = "hclk", "pclk";
Dat91sam9n12.dtsi996 clock-names = "pclk", "hclk";
1028 clock-names = "ohci_clk", "hclk", "uhpck";
Drk3xxx.dtsi207 clock-names = "hclk", "macref";
Dat91sam9x5.dtsi1119 clock-names = "hclk", "pclk";
1231 clock-names = "ohci_clk", "hclk", "uhpck";
Drk3188.dtsi128 clock-names = "hclk", "mclk";
Ds5pv210.dtsi240 clock-names = "hclk", "xxti",
Dsama5d3.dtsi1334 clock-names = "pclk", "hclk";
1448 clock-names = "ohci_clk", "hclk", "uhpck";
Drk3288.dtsi757 clock-names = "hclk", "mclk";
/linux-4.4.14/drivers/clk/samsung/
Dclk-s5pv210-audss.c74 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local
92 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe()
93 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe()
95 return PTR_ERR(hclk); in s5pv210_audss_clk_probe()
146 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
/linux-4.4.14/drivers/spi/
Dspi-sun4i.c79 struct clk *hclk; member
318 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume()
336 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume()
347 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend()
398 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe()
399 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe()
401 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
Dspi-sun6i.c84 struct clk *hclk; member
308 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume()
334 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume()
346 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend()
397 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe()
398 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe()
400 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Datmel-usb.txt13 "hclk" for the host clock
25 clock-names = "ohci_clk", "hclk", "uhpck";
63 "hclk" for the AHB clock
74 clock-names = "pclk", "hclk";
90 "hclk" for the host clock
113 clock-names = "hclk", "pclk";
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dclk-s5pv210-audss.txt14 - hclk: AHB bus clock of the Audio Subsystem.
23 - clock-names: Aliases for the above clocks. They should be "hclk",
36 clock-names = "hclk", "xxti",
Dmvebu-core-clock.txt11 3 = hclk (DRAM control clock)
30 3 = hclk (SDRAM Controller Internal Clock)
Dst,nomadik.txt39 - compatible: must be "st,nomadik-hclk-clock"
/linux-4.4.14/drivers/usb/host/
Dohci-at91.c53 struct clk *hclk; member
79 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock()
92 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock()
195 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe()
196 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe()
198 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Drockchip-spdif.txt21 - "hclk": clock for SPDIF controller
36 clock-names = "hclk", "mclk";
/linux-4.4.14/drivers/net/can/m_can/
Dm_can.c284 struct clk *hclk; member
546 err = clk_prepare_enable(priv->hclk); in m_can_get_berr_counter()
552 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter()
559 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter()
974 err = clk_prepare_enable(priv->hclk); in m_can_open()
1011 clk_disable_unprepare(priv->hclk); in m_can_open()
1022 clk_disable_unprepare(priv->hclk); in m_can_stop()
1188 struct clk *hclk, *cclk; in m_can_plat_probe() local
1191 hclk = devm_clk_get(&pdev->dev, "hclk"); in m_can_plat_probe()
1193 if (IS_ERR(hclk) || IS_ERR(cclk)) { in m_can_plat_probe()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dmacb.txt18 Required elements: 'pclk', 'hclk'
30 clock-names = "pclk", "hclk", "tx_clk";
Demac_rockchip.txt18 - clock-names: Shall be "hclk" for the host clock needed to calculate and set
34 clock-names = "hclk", "macref";
/linux-4.4.14/Documentation/devicetree/bindings/mmc/
Dmtk-sd.txt13 - clock-names: "source", "hclk"
34 clock-names = "source", "hclk";
/linux-4.4.14/arch/arm64/boot/dts/xilinx/
Dzynqmp.dtsi145 clock-names = "pclk", "hclk", "tx_clk";
157 clock-names = "pclk", "hclk", "tx_clk";
169 clock-names = "pclk", "hclk", "tx_clk";
181 clock-names = "pclk", "hclk", "tx_clk";
/linux-4.4.14/arch/arm/plat-samsung/include/plat/
Dcpu-freq.h39 unsigned long hclk; member
/linux-4.4.14/Documentation/devicetree/bindings/net/can/
Dm_can.txt15 - clock-names : Should contain "hclk" and "cclk"
57 clock-names = "hclk", "cclk";
/linux-4.4.14/drivers/net/ethernet/cadence/
Dmacb.c2271 struct clk **hclk, struct clk **tx_clk) in macb_clk_init() argument
2282 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init()
2283 if (IS_ERR(*hclk)) { in macb_clk_init()
2284 err = PTR_ERR(*hclk); in macb_clk_init()
2299 err = clk_prepare_enable(*hclk); in macb_clk_init()
2314 clk_disable_unprepare(*hclk); in macb_clk_init()
2694 struct clk **hclk, struct clk **tx_clk) in at91ether_clk_init() argument
2698 *hclk = NULL; in at91ether_clk_init()
2821 struct clk *pclk, *hclk, *tx_clk; in macb_probe() local
2849 err = clk_init(pdev, &pclk, &hclk, &tx_clk); in macb_probe()
[all …]
Dmacb.h763 struct clk **hclk, struct clk **tx_clk);
807 struct clk *hclk; member
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c113 struct clk *hclk; member
651 ret = clk_enable(vop->hclk); in vop_enable()
704 clk_disable(vop->hclk); in vop_enable()
747 clk_disable(vop->hclk); in vop_disable()
1563 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial()
1564 if (IS_ERR(vop->hclk)) { in vop_initial()
1566 return PTR_ERR(vop->hclk); in vop_initial()
1586 ret = clk_prepare_enable(vop->hclk); in vop_initial()
1637 clk_disable(vop->hclk); in vop_initial()
1647 clk_disable_unprepare(vop->hclk); in vop_initial()
/linux-4.4.14/arch/arm64/boot/dts/mediatek/
Dmt8173.dtsi476 clock-names = "source", "hclk";
487 clock-names = "source", "hclk";
498 clock-names = "source", "hclk";
509 clock-names = "source", "hclk";
/linux-4.4.14/include/linux/mfd/
Dtmio.h116 unsigned int hclk; member
/linux-4.4.14/drivers/mmc/host/
Dtmio_mmc.c71 if (!pdata || !pdata->hclk) in tmio_mmc_probe()
Dtmio_mmc_pio.c1136 mmc->f_max = pdata->hclk; in tmio_mmc_host_probe()
/linux-4.4.14/drivers/usb/gadget/udc/
Datmel_usba_udc.c1751 ret = clk_prepare_enable(udc->hclk); in start_clock()
1766 clk_disable_unprepare(udc->hclk); in stop_clock()
2101 struct clk *pclk, *hclk; in usba_udc_probe() local
2124 hclk = devm_clk_get(&pdev->dev, "hclk"); in usba_udc_probe()
2125 if (IS_ERR(hclk)) in usba_udc_probe()
2126 return PTR_ERR(hclk); in usba_udc_probe()
2132 udc->hclk = hclk; in usba_udc_probe()
Datmel_usba_udc.h341 struct clk *hclk; member
/linux-4.4.14/drivers/mfd/
Dtc6387xb.c122 .hclk = 24000000,
Dt7l66xb.c145 .hclk = 24000000,
Dtc6393xb.c391 .hclk = 24000000,
Dasic3.c723 .hclk = 24576000,
/linux-4.4.14/arch/arc/boot/dts/
Dabilis_tb10x.dtsi117 clock-names = "hclk";