From: Grant Likely <grant.likely@secretlab.ca>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org, Victor Gallardo <vgallard@amcc.com>,
fkan@amcc.com, linuxppc-embedded@ozlabs.org
Subject: Re: [PATCH] Add AMCC Arches 460GT eval board support to platforms/44x
Date: Wed, 16 Jul 2008 08:15:39 -0600 [thread overview]
Message-ID: <20080716141539.GC24045@secretlab.ca> (raw)
In-Reply-To: <20080716075025.0bca152c@zod.rchland.ibm.com>
On Wed, Jul 16, 2008 at 07:50:25AM -0400, Josh Boyer wrote:
> On Tue, 15 Jul 2008 22:33:26 -0700
> fkan@amcc.com wrote:
>
> > From: Victor Gallardo <vgallard@amcc.com>
> >
> > ppc4xx: Add AMCC Arches 460GT eval board support
> >
> > Signed-off-by: Victor Gallardo <vgallard@amcc.com>
>
> From what I can tell, you don't even need this patch or the defconfig.
> Nothing differs at this point from Glacier other than the DTS. Since
> U-Boot is your loader, it should be able to pass the different DTS to a
> kernel that supports Cayonlands and have no issues.
>
> > ---
> > arch/powerpc/platforms/44x/Kconfig | 18 ++++++++
> > arch/powerpc/platforms/44x/Makefile | 1 +
> > arch/powerpc/platforms/44x/arches.c | 76 +++++++++++++++++++++++++++++++++++
> > 3 files changed, 95 insertions(+), 0 deletions(-)
> > create mode 100644 arch/powerpc/platforms/44x/arches.c
> >
> > diff --git a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig
> > index 6abe913..95d1217 100644
> > --- a/arch/powerpc/platforms/44x/Kconfig
> > +++ b/arch/powerpc/platforms/44x/Kconfig
> > @@ -77,6 +77,16 @@ config CANYONLANDS
> > help
> > This option enables support for the AMCC PPC460EX evaluation board.
> >
> > +config ARCHES
> > + bool "Arches"
> > + depends on 44x
> > + default n
> > + select 460GT
> > + select PCI
> > + select PPC4xx_PCI_EXPRESS
> > + help
> > + This option enables support for the AMCC PPC460GT Arches board.
>
> If you do want to have explicit support for Arches, that's fine. Look
> at how Yosemite is supported. It just reuses Bamboo. You could do the
> same.
>
> > config YOSEMITE
> > bool "Yosemite"
> > depends on 44x
> > @@ -149,6 +159,14 @@ config 460EX
> > select IBM_NEW_EMAC_ZMII
> > select IBM_NEW_EMAC_TAH
> >
> > +config 460GT
> > + bool
> > + select PPC_FPU
> > + select IBM_NEW_EMAC_EMAC4
> > + select IBM_NEW_EMAC_RGMII
> > + select IBM_NEW_EMAC_ZMII
> > + select IBM_NEW_EMAC_TAH
>
> I don't see a reason to add this at all. 460EX and 460GT select the
> same set of options.
>
> > # 44x errata/workaround config symbols, selected by the CPU models above
> > config IBM440EP_ERR42
> > bool
> > diff --git a/arch/powerpc/platforms/44x/Makefile b/arch/powerpc/platforms/44x/Makefile
> > index 774165f..86a4823 100644
> > --- a/arch/powerpc/platforms/44x/Makefile
> > +++ b/arch/powerpc/platforms/44x/Makefile
> > @@ -9,3 +9,4 @@ obj-$(CONFIG_RAINIER) += rainier.o
> > obj-$(CONFIG_WARP) += warp.o
> > obj-$(CONFIG_WARP) += warp-nand.o
> > obj-$(CONFIG_CANYONLANDS) += canyonlands.o
> > +obj-$(CONFIG_ARCHES) += arches.o
>
> Here you would just have:
>
> obj-$(CONFIG_ARCHES) += cayonlands.o
>
> > diff --git a/arch/powerpc/platforms/44x/arches.c b/arch/powerpc/platforms/44x/arches.c
> > new file mode 100644
> > index 0000000..6d6aa66
> > --- /dev/null
> > +++ b/arch/powerpc/platforms/44x/arches.c
>
> And then you don't need this file at all. Just add a
> "amcc,canyonlands" string to your root node compatible property.
No! Don't do this because it is not true!
Instead, add your board name to canyonlands.c in canyonlands_probe().
It's not the most scalable solution, but it keeps you from lying about
your hardware in the .dts file.
I'm working on a more scalable solution for this, but for now just add
your specific board to canyonlands_probe().
Cheers,
g.
next prev parent reply other threads:[~2008-07-16 14:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 5:33 [PATCH] Add AMCC Arches 460GT eval board support to platforms/44x fkan
2008-07-16 11:50 ` Josh Boyer
2008-07-16 14:15 ` Grant Likely [this message]
2008-07-16 14:37 ` Josh Boyer
2008-07-16 15:43 ` Grant Likely
2008-07-17 3:15 ` Segher Boessenkool
2008-07-16 14:46 ` Arnd Bergmann
2008-07-16 15:46 ` Grant Likely
2008-07-16 22:58 ` Arnd Bergmann
2008-07-17 2:15 ` Josh Boyer
2008-07-17 3:24 ` Segher Boessenkool
2008-07-17 3:19 ` Segher Boessenkool
2008-07-18 22:31 ` Victor Gallardo
2008-07-19 13:44 ` Josh Boyer
2008-07-22 19:35 ` Victor Gallardo
2008-07-18 14:24 ` Stefan Roese
2008-07-18 22:24 ` Victor Gallardo
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=20080716141539.GC24045@secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=fkan@amcc.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=linuxppc-embedded@ozlabs.org \
--cc=vgallard@amcc.com \
/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).