Lines Matching full:hclk
44 static struct clk *hclk; variable
52 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
57 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs()
59 /* We can't run hclk above armclk as at the best we have to in s3c2412_cpufreq_calcdivs()
60 * have armclk and hclk in dvs mode. */ in s3c2412_cpufreq_calcdivs()
69 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs()
85 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
91 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs()
93 s3c_freq_dbg("%s: armclk %lu, hclk %lu, armdiv %d, hdiv %d, dvs %d\n", in s3c2412_cpufreq_calcdivs()
94 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs()
99 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
101 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
104 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
148 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2412_cpufreq_setdivs()
158 .hclk = 100000000,
185 hclk = clk_get(NULL, "hclk"); in s3c2412_cpufreq_add()
186 if (IS_ERR(hclk)) { in s3c2412_cpufreq_add()
187 pr_err("cannot find hclk clock\n"); in s3c2412_cpufreq_add()
202 s3c2412_cpufreq_info.max.hclk = 133000000; in s3c2412_cpufreq_add()
225 clk_put(hclk); in s3c2412_cpufreq_add()