Lines Matching refs:hclk
36 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()
140 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2412_cpufreq_setdivs()
149 board->refresh, cfg->freq.hclk); in s3c2412_cpufreq_setrefresh()
157 refresh *= (cfg->freq.hclk / 100); in s3c2412_cpufreq_setrefresh()
171 .hclk = 100000000,
198 hclk = clk_get(NULL, "hclk"); in s3c2412_cpufreq_add()
199 if (IS_ERR(hclk)) { in s3c2412_cpufreq_add()
216 s3c2412_cpufreq_info.max.hclk = 133000000; in s3c2412_cpufreq_add()
239 clk_put(hclk); in s3c2412_cpufreq_add()