From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 4/4] ARM: shmobile: r8a73a4: add Z2 clock support
Date: Thu, 27 Jun 2013 07:16:40 +0000 [thread overview]
Message-ID: <20130627071640.GB25014@verge.net.au> (raw)
In-Reply-To: <1371798638-10530-5-git-send-email-g.liakhovetski@gmx.de>
On Fri, Jun 21, 2013 at 09:10:38AM +0200, Guennadi Liakhovetski wrote:
> The Z2 clock on r8a73a4 is used to clock the 4 Cortex A7 cores on the SoC.
> Add a definition for this clock to later use it from the arm_big_little
> CPUFreq driver.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Thanks, I have queued this up for v3.12 in the soc branch.
> ---
> arch/arm/mach-shmobile/clock-r8a73a4.c | 17 +++++++++++++++++
> 1 files changed, 17 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-shmobile/clock-r8a73a4.c b/arch/arm/mach-shmobile/clock-r8a73a4.c
> index 508cb1e..b717e98 100644
> --- a/arch/arm/mach-shmobile/clock-r8a73a4.c
> +++ b/arch/arm/mach-shmobile/clock-r8a73a4.c
> @@ -324,6 +324,21 @@ static struct clk z_clk = {
> .ops = &zclk_ops,
> };
>
> +/*
> + * It seems only 1/2 divider is usable in manual mode. 1/2 / 2/3
> + * switching is only available in auto-DVFS mode
> + */
> +SH_FIXED_RATIO_CLK(pll0_div2_clk, pll0_clk, div2);
> +
> +static struct clk z2_clk = {
> + .parent = &pll0_div2_clk,
> + .div_mask = 0x1f,
> + .enable_bit = 0,
> + /* We'll need to access FRQCRB and FRQCRC */
> + .enable_reg = (void __iomem *)FRQCRB,
> + .ops = &zclk_ops,
> +};
> +
> static struct clk *main_clks[] = {
> &extalr_clk,
> &extal1_clk,
> @@ -342,6 +357,8 @@ static struct clk *main_clks[] = {
> &pll2s_clk,
> &pll2h_clk,
> &z_clk,
> + &pll0_div2_clk,
> + &z2_clk,
> };
>
> /* DIV4 */
> --
> 1.7.2.5
>
next prev parent reply other threads:[~2013-06-27 7:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 7:10 [PATCH 0/4] Add DVFS support on APE6EVM Guennadi Liakhovetski
2013-06-21 7:10 ` [PATCH 1/4] ARM: shmobile: r8a73a4: safeguard against wrong clk_set_rate() uses Guennadi Liakhovetski
2013-06-27 7:16 ` Simon Horman
2013-06-21 7:10 ` [PATCH 2/4] ARM: shmobile: r8a73a4: add I2C DT nodes and required clocks Guennadi Liakhovetski
2013-06-27 7:19 ` Simon Horman
2013-06-21 7:10 ` [PATCH 3/4] ARM: shmobile: ape6evm: add CPUFreq support Guennadi Liakhovetski
2013-06-21 7:10 ` [PATCH 4/4] ARM: shmobile: r8a73a4: add Z2 clock support Guennadi Liakhovetski
2013-06-27 7:16 ` Simon Horman [this message]
2013-06-27 4:45 ` [PATCH 0/4] Add DVFS support on APE6EVM Simon Horman
2013-06-27 5:29 ` Kuninori Morimoto
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=20130627071640.GB25014@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.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