From: Viresh Kumar <viresh.kumar@linaro.org>
To: Vlad Zakharov <Vladislav.Zakharov@synopsys.com>
Cc: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mturquette@baylibre.com" <mturquette@baylibre.com>,
"sboyd@codeaurora.org" <sboyd@codeaurora.org>,
"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"linux-snps-arc@lists.infradead.org"
<linux-snps-arc@lists.infradead.org>
Subject: Re: cpufreq: get cpufreq_frequency_table from clk driver
Date: Thu, 23 Feb 2017 10:24:45 +0530 [thread overview]
Message-ID: <20170223045445.GA21911@vireshk-i7> (raw)
In-Reply-To: <1487675614.25108.30.camel@synopsys.com>
On 21-02-17, 11:13, Vlad Zakharov wrote:
> Hello,
>
> I am trying to implement a cpufreq driver for ARCHS cpu.
You mean ARC architecture here ?
> And I faced with one question I am not able to answer myself. cpufreq framework allows us using cpufreq frequency tables
> that store available for current policy range of frequencies with any additional data. As I understand for example it
> can be clock configurations for this particular frequency.
Yes, it can be any platform specific data. Yes, but it is better
handled by the clk driver in your case and cpufreq driver just needs
to call clk_set_rate().
> Also I have a clk driver that manages actual cpu frequency. In fact it uses very similar tables that contain frequencies
> and corresponding values of clock configurations registers that are to be set up with current frequency.
Good.
> So the question is can I get such tables from clk driver somehow? I would be very convenient: this tables differs for
> ARCHS CPU. E.g. on different boards it is clocked by different PLLs and oscillators.
Not that I am aware of. Just make copies for every board or if you can
use device tree, get it using OPP tables.
--
viresh
prev parent reply other threads:[~2017-02-23 4:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 11:13 cpufreq: get cpufreq_frequency_table from clk driver Vlad Zakharov
2017-02-23 4:54 ` Viresh Kumar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170223045445.GA21911@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=Vladislav.Zakharov@synopsys.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=rjw@rjwysocki.net \
--cc=sboyd@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox