| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | s3c2412-cpufreq.c | 44 static struct clk *hclk; variable 52 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local 57 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs() 69 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs() 85 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs() 91 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs() 94 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs() 99 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs() 101 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs() 104 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs() [all …]
|
| H A D | s3c2440-cpufreq.c | 47 static struct clk *hclk; variable 70 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local 75 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs() 93 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs() 94 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs() 98 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs() 103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs() 105 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs() 117 if (armclk < hclk) in s3c2440_cpufreq_calcdivs() 118 armclk = hclk; in s3c2440_cpufreq_calcdivs() [all …]
|
| H A D | s3c2410-cpufreq.c | 45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local 50 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 57 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 58 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs() 60 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs() 85 .hclk = 100000000, 138 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
|
| H A D | s3c2416-cpufreq.c | 27 struct clk *hclk; member 131 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs() 132 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs() 189 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs() 191 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 193 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs() 196 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs() 242 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target() 397 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init() 398 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init() [all …]
|
| H A D | s3c24xx-cpufreq.c | 60 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local 63 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur() 70 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur() 72 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur() 81 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc() 85 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc() 101 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show() 183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() 206 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget() 219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/ |
| H A D | iotiming-s3c2410.c | 132 static int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument 216 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_calc_bank() local 230 ret = calc_0124(bt->tacs, hclk, &res, S3C2410_BANKCON_Tacs_SHIFT); in s3c2410_calc_bank() 231 ret |= calc_0124(bt->tcos, hclk, &res, S3C2410_BANKCON_Tcos_SHIFT); in s3c2410_calc_bank() 232 ret |= calc_0124(bt->tcah, hclk, &res, S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_calc_bank() 233 ret |= calc_0124(bt->tcoh, hclk, &res, S3C2410_BANKCON_Tcoh_SHIFT); in s3c2410_calc_bank() 238 ret |= calc_tacp(bt->tacp, hclk, &res); in s3c2410_calc_bank() 239 ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res); in s3c2410_calc_bank() 295 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_iotiming_getbank() local 297 bt->tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_iotiming_getbank() [all …]
|
| H A D | iotiming-s3c2412.c | 94 unsigned int hclk = cfg->freq.hclk_tns; in s3c2412_calc_bank() local 97 bt->smbidcyr = calc_timing(bt->idcy, hclk, &err); in s3c2412_calc_bank() 98 bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err); in s3c2412_calc_bank() 99 bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err); in s3c2412_calc_bank() 100 bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err); in s3c2412_calc_bank() 101 bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err); in s3c2412_calc_bank() 102 bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err); in s3c2412_calc_bank() 271 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2412_cpufreq_setrefresh()
|
| H A D | mach-osiris-dvs.c | 44 return f->armclk == f->hclk; in is_dvs() 63 freqs->old.armclk, freqs->old.hclk, in osiris_dvs_notify() 64 freqs->new.armclk, freqs->new.hclk); in osiris_dvs_notify()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-mv78xx0/ |
| H A D | common.c | 50 int hclk; in get_hclk() local 57 hclk = 166666667; in get_hclk() 60 hclk = 200000000; in get_hclk() 63 hclk = 266666667; in get_hclk() 66 hclk = 333333333; in get_hclk() 69 hclk = 400000000; in get_hclk() 76 return hclk; in get_hclk() 79 static void get_pclk_l2clk(int hclk, int core_index, int *pclk, int *l2clk) in get_pclk_l2clk() argument 97 *pclk = ((u64)hclk * (2 + (cfg & 0xf))) >> 1; in get_pclk_l2clk() 388 int hclk; in mv78xx0_init() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | pwm-rockchip-i2s.c | 85 struct clk *hclk; member 114 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_get_state() 126 clk_disable(pc->hclk); in rockchip_i2s_pwm_get_state() 140 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_config() 180 clk_disable(pc->hclk); in rockchip_i2s_pwm_config() 196 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_enable() 263 clk_disable(pc->hclk); in rockchip_i2s_pwm_enable() 271 clk_disable(pc->hclk); in rockchip_i2s_pwm_enable() 361 ret = clk_enable(pc->hclk); in rockchip_i2s_pwm_hw_params() 381 clk_disable(pc->hclk); in rockchip_i2s_pwm_hw_params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A D | qcom_gsbi.c | 111 struct clk *hclk; member 183 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe() 184 if (IS_ERR(gsbi->hclk)) in gsbi_probe() 185 return PTR_ERR(gsbi->hclk); in gsbi_probe() 187 clk_prepare_enable(gsbi->hclk); in gsbi_probe() 218 clk_disable_unprepare(gsbi->hclk); in gsbi_probe() 226 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/cadence/ |
| H A D | macb_pci.c | 69 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe() 71 if (IS_ERR(plat_data.hclk)) { in macb_probe() 72 err = PTR_ERR(plat_data.hclk); in macb_probe() 100 clk_unregister(plat_data.hclk); in macb_probe() 115 clk_unregister(plat_data->hclk); in macb_remove()
|
| /OK3568_Linux_fs/u-boot/drivers/ddr/marvell/axp/ |
| H A D | ddr3_init.c | 1144 u32 tmp, hclk; in get_target_freq() local 1148 hclk = 84; in get_target_freq() 1161 hclk = 150; in get_target_freq() 1167 hclk = 165; in get_target_freq() 1171 hclk = 180; in get_target_freq() 1178 hclk = 200; in get_target_freq() 1183 hclk = 222; in get_target_freq() 1189 hclk = 250; in get_target_freq() 1195 hclk = 267; in get_target_freq() 1201 hclk = 300; in get_target_freq() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/rockchip/ |
| H A D | rockchip_audio_pwm.c | 26 struct clk *hclk; member 157 clk_disable_unprepare(apwm->hclk); in rockchip_audio_pwm_runtime_suspend() 171 ret = clk_prepare_enable(apwm->hclk); in rockchip_audio_pwm_runtime_resume() 180 clk_disable_unprepare(apwm->hclk); in rockchip_audio_pwm_runtime_resume() 289 apwm->hclk = devm_clk_get(&pdev->dev, "hclk"); in rockchip_audio_pwm_probe() 290 if (IS_ERR(apwm->hclk)) in rockchip_audio_pwm_probe() 291 return PTR_ERR(apwm->hclk); in rockchip_audio_pwm_probe()
|
| H A D | rockchip_spdif.c | 56 struct clk *hclk; member 94 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_suspend() 110 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_runtime_resume() 122 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_resume() 369 spdif->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_spdif_probe() 370 if (IS_ERR(spdif->hclk)) in rk_spdif_probe() 371 return PTR_ERR(spdif->hclk); in rk_spdif_probe()
|
| H A D | rockchip_spdifrx.c | 25 struct clk *hclk; member 37 clk_disable_unprepare(spdifrx->hclk); in rk_spdifrx_runtime_suspend() 53 ret = clk_prepare_enable(spdifrx->hclk); in rk_spdifrx_runtime_resume() 287 spdifrx->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_spdifrx_probe() 288 if (IS_ERR(spdifrx->hclk)) in rk_spdifrx_probe() 289 return PTR_ERR(spdifrx->hclk); in rk_spdifrx_probe()
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | ste-nomadik-stn8815.dtsi | 227 hclk: hclk@0 { label 229 compatible = "st,nomadik-hclk-clock"; 238 clocks = <&hclk>; 302 clocks = <&hclk>; 308 clocks = <&hclk>; 314 clocks = <&hclk>; 320 clocks = <&hclk>; 326 clocks = <&hclk>; 380 clocks = <&hclk>; 386 clocks = <&hclk>; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/samsung/ |
| H A D | clk-s5pv210-audss.c | 71 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local 90 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe() 91 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe() 93 return PTR_ERR(hclk); in s5pv210_audss_clk_probe() 144 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A D | atmel-usb.txt | 13 "hclk" for the host clock 25 clock-names = "ohci_clk", "hclk", "uhpck"; 63 "hclk" for the AHB clock 74 clock-names = "pclk", "hclk"; 91 "hclk" for the host clock 116 clock-names = "hclk", "pclk";
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/ebc-dev/tcon/ |
| H A D | eink_tcon.c | 146 clk_prepare_enable(tcon->hclk); in tcon_enable() 173 clk_disable_unprepare(tcon->hclk); in tcon_disable() 236 tcon->hclk = devm_clk_get(dev, "hclk"); in eink_tcon_probe() 237 if (IS_ERR(tcon->hclk)) { in eink_tcon_probe() 238 ret = PTR_ERR(tcon->hclk); in eink_tcon_probe()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | tmio_mmc.c | 62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock() 131 if (!pdata || !pdata->hclk) in tmio_mmc_probe() 164 host->mmc->f_max = pdata->hclk; in tmio_mmc_probe() 165 host->mmc->f_min = pdata->hclk / 512; in tmio_mmc_probe()
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-sun4i.c | 80 struct clk *hclk; member 393 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume() 411 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume() 422 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend() 473 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe() 474 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe() 476 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
|
| H A D | spi-sun6i.c | 86 struct clk *hclk; member 386 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume() 412 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume() 424 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend() 478 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe() 479 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe() 481 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/video/ |
| H A D | rockchip_rga.txt | 14 - clocks: phandle to RGA sclk/hclk/aclk clocks 16 - clock-names: should be "aclk", "hclk" and "sclk" 32 clock-names = "aclk", "hclk", "sclk";
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | lpc32xx_nand_slc.c | 111 uint32_t hclk = get_hclk_clk_rate(); in lpc32xx_nand_init() local 126 TAC_W_WIDTH(hclk / CONFIG_LPC32XX_NAND_SLC_WWIDTH) | in lpc32xx_nand_init() 127 TAC_W_HOLD(hclk / CONFIG_LPC32XX_NAND_SLC_WHOLD) | in lpc32xx_nand_init() 128 TAC_W_SETUP(hclk / CONFIG_LPC32XX_NAND_SLC_WSETUP) | in lpc32xx_nand_init() 130 TAC_R_WIDTH(hclk / CONFIG_LPC32XX_NAND_SLC_RWIDTH) | in lpc32xx_nand_init() 131 TAC_R_HOLD(hclk / CONFIG_LPC32XX_NAND_SLC_RHOLD) | in lpc32xx_nand_init() 132 TAC_R_SETUP(hclk / CONFIG_LPC32XX_NAND_SLC_RSETUP), in lpc32xx_nand_init()
|