• Home
  • Raw
  • Download

Lines Matching refs:ls1x_cpufreq

31 } ls1x_cpufreq;  variable
63 dev_dbg(ls1x_cpufreq.dev, "%u KHz --> %u KHz\n", old_freq, new_freq); in ls1x_cpufreq_target()
64 clk_set_parent(policy->clk, ls1x_cpufreq.osc_clk); in ls1x_cpufreq_target()
69 clk_set_rate(ls1x_cpufreq.mux_clk, new_freq * 1000); in ls1x_cpufreq_target()
70 clk_set_parent(policy->clk, ls1x_cpufreq.mux_clk); in ls1x_cpufreq_target()
81 pll_freq = clk_get_rate(ls1x_cpufreq.pll_clk) / 1000; in ls1x_cpufreq_init()
86 dev_err(ls1x_cpufreq.dev, in ls1x_cpufreq_init()
94 if ((freq < ls1x_cpufreq.min_freq) || in ls1x_cpufreq_init()
95 (freq > ls1x_cpufreq.max_freq)) in ls1x_cpufreq_init()
99 dev_dbg(ls1x_cpufreq.dev, in ls1x_cpufreq_init()
105 policy->clk = ls1x_cpufreq.clk; in ls1x_cpufreq_init()
148 ls1x_cpufreq.dev = &pdev->dev; in ls1x_cpufreq_probe()
152 dev_err(ls1x_cpufreq.dev, "unable to get %s clock\n", in ls1x_cpufreq_probe()
157 ls1x_cpufreq.clk = clk; in ls1x_cpufreq_probe()
161 dev_err(ls1x_cpufreq.dev, "unable to get parent of %s clock\n", in ls1x_cpufreq_probe()
162 __clk_get_name(ls1x_cpufreq.clk)); in ls1x_cpufreq_probe()
166 ls1x_cpufreq.mux_clk = clk; in ls1x_cpufreq_probe()
170 dev_err(ls1x_cpufreq.dev, "unable to get parent of %s clock\n", in ls1x_cpufreq_probe()
171 __clk_get_name(ls1x_cpufreq.mux_clk)); in ls1x_cpufreq_probe()
175 ls1x_cpufreq.pll_clk = clk; in ls1x_cpufreq_probe()
179 dev_err(ls1x_cpufreq.dev, "unable to get %s clock\n", in ls1x_cpufreq_probe()
184 ls1x_cpufreq.osc_clk = clk; in ls1x_cpufreq_probe()
186 ls1x_cpufreq.max_freq = pdata->max_freq; in ls1x_cpufreq_probe()
187 ls1x_cpufreq.min_freq = pdata->min_freq; in ls1x_cpufreq_probe()
191 dev_err(ls1x_cpufreq.dev, in ls1x_cpufreq_probe()
202 dev_err(ls1x_cpufreq.dev, "failed to register cpufreq notifier: %d\n", in ls1x_cpufreq_probe()