All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Zakharov <Vladislav.Zakharov@synopsys.com>
To: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.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: cpufreq: get cpufreq_frequency_table from clk driver
Date: Tue, 21 Feb 2017 11:13:35 +0000	[thread overview]
Message-ID: <1487675614.25108.30.camel@synopsys.com> (raw)

SGVsbG8sDQoNCkkgYW0gdHJ5aW5nIHRvIGltcGxlbWVudCBhIGNwdWZyZXEgZHJpdmVyIGZvciBB
UkNIUyBjcHUuDQoNCkFuZCBJIGZhY2VkIHdpdGggb25lIHF1ZXN0aW9uIEkgYW0gbm90IGFibGUg
dG8gYW5zd2VyIG15c2VsZi4gY3B1ZnJlcSBmcmFtZXdvcmsgYWxsb3dzIHVzIHVzaW5nIGNwdWZy
ZXEgZnJlcXVlbmN5IHRhYmxlcw0KdGhhdCBzdG9yZSBhdmFpbGFibGUgZm9yIGN1cnJlbnQgcG9s
aWN5IHJhbmdlIG9mIGZyZXF1ZW5jaWVzIHdpdGggYW55IGFkZGl0aW9uYWwgZGF0YS4gQXMgSSB1
bmRlcnN0YW5kIGZvciBleGFtcGxlIGl0DQpjYW4gYmUgY2xvY2sgY29uZmlndXJhdGlvbnMgZm9y
IHRoaXMgcGFydGljdWxhciBmcmVxdWVuY3kuDQoNCkFsc28gSSBoYXZlIGEgY2xrIGRyaXZlciB0
aGF0IG1hbmFnZXMgYWN0dWFsIGNwdSBmcmVxdWVuY3kuIEluIGZhY3QgaXQgdXNlcyB2ZXJ5IHNp
bWlsYXIgdGFibGVzIHRoYXQgY29udGFpbiBmcmVxdWVuY2llcw0KYW5kIGNvcnJlc3BvbmRpbmcg
dmFsdWVzIG9mIGNsb2NrIGNvbmZpZ3VyYXRpb25zIHJlZ2lzdGVycyB0aGF0IGFyZSB0byBiZSBz
ZXQgdXAgd2l0aCBjdXJyZW50IGZyZXF1ZW5jeS4NCg0KU28gdGhlIHF1ZXN0aW9uIGlzIGNhbiBJ
IGdldCBzdWNoIHRhYmxlcyBmcm9tIGNsayBkcml2ZXIgc29tZWhvdz8gSSB3b3VsZCBiZSB2ZXJ5
IGNvbnZlbmllbnQ6IHRoaXMgdGFibGVzIGRpZmZlcnMgZm9yDQpBUkNIUyBDUFUuIEUuZy4gb24g
ZGlmZmVyZW50IGJvYXJkcyBpdCBpcyBjbG9ja2VkIGJ5IGRpZmZlcmVudCBQTExzIGFuZCBvc2Np
bGxhdG9ycy4NCg0KRG8geW91IGtub3cgYW55IHdheSB0byBnZXQgdGhlIHRhYmxlcyBmcm9tIGNs
ayBkcml2ZXI/IEFueSBzdWdnZXN0aW9ucyBvciBjb21tZW50cyBtaWdodCBiZSB2ZXJ5IGhlbHBm
dWwuDQoNClRoYW5rcyENCg0KLS0gDQpCZXN0IHJlZ2FyZHMsDQpWbGFkIFpha2hhcm92IDx2emFr
aGFyQHN5bm9wc3lzLmNvbT4=

WARNING: multiple messages have this Message-ID (diff)
From: Vlad Zakharov <Vladislav.Zakharov@synopsys.com>
To: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.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: cpufreq: get cpufreq_frequency_table from clk driver
Date: Tue, 21 Feb 2017 11:13:35 +0000	[thread overview]
Message-ID: <1487675614.25108.30.camel@synopsys.com> (raw)

Hello,

I am trying to implement a cpufreq driver for ARCHS cpu.

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.

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.

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.

Do you know any way to get the tables from clk driver? Any suggestions or comments might be very helpful.

Thanks!

-- 
Best regards,
Vlad Zakharov <vzakhar@synopsys.com>

WARNING: multiple messages have this Message-ID (diff)
From: Vladislav.Zakharov@synopsys.com (Vlad Zakharov)
To: linux-snps-arc@lists.infradead.org
Subject: cpufreq: get cpufreq_frequency_table from clk driver
Date: Tue, 21 Feb 2017 11:13:35 +0000	[thread overview]
Message-ID: <1487675614.25108.30.camel@synopsys.com> (raw)

Hello,

I am trying to implement a cpufreq driver for ARCHS cpu.

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.

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.

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.

Do you know any way to get the tables from clk driver? Any suggestions or comments might be very helpful.

Thanks!

-- 
Best regards,
Vlad Zakharov <vzakhar at synopsys.com>

             reply	other threads:[~2017-02-21 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 11:13 Vlad Zakharov [this message]
2017-02-21 11:13 ` cpufreq: get cpufreq_frequency_table from clk driver Vlad Zakharov
2017-02-21 11:13 ` Vlad Zakharov
2017-02-23  4:54 ` Viresh Kumar
2017-02-23  4:54   ` Viresh Kumar

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=1487675614.25108.30.camel@synopsys.com \
    --to=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 \
    --cc=viresh.kumar@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.