From: Stefan Roese <sr@denx.de>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 1/2] powerpc/44x: Add MTD support (NOR FLASH) to Katmai dts
Date: Tue, 26 Jan 2010 16:31:56 +0100 [thread overview]
Message-ID: <201001261631.56701.sr@denx.de> (raw)
In-Reply-To: <20100126150403.GQ7484@zod.rchland.ibm.com>
On Tuesday 26 January 2010 16:04:03 Josh Boyer wrote:
> On Tue, Jan 26, 2010 at 02:50:07PM +0100, Stefan Roese wrote:
> >This patch adds NOR FLASH MTD support to the Katmai (440SPe) dts file.
> >
> >Additionally with a small whitespace cleanup.
> >
> >Signed-off-by: Stefan Roese <sr@denx.de>
> >Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
> >---
> > arch/powerpc/boot/dts/katmai.dts | 71
> > +++++++++++++++++++++++++++---------- 1 files changed, 52 insertions(+),
> > 19 deletions(-)
> >
> >diff --git a/arch/powerpc/boot/dts/katmai.dts
> > b/arch/powerpc/boot/dts/katmai.dts index 8f345de..8cf2c0c 100644
> >--- a/arch/powerpc/boot/dts/katmai.dts
> >+++ b/arch/powerpc/boot/dts/katmai.dts
> >@@ -156,7 +156,7 @@
> > compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
> > #address-cells = <1>;
> > #size-cells = <1>;
> >- ranges = <0x00000000 0x00000004 0xe0000000 0x20000000>;
> >+ ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>;
>
> Could you explain why this was needed? It seems to shift the addresses of
> all the rest of the devices under the OPB.
Yes. This is needed to being able to map the EBC ranges (physical addresses of
each chip-select) correctly.
I'll update the commit text to explain this change a bit.
> > clock-frequency = <0>; /* Filled in by zImage */
> >
> > EBC0: ebc {
> >@@ -165,14 +165,47 @@
> > #address-cells = <2>;
> > #size-cells = <1>;
> > clock-frequency = <0>; /* Filled in by zImage */
> >+ /* ranges property is supplied by U-Boot */
>
> That's probably true for newer U-Boot versions, but Katmai shipped with an
> old version of U-Boot that wasn't FDT-aware. Wouldn't this break a new
> kernel on the older boards that don't have an updated U-Boot since the
> ranges property will be missing entirely there?
When the ranges property is missing in this EBC node, the NOR FLASH mapping
will not work. So not MTD devices. But it won't break anything.
Cheers,
Stefan
prev parent reply other threads:[~2010-01-26 15:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 13:50 [PATCH 1/2] powerpc/44x: Add MTD support (NOR FLASH) to Katmai dts Stefan Roese
2010-01-26 15:04 ` Josh Boyer
2010-01-26 15:31 ` Stefan Roese [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=201001261631.56701.sr@denx.de \
--to=sr@denx.de \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@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).