From: Tomasz Figa <tomasz.figa@gmail.com>
To: Vikas Sajjan <vikas.sajjan@linaro.org>
Cc: mturquette@linaro.org, linux-samsung-soc@vger.kernel.org,
kgene.kim@samsung.com, t.figa@samsung.com, dianders@chromium.org,
patches@linaro.org, linaro-kernel@lists.linaro.org
Subject: Re: [PATCH 1/2] clk: samsung: Add GPLL freq table for exynos5250 SoC
Date: Wed, 28 Aug 2013 10:06:49 +0200 [thread overview]
Message-ID: <6793396.xvnsuP0Ggu@flatron> (raw)
In-Reply-To: <1376301734-21847-2-git-send-email-vikas.sajjan@linaro.org>
Hi Vikas,
On Monday 12 of August 2013 15:32:13 Vikas Sajjan wrote:
> Adds GPLL freq table for exynos5250 SoC.
>
> Signed-off-by: Vikas Sajjan <vikas.sajjan@linaro.org>
> ---
> drivers/clk/samsung/clk-exynos5250.c | 19 ++++++++++++++++++-
> 1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/samsung/clk-exynos5250.c
> b/drivers/clk/samsung/clk-exynos5250.c index a9916a4..c400e82 100644
> --- a/drivers/clk/samsung/clk-exynos5250.c
> +++ b/drivers/clk/samsung/clk-exynos5250.c
> @@ -494,6 +494,21 @@ static struct samsung_gate_clock
> exynos5250_gate_clks[] __initdata = { GATE(g2d, "g2d", "aclk200",
> GATE_IP_ACP, 3, 0, 0),
> };
>
> +static struct samsung_pll_rate_table gpll_24mhz_tbl[] __initdata = {
> + /* sorted in descending order */
> + /* PLL_35XX_RATE(rate, m, p, s) */
> + PLL_35XX_RATE(1400000000, 175, 3, 0), /* for 466MHz */
> + PLL_35XX_RATE(800000000, 100, 3, 0), /* for 400MHz, 200MHz */
> + PLL_35XX_RATE(667000000, 389, 7, 1), /* for 333MHz, 222MHz,
166MHz */
Frequency generated by this entry is not exactly 667 MHz, but rather
666857142 Hz. This must be reflected by the rate field or PLL rate setting
won't work correctly otherwise.
> + PLL_35XX_RATE(600000000, 200, 4, 1), /* for 300MHz, 200MHz,
150MHz
> */ + PLL_35XX_RATE(533000000, 533, 12, 1), /* for 533MHz, 266MHz,
> 133MHz */ + PLL_35XX_RATE(450000000, 450, 12, 1), /* for 450Hz */
> + PLL_35XX_RATE(400000000, 100, 3, 1),
> + PLL_35XX_RATE(333000000, 222, 4, 2),
> + PLL_35XX_RATE(200000000, 100, 3, 2),
> + { },
> +};
> +
> static struct samsung_pll_rate_table vpll_24mhz_tbl[] __initdata = {
> /* sorted in descending order */
> /* PLL_36XX_RATE(rate, m, p, s, k) */
> @@ -565,8 +580,10 @@ static void __init exynos5250_clk_init(struct
> device_node *np)
>
> fin_pll_rate = _get_rate("fin_pll");
>
> - if (fin_pll_rate == 24 * MHZ)
> + if (fin_pll_rate == 24 * MHZ) {
> exynos5250_plls[epll].rate_table = epll_24mhz_tbl;
> + exynos5250_plls[gpll].rate_table = gpll_24mhz_tbl;
> + }
Also you could rebase this series on my patches[1] cleaning several things
up, to simplify this table setting code a bit.
[1] - http://www.spinics.net/lists/arm-kernel/msg269848.html
Best regards,
Tomasz
next prev parent reply other threads:[~2013-08-28 8:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-12 10:02 [PATCH 0/2] Add GPLL, APLL, KPLL, EPLL and VPLL freq table for exynos5420 and exynos5250 Vikas Sajjan
2013-08-12 10:02 ` [PATCH 1/2] clk: samsung: Add GPLL freq table for exynos5250 SoC Vikas Sajjan
2013-08-28 8:06 ` Tomasz Figa [this message]
2013-08-12 10:02 ` [PATCH 2/2] clk: samsung: Add APLL, KPLL, EPLL and VPLL freq table for exynos5420 SoC Vikas Sajjan
2013-08-28 8:18 ` Tomasz Figa
2013-08-14 5:06 ` [PATCH 0/2] Add GPLL, APLL, KPLL, EPLL and VPLL freq table for exynos5420 and exynos5250 Vikas Sajjan
2013-08-14 15:37 ` Tomasz Figa
2013-08-22 7:00 ` Vikas Sajjan
2013-08-28 5:15 ` Vikas Sajjan
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=6793396.xvnsuP0Ggu@flatron \
--to=tomasz.figa@gmail.com \
--cc=dianders@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=patches@linaro.org \
--cc=t.figa@samsung.com \
--cc=vikas.sajjan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox