Lines Matching refs:hclk
35 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()
113 armclk = hclk; in s3c2440_cpufreq_calcdivs()
194 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
232 ret = run_freq_for(cfg->info->max.hclk, in s3c2440_cpufreq_calctable()
245 .hclk = 133333333,
271 hclk = s3c_cpufreq_clk_get(NULL, "hclk"); in s3c2440_cpufreq_add()
275 if (IS_ERR(xtal) || IS_ERR(hclk) || IS_ERR(fclk) || IS_ERR(armclk)) { in s3c2440_cpufreq_add()