[RFC 13/17] ARM: shmobile: marzen-reference: Initialize CPG device
Simon Horman
horms at verge.net.au
Mon Nov 25 19:35:08 EST 2013
On Mon, Nov 25, 2013 at 04:15:28PM +0400, Sergei Shtylyov wrote:
> 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?
Yes, thanks. I will fix that.
>
> >the value of the boot mode pins.
>
> >Based on similar work for the Koelsch board by Laurent Pinchart.
>
> >Cc: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
> >Signed-off-by: Simon Horman <horms+renesas at 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
>
More information about the linux-arm-kernel
mailing list