Lines Matching refs:hclk
47 static struct clk *hclk;
70 unsigned long hclk, fclk, armclk;
75 hclk_max = cfg->max.hclk;
77 s3c_freq_dbg("%s: fclk is %lu, armclk %lu, max hclk %lu\n",
93 hclk = (fclk / hdiv);
94 if (hclk <= hclk_max || within_khz(hclk, hclk_max))
98 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv);
103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1;
105 if ((hclk / pdiv) > cfg->max.pclk)
117 if (armclk < hclk)
118 armclk = hclk;
122 * armclk is connected to hclk. */
125 armclk = hclk;
195 /* Write the divisors first with hclk intentionally halved so that
197 * then make a short delay and remove the hclk halving if necessary.
206 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk);
244 ret = run_freq_for(cfg->info->max.hclk,
257 .hclk = 133333333,
283 hclk = s3c_cpufreq_clk_get(NULL, "hclk");
287 if (IS_ERR(xtal) || IS_ERR(hclk) || IS_ERR(fclk) || IS_ERR(armclk)) {