Lines Matching refs:hclk
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()
125 armclk = hclk; in s3c2440_cpufreq_calcdivs()
206 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
244 ret = run_freq_for(cfg->info->max.hclk, in s3c2440_cpufreq_calctable()
257 .hclk = 133333333,
283 hclk = s3c_cpufreq_clk_get(NULL, "hclk"); in s3c2440_cpufreq_add()
287 if (IS_ERR(xtal) || IS_ERR(hclk) || IS_ERR(fclk) || IS_ERR(armclk)) { in s3c2440_cpufreq_add()