Lines Matching defs:armclk
39 static struct clk *armclk;
46 unsigned long hclk, fclk, armclk, armdiv_clk;
50 armclk = cfg->freq.armclk;
53 /* We can't run hclk above armclk as at the best we have to
54 * have armclk and hclk in dvs mode. */
56 if (hclk_max > armclk)
57 hclk_max = armclk;
59 s3c_freq_dbg("%s: fclk=%lu, armclk=%lu, hclk_max=%lu\n",
60 __func__, fclk, armclk, hclk_max);
62 __func__, cfg->freq.fclk, cfg->freq.armclk,
65 armdiv = fclk / armclk;
81 /* set dvs depending on whether we reached armclk or not. */
82 cfg->divs.dvs = dvs = armclk < armdiv_clk;
84 /* update the actual armclk we achieved. */
85 cfg->freq.armclk = dvs ? hclk : armdiv_clk;
87 s3c_freq_dbg("%s: armclk %lu, hclk %lu, armdiv %d, hdiv %d, dvs %d\n",
88 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs);
142 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk);
223 armclk = clk_get(NULL, "armclk");
224 if (IS_ERR(armclk)) {
238 clk_put(armclk);