From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: shmobile: Consolidate R8A779[234] machine definitions
Date: Fri, 07 Oct 2016 11:31:38 +0300 [thread overview]
Message-ID: <1887854.q6czybrPJL@avalon> (raw)
In-Reply-To: <CAMuHMdVVE2N20zmCddy6Y2mMBf4zk0u=WfQ3Sa1e_ASOf5zO_Q@mail.gmail.com>
Hi Geert,
On Friday 07 Oct 2016 09:43:53 Geert Uytterhoeven wrote:
> On Wed, Oct 5, 2016 at 12:31 PM, Laurent Pinchart wrote:
> > The three SoCs use the exact same machine definition, consolidate them
> > into a single one.
>
> Thanks for your patch!
>
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks.
> I'm wondering if we can improve upon...
I think we can. Your points below are valid, patches are welcome ;-)
> > --- a/arch/arm/mach-shmobile/setup-rcar-gen2.c
> > +++ b/arch/arm/mach-shmobile/setup-rcar-gen2.c
> > @@ -203,3 +204,22 @@ void __init rcar_gen2_reserve(void)
> > }
> > #endif
> > }
> > +
> > +static const char * const rcar_gen2_boards_compat_dt[] __initconst = {
> > + /*
> > + * R8A7790 and R8A7791 can't be handled here as long as they need
> > SMP
> > + * initialization fallback.
> > + */
> > + "renesas,r8a7792",
> > + "renesas,r8a7793",
> > + "renesas,r8a7794",
> > + NULL,
> > +};
> > +
> > +DT_MACHINE_START(RCAR_GEN2_DT, "Generic Gen2 (Flattened Device Tree)")
> > + .init_early = shmobile_init_delay,
>
> shmobile_init_delay() is not really Renesas-specific, but ARM-specific.
> This is just to avoid calibrating the delay loop?
>
> > + .init_late = shmobile_init_late,
>
> This calls only into shmobile_suspend_init(), which is also not
> Renesas-specific.
>
> > + .init_time = rcar_gen2_timer_init,
>
> This is about fixing up the ARM Arch timer, and initializing clocks as we
> need to pass the mode pin state (ugh, will hopefully go away soon).
>
> > + .reserve = rcar_gen2_reserve,
>
> Reserving a block for CMA DMA is also not really Renesas-specific.
>
> > + .dt_compat = rcar_gen2_boards_compat_dt,
> > +MACHINE_END
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2016-10-07 8:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-05 10:31 [PATCH] ARM: shmobile: Consolidate R8A779[234] machine definitions Laurent Pinchart
2016-10-05 13:51 ` Laurent Pinchart
2016-10-07 5:51 ` Simon Horman
2016-10-07 7:43 ` Geert Uytterhoeven
2016-10-07 8:31 ` Laurent Pinchart [this message]
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=1887854.q6czybrPJL@avalon \
--to=laurent.pinchart@ideasonboard.com \
--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