Lines Matching refs:hclk
39 static struct clk *hclk; variable
62 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
67 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs()
85 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
86 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs()
90 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs()
95 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
97 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
109 if (armclk < hclk) in s3c2440_cpufreq_calcdivs()
110 armclk = hclk; in s3c2440_cpufreq_calcdivs()
117 armclk = hclk; in s3c2440_cpufreq_calcdivs()
198 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
236 ret = run_freq_for(cfg->info->max.hclk, in s3c2440_cpufreq_calctable()
249 .hclk = 133333333,
277 hclk = s3c_cpufreq_clk_get(NULL, "hclk"); in s3c2440_cpufreq_add()
281 if (IS_ERR(xtal) || IS_ERR(hclk) || IS_ERR(fclk) || IS_ERR(armclk)) { in s3c2440_cpufreq_add()