SUPERH platform development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 4/6] ARM: shmobile: r8a7740: Prepare for reference DT setup
Date: Fri, 05 Apr 2013 00:07:17 +0000	[thread overview]
Message-ID: <6502989.1xB3McauVL@avalon> (raw)
In-Reply-To: <1365083144-16085-4-git-send-email-hechtb+renesas@gmail.com>

Hi Bastian,

On Thursday 04 April 2013 18:04:40 Bastian Hecht wrote:
> 2013/4/4 Laurent Pinchart <laurent.pinchart@ideasonboard.com>:
> > Hi Bastian,
> > 
> > Thanks for the patch.
> > 
> > On Thursday 04 April 2013 15:45:42 Bastian Hecht wrote:
> >> We need two steps to prepare for the new Armadillo reference DT board
> >> code:
> >>  - Split the device list into r8a7740_early_devices used by the old
> >>  platform data setup (board-armadillo.c) and r8a7740_devices_dt used by
> >>  both setup variants.
> >> 
> >>  - Introduce new r8a7740_init_delay() to be more flexible about calling
> >>    shmobile_setup_delay().
> >> 
> >> This is similar to commit 3b00f9342623a5ebc
> >> "ARM: shmobile: sh73a0: Do not use early devices with DT reference"
> >> 
> >> Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
> >> ---
> >> 
> >>  arch/arm/mach-shmobile/include/mach/r8a7740.h |    2 ++
> >>  arch/arm/mach-shmobile/setup-r8a7740.c        |   41   +++++++++--------
> >>  2 files changed, 23 insertions(+), 20 deletions(-)

[snip]

> >> diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c
> >> b/arch/arm/mach-shmobile/setup-r8a7740.c index 228d7ab..ce0d2e6 100644
> >> --- a/arch/arm/mach-shmobile/setup-r8a7740.c
> >> +++ b/arch/arm/mach-shmobile/setup-r8a7740.c

[snip]

> >> +void __init r8a7740_generic_init_early(void)
> > 
> > static void ?
> 
> I'm not sure, other people might want to use that in their board code
> when they don't have the need to set up the clocks with some special
> flags like we need it for Armadillo.

In that case they will need to patch the header file to declare 
r8a7740_generic_init_early, so they could as well remove the static at that 
point.

> >> +{
> >> +     r8a7740_clock_init(0);
> >> +     r8a7740_init_delay();
> >> 
> >>  }

-- 
Regards,

Laurent Pinchart


  parent reply	other threads:[~2013-04-05  0:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 13:45 [PATCH 4/6] ARM: shmobile: r8a7740: Prepare for reference DT setup Bastian Hecht
2013-04-04 14:07 ` Laurent Pinchart
2013-04-04 16:04 ` Bastian Hecht
2013-04-05  0:07 ` Laurent Pinchart [this message]
2013-04-05  1:16 ` Kuninori Morimoto
2013-04-08 10:45 ` Bastian Hecht
2013-04-09  0:03 ` Kuninori Morimoto
2013-04-17  9:18 ` Bastian Hecht
2013-04-18  0:34 ` 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=6502989.1xB3McauVL@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-sh@vger.kernel.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