linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Jander <david.jander@protonic.nl>
To: "John Rigby" <jcrigby@gmail.com>
Cc: linuxppc-dev@ozlabs.org, linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] Added support for PRTLVT based boards (MPC5121)
Date: Fri, 20 Jun 2008 11:01:27 +0200	[thread overview]
Message-ID: <200806201101.27908.david.jander@protonic.nl> (raw)
In-Reply-To: <4b73d43f0806180833r7877fc16o2673f64df5e49aa7@mail.gmail.com>


Hi John,

On Wednesday 18 June 2008 17:33:48 John Rigby wrote:
> Hi David,
>
> Looks like your device tree is based on the beta ltib bsp.  There were
> some changes in release 1 that you may want to incorporate:
>
> First as a convention I changed all the interrupt numbers in the
> tuples to be decimal.  I like this better because the interrupts are
> decimal in the reference manual.
>
> Second, the new clock driver that is in the release 1 bsp and will be
> posting here shortly no longer uses the device tree, so you can remove
> all the clk-name, clk-parent, clk-ctrl properties.

Thanks, I'll incorporate these changes and submit again.
Btw, do you agree with the following part of the patch?

> > diff --git a/arch/powerpc/platforms/512x/Kconfig
> > b/arch/powerpc/platforms/512x/Kconfig index 4c0da0c..57b3912 100644
> > --- a/arch/powerpc/platforms/512x/Kconfig
> > +++ b/arch/powerpc/platforms/512x/Kconfig
> > @@ -2,18 +2,20 @@ config PPC_MPC512x
> >        bool
> >        select FSL_SOC
> >        select IPIC
> > -       default n
> >
> >  config PPC_MPC5121
> >        bool
> >        select PPC_MPC512x
> > -       default n
> >
> > -config MPC5121_ADS
> > -       bool "Freescale MPC5121E ADS"
> > +config MPC5121_GENERIC
> > +       bool "Generic support for simple MPC5121 based boards"
> >        depends on PPC_MULTIPLATFORM && PPC32
> >        select DEFAULT_UIMAGE
> >        select PPC_MPC5121
> >        help
> > -         This option enables support for the MPC5121E ADS board.
> > -       default n
> > +         This option enables support for a simple MPC5121 based boards
> > which +         do not need a custom platform specific setup.
> > +
> > +         Boards that are compatible with this generic platform support
> > +         are: Freescale MPC5121 ADS and Protonic LVT based boards
> > (ZANMCU +         and VICVT2).
> > diff --git a/arch/powerpc/platforms/512x/Makefile
> > b/arch/powerpc/platforms/512x/Makefile index 232c89f..9d40a2e 100644
> > --- a/arch/powerpc/platforms/512x/Makefile
> > +++ b/arch/powerpc/platforms/512x/Makefile
> > @@ -1,4 +1,4 @@
> >  #
> >  # Makefile for the Freescale PowerPC 512x linux kernel.
> >  #
> > -obj-$(CONFIG_MPC5121_ADS)      += mpc5121_ads.o
> > +obj-$(CONFIG_MPC5121_GENERIC)  += mpc5121_generic.o
> > diff --git a/arch/powerpc/platforms/512x/mpc5121_ads.c
> > b/arch/powerpc/platforms/512x/mpc5121_generic.c similarity index 73%
> > rename from arch/powerpc/platforms/512x/mpc5121_ads.c
> > rename to arch/powerpc/platforms/512x/mpc5121_generic.c
> > index 50bd3a3..824ddbb 100644
> > --- a/arch/powerpc/platforms/512x/mpc5121_ads.c
> > +++ b/arch/powerpc/platforms/512x/mpc5121_generic.c
>[...]

The idea is to make it as simple as possible to add new platforms that are 
basically just derivatives of the same.

Greetings,

-- 
David Jander
Protonic Holland.

  reply	other threads:[~2008-06-20  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13  8:49 [PATCH] Added support for PRTLVT based boards (MPC5121) David Jander
2008-06-18 15:33 ` John Rigby
2008-06-20  9:01   ` David Jander [this message]
2008-06-20 14:36     ` John Rigby
2008-06-23  6:28       ` David Jander

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=200806201101.27908.david.jander@protonic.nl \
    --to=david.jander@protonic.nl \
    --cc=jcrigby@gmail.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).