All of lore.kernel.org
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] arm/mx5: add device tree support for imx51 babbage
Date: Thu, 13 Oct 2011 17:20:25 +0100	[thread overview]
Message-ID: <20111013162025.GI21648@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4E970D62.9090403@free.fr>

On Thu, Oct 13, 2011 at 06:10:10PM +0200, Julien Boibessot wrote:
> On 30/09/2011 15:35, Shawn Guo wrote:
> > It adds device tree support for imx51 babbage board.
> >
> cut
> > diff --git a/arch/arm/mach-mx5/imx51-dt.c b/arch/arm/mach-mx5/imx51-dt.c
> > new file mode 100644
> > index 0000000..0878441
> > --- /dev/null
> > +++ b/arch/arm/mach-mx5/imx51-dt.c
> > @@ -0,0 +1,116 @@
> cut
> > +
> > +static void __init imx51_timer_init(void)
> > +{
> > +	mx51_clocks_init(32768, 24000000, 22579200, 0);
> > +}
> From my understanding, if put in arch/arm/mach-mx5/imx51-dt.c, this
> clock initialization will apply to all i.MX51 based platforms.
> Am I right ?

In the general case, from the above code fragment, I'd say you are.
The timer init stuff is supposed to be for bringing up the timers.

We do have an early init callback which can be used for this - which
gets things like the clk stuff up and running from immediately after
the page tables have been setup and initial device mappings put in
place - before any drivers or even IRQ controllers have been
initialized.

  reply	other threads:[~2011-10-13 16:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-30 13:35 [PATCH v5 0/2] Add device tree support for i.mx51/53 boards Shawn Guo
2011-09-30 13:35 ` [PATCH 1/2] arm/mx5: add device tree support for imx53 boards Shawn Guo
2011-09-30 13:56   ` Fabio Estevam
2011-09-30 14:14     ` Shawn Guo
2011-09-30 14:10   ` Shawn Guo
2011-09-30 13:35 ` [PATCH 2/2] arm/mx5: add device tree support for imx51 babbage Shawn Guo
2011-10-13 16:10   ` Julien Boibessot
2011-10-13 16:20     ` Russell King - ARM Linux [this message]
2011-10-14  1:26       ` Shawn Guo
2011-10-14  1:37     ` Shawn Guo
2011-10-14  2:20   ` Grant Likely
2011-10-14  8:38     ` Sascha Hauer
2011-10-14  9:00       ` Shawn Guo
2011-10-14 12:18         ` Sascha Hauer
  -- strict thread matches above, loose matches on Subject: below --
2011-08-02  6:52 [PATCH v4 0/2] Add device tree support for i.mx51/53 boards Shawn Guo
     [not found] ` <1312267943-25551-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-08-02  6:52   ` [PATCH 2/2] arm/mx5: add device tree support for imx51 babbage Shawn Guo
2011-08-02  6:52     ` Shawn Guo

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=20111013162025.GI21648@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.