public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: sergei.shtylyov@cogentembedded•com (Sergei Shtylyov)
To: linux-arm-kernel@lists•infradead.org
Subject: [RFC 13/17] ARM: shmobile: marzen-reference: Initialize CPG device
Date: Mon, 25 Nov 2013 16:15:28 +0400	[thread overview]
Message-ID: <52933F60.8090208@cogentembedded.com> (raw)
In-Reply-To: <1385342312-1967-14-git-send-email-horms+renesas@verge.net.au>

Hello.

On 25-11-2013 5:18, Simon Horman wrote:

> On multiplatform kernels clocks are handled by the CCF CPG driver. It
> must be explicitly initialized by a call to rcar_gen2_clocks_init() with

    You meant r8a7779_clocks_init() instead?

> the value of the boot mode pins.

> Based on similar work for the Koelsch board by Laurent Pinchart.

> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard•com>
> Signed-off-by: Simon Horman <horms+renesas@verge•net.au>
> ---
>   arch/arm/mach-shmobile/board-marzen-reference.c | 16 ++++++++++++----
>   1 file changed, 12 insertions(+), 4 deletions(-)

> diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c
> index 782907f..3a7c0fc 100644
> --- a/arch/arm/mach-shmobile/board-marzen-reference.c
> +++ b/arch/arm/mach-shmobile/board-marzen-reference.c
[...]
> @@ -28,11 +29,17 @@
>   #include <asm/mach/arch.h>
>
>
> -static void __init marzen_init(void)
> +static void __init marzen_init_timer(void)
>   {
>   #ifdef CONFIG_COMMON_CLK
> -	of_clk_init(NULL);
> -#else
> +	r8a7779_clocks_init(r8a7779_read_mode_pins());
> +#endif
> +	clocksource_of_init();
> +}
> +
> +static void __init marzen_init(void)
> +{
> +#ifndef CONFIG_COMMON_CLK
>   	r8a7779_clock_init();
>   #endif
>   	r8a7779_add_standard_devices_dt();

WBR, Sergei

  parent reply	other threads:[~2013-11-25 12:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25  1:18 [RFC 00/17] ARM: shmobile: r8a7779, marzen: multiplatform Simon Horman
     [not found] ` <1385342312-1967-16-git-send-email-horms+renesas@verge.net.au>
2013-11-25  6:51   ` [RFC 15/17] ARM: shmobile: Remove non-multiplatform Marzen reference support Kuninori Morimoto
2013-11-26  0:26     ` Simon Horman
     [not found] ` <1385342312-1967-17-git-send-email-horms+renesas@verge.net.au>
2013-11-25  6:56   ` [RFC 16/17] ARM: shmobile: Let Marzen multiplatform boot with Marzen DTB Kuninori Morimoto
2013-11-26  0:27     ` Simon Horman
     [not found] ` <1385342312-1967-9-git-send-email-horms+renesas@verge.net.au>
2013-11-25 11:53   ` [RFC 08/17] ARM: shmobile: r8a7779: Add helper to read mode pins Sergei Shtylyov
2013-11-26  0:34     ` Simon Horman
     [not found] ` <1385342312-1967-14-git-send-email-horms+renesas@verge.net.au>
2013-11-25 12:15   ` Sergei Shtylyov [this message]
2013-11-26  0:35     ` [RFC 13/17] ARM: shmobile: marzen-reference: Initialize CPG device Simon Horman

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=52933F60.8090208@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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