Lines Matching full: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()
77 s3c_freq_dbg("%s: fclk is %lu, armclk %lu, max hclk %lu\n", in s3c2440_cpufreq_calcdivs()
85 /* if we are in DVS, we need HCLK to be <= ARMCLK */ 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()
122 * armclk is connected to hclk. */ in s3c2440_cpufreq_calcdivs()
125 armclk = hclk; in s3c2440_cpufreq_calcdivs()
195 /* Write the divisors first with hclk intentionally halved so that in s3c2440_cpufreq_setdivs()
197 * then make a short delay and remove the hclk halving if necessary. in s3c2440_cpufreq_setdivs()
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()