Lines Matching defs:armclk
40 static struct clk *armclk;
62 unsigned long hclk, fclk, armclk;
66 armclk = cfg->freq.armclk;
69 s3c_freq_dbg("%s: fclk is %lu, armclk %lu, max hclk %lu\n",
70 __func__, fclk, armclk, hclk_max);
72 if (armclk > fclk) {
73 printk(KERN_WARNING "%s: armclk > fclk\n", __func__);
74 armclk = fclk;
78 if (armclk < fclk && armclk < hclk_max)
79 hclk_max = armclk;
107 /* calculate a valid armclk */
109 if (armclk < hclk)
110 armclk = hclk;
112 /* if we're running armclk lower than fclk, this really means
114 * armclk is connected to hclk. */
115 if (armclk < fclk) {
117 armclk = hclk;
121 cfg->freq.armclk = armclk;
198 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk);
278 armclk = s3c_cpufreq_clk_get(NULL, "armclk");
280 if (IS_ERR(xtal) || IS_ERR(hclk) || IS_ERR(fclk) || IS_ERR(armclk)) {