From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH v2 1/2] [RFC][POWERPC] MPC8568E-MDS: create localbus node
Date: Mon, 15 Oct 2007 20:16:10 +0400 [thread overview]
Message-ID: <20071015161610.GA30512@localhost.localdomain> (raw)
In-Reply-To: <20071015155730.GA30008@localhost.localdomain>
This patch creates localbus node, moves bcsr into it, and adds
localbus to the probe path.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
Notice that localbus control registers are in the soc address
space, but ranges are not. Just the same situation as with PCI
nodes.
Patch is against galak/powerpc.git master branch.
arch/powerpc/boot/dts/mpc8568mds.dts | 14 +++++++++++---
arch/powerpc/platforms/85xx/mpc85xx_mds.c | 1 +
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/boot/dts/mpc8568mds.dts b/arch/powerpc/boot/dts/mpc8568mds.dts
index 5439437..8e15dba 100644
--- a/arch/powerpc/boot/dts/mpc8568mds.dts
+++ b/arch/powerpc/boot/dts/mpc8568mds.dts
@@ -42,9 +42,17 @@
reg = <00000000 10000000>;
};
- bcsr@f8000000 {
- device_type = "board-control";
- reg = <f8000000 8000>;
+ localbus@e0005000 {
+ compatible = "fsl,mpc8568mds-localbus";
+ #address-cells = <2>;
+ #size-cells = <1>;
+ reg = <e0005000 d8>;
+ ranges = <1 0 f8000000 0008000>;
+
+ bcsr@1,0 {
+ device_type = "board-control";
+ reg = <1 0 8000>;
+ };
};
soc8568@e0000000 {
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index 61b3eed..0cf994b 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -139,6 +139,7 @@ static struct of_device_id mpc85xx_ids[] = {
{ .type = "soc", },
{ .compatible = "soc", },
{ .type = "qe", },
+ { .compatible = "fsl,mpc8568mds-localbus", },
{},
};
--
1.5.0.6
next prev parent reply other threads:[~2007-10-15 16:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 15:35 [PATCH 1/2] [RFC][POWERPC] MPC8568E-MDS: create localbus node Anton Vorontsov
2007-10-15 15:42 ` Sergei Shtylyov
2007-10-15 15:57 ` Anton Vorontsov
2007-10-15 16:16 ` Anton Vorontsov [this message]
2007-10-15 16:16 ` [PATCH v2 2/2] [POWERPC] MPC8568E-MDS: add support for flash Anton Vorontsov
2007-10-15 17:33 ` Sergei Shtylyov
2007-10-15 18:00 ` Kumar Gala
2007-10-16 1:12 ` David Gibson
2007-10-16 10:55 ` Anton Vorontsov
2007-10-15 18:47 ` [PATCH 1/2] [RFC][POWERPC] MPC8568E-MDS: create localbus node Scott Wood
2007-10-15 19:08 ` Kumar Gala
2007-10-15 19:10 ` Scott Wood
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=20071015161610.GA30512@localhost.localdomain \
--to=avorontsov@ru.mvista.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).