From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, cpufreq@vger.kernel.org,
jc.lee@samsung.com
Subject: Re: [PATCH] [CPUFREQ] EXYNOS5250: Add support max 1.7GHz for EXYNOS5250
Date: Tue, 17 Jul 2012 20:33:38 +0200 [thread overview]
Message-ID: <201207172033.38308.rjw@sisk.pl> (raw)
In-Reply-To: <144501cd63b0$a91e94c0$fb5bbe40$%kim@samsung.com>
On Tuesday, July 17, 2012, Kukjin Kim wrote:
> Kukjin Kim wrote:
> >
> > From: Jaecheol Lee <jc.lee@samsung.com>
> >
> > This patch adds support 1.7GHz max frequency for EXYNOS5250
> >
> > Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
> > Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> > ---
> > drivers/cpufreq/exynos5250-cpufreq.c | 55
> +++++++++++++++---------------
> > ----
> > 1 files changed, 24 insertions(+), 31 deletions(-)
> >
> > diff --git a/drivers/cpufreq/exynos5250-cpufreq.c
> > b/drivers/cpufreq/exynos5250-cpufreq.c
> > index a883316..e64c253 100644
> > --- a/drivers/cpufreq/exynos5250-cpufreq.c
> > +++ b/drivers/cpufreq/exynos5250-cpufreq.c
> > @@ -65,20 +65,20 @@ static unsigned int
> > clkdiv_cpu0_5250[CPUFREQ_LEVEL_END][8] = {
> > * Clock divider value for following
> > * { ARM, CPUD, ACP, PERIPH, ATB, PCLK_DBG, APLL, ARM2 }
> > */
> > - { 0, 3, 7, 7, 6, 1, 3, 0 }, /* 1700 MHz - N/A */
> > - { 0, 3, 7, 7, 6, 1, 3, 0 }, /* 1600 MHz - N/A */
> > - { 0, 3, 7, 7, 5, 1, 3, 0 }, /* 1500 MHz - N/A */
> > - { 0, 3, 7, 7, 6, 1, 3, 0 }, /* 1400 MHz */
> > - { 0, 3, 7, 7, 6, 1, 3, 0 }, /* 1300 MHz */
> > - { 0, 3, 7, 7, 5, 1, 3, 0 }, /* 1200 MHz */
> > - { 0, 2, 7, 7, 5, 1, 2, 0 }, /* 1100 MHz */
> > - { 0, 2, 7, 7, 4, 1, 2, 0 }, /* 1000 MHz */
> > - { 0, 2, 7, 7, 4, 1, 2, 0 }, /* 900 MHz */
> > - { 0, 2, 7, 7, 3, 1, 1, 0 }, /* 800 MHz */
> > + { 0, 3, 7, 7, 7, 3, 5, 0 }, /* 1700 MHz */
> > + { 0, 3, 7, 7, 7, 1, 4, 0 }, /* 1600 MHz */
> > + { 0, 2, 7, 7, 7, 1, 4, 0 }, /* 1500 MHz */
> > + { 0, 2, 7, 7, 6, 1, 4, 0 }, /* 1400 MHz */
> > + { 0, 2, 7, 7, 6, 1, 3, 0 }, /* 1300 MHz */
> > + { 0, 2, 7, 7, 5, 1, 3, 0 }, /* 1200 MHz */
> > + { 0, 3, 7, 7, 5, 1, 3, 0 }, /* 1100 MHz */
> > + { 0, 1, 7, 7, 4, 1, 2, 0 }, /* 1000 MHz */
> > + { 0, 1, 7, 7, 4, 1, 2, 0 }, /* 900 MHz */
> > + { 0, 1, 7, 7, 4, 1, 2, 0 }, /* 800 MHz */
> > { 0, 1, 7, 7, 3, 1, 1, 0 }, /* 700 MHz */
> > - { 0, 1, 7, 7, 2, 1, 1, 0 }, /* 600 MHz */
> > + { 0, 1, 7, 7, 3, 1, 1, 0 }, /* 600 MHz */
> > { 0, 1, 7, 7, 2, 1, 1, 0 }, /* 500 MHz */
> > - { 0, 1, 7, 7, 1, 1, 1, 0 }, /* 400 MHz */
> > + { 0, 1, 7, 7, 2, 1, 1, 0 }, /* 400 MHz */
> > { 0, 1, 7, 7, 1, 1, 1, 0 }, /* 300 MHz */
> > { 0, 1, 7, 7, 1, 1, 1, 0 }, /* 200 MHz */
> > };
> > @@ -87,9 +87,9 @@ static unsigned int
> > clkdiv_cpu1_5250[CPUFREQ_LEVEL_END][2] = {
> > /* Clock divider value for following
> > * { COPY, HPM }
> > */
> > - { 0, 2 }, /* 1700 MHz - N/A */
> > - { 0, 2 }, /* 1600 MHz - N/A */
> > - { 0, 2 }, /* 1500 MHz - N/A */
> > + { 0, 2 }, /* 1700 MHz */
> > + { 0, 2 }, /* 1600 MHz */
> > + { 0, 2 }, /* 1500 MHz */
> > { 0, 2 }, /* 1400 MHz */
> > { 0, 2 }, /* 1300 MHz */
> > { 0, 2 }, /* 1200 MHz */
> > @@ -106,10 +106,10 @@ static unsigned int
> > clkdiv_cpu1_5250[CPUFREQ_LEVEL_END][2] = {
> > };
> >
> > static unsigned int exynos5_apll_pms_table[CPUFREQ_LEVEL_END] = {
> > - (0), /* 1700 MHz - N/A */
> > - (0), /* 1600 MHz - N/A */
> > - (0), /* 1500 MHz - N/A */
> > - (0), /* 1400 MHz */
> > + ((425 << 16) | (6 << 8) | 0), /* 1700 MHz */
> > + ((200 << 16) | (3 << 8) | 0), /* 1600 MHz */
> > + ((250 << 16) | (4 << 8) | 0), /* 1500 MHz */
> > + ((175 << 16) | (3 << 8) | 0), /* 1400 MHz */
> > ((325 << 16) | (6 << 8) | 0), /* 1300 MHz */
> > ((200 << 16) | (4 << 8) | 0), /* 1200 MHz */
> > ((275 << 16) | (6 << 8) | 0), /* 1100 MHz */
> > @@ -126,9 +126,10 @@ static unsigned int
> > exynos5_apll_pms_table[CPUFREQ_LEVEL_END] = {
> >
> > /* ASV group voltage table */
> > static const unsigned int asv_voltage_5250[CPUFREQ_LEVEL_END] = {
> > - 0, 0, 0, 0, 0, 0, 0, /* 1700 MHz ~ 1100 MHz Not supported */
> > - 1175000, 1125000, 1075000, 1050000, 1000000,
> > - 950000, 925000, 925000, 900000
> > + 1300000, 1250000, 1225000, 1200000, 1150000,
> > + 1125000, 1100000, 1075000, 1050000, 1025000,
> > + 1012500, 1000000, 975000, 950000, 937500,
> > + 925000
> > };
> >
> > static void set_clkdiv(unsigned int div_index)
> > @@ -248,15 +249,7 @@ static void __init set_volt_table(void)
> > {
> > unsigned int i;
> >
> > - exynos5250_freq_table[L0].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L1].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L2].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L3].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L4].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L5].frequency = CPUFREQ_ENTRY_INVALID;
> > - exynos5250_freq_table[L6].frequency = CPUFREQ_ENTRY_INVALID;
> > -
> > - max_support_idx = L7;
> > + max_support_idx = L0;
> >
> > for (i = 0 ; i < CPUFREQ_LEVEL_END ; i++)
> > exynos5250_volt_table[i] = asv_voltage_5250[i];
> > --
> > 1.7.1
>
> Hi Rafael,
>
> Any problems or comments on this? I couldn't find this in your tree...
No problems and I thought it would be merged through your platform tree.
Thanks,
Rafael
next prev parent reply other threads:[~2012-07-17 18:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 8:29 [PATCH] [CPUFREQ] EXYNOS5250: Add support max 1.7GHz for EXYNOS5250 Kukjin Kim
2012-07-17 0:11 ` Kukjin Kim
2012-07-17 18:33 ` Rafael J. Wysocki [this message]
2012-07-19 6:43 ` Kukjin Kim
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=201207172033.38308.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=cpufreq@vger.kernel.org \
--cc=jc.lee@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.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