AMCC PPC 460SX redwood SoC platform initial framework
A message that is not in the archive (sent off-list or not yet received): [email protected]
=20
Hi,
I again see the confidentiality notice in the patch I submitted. It was not supposed to be there. I'll fix it and resubmit the patch.
Thanks,
Madhulika Madishetty
-----Original Message-----
From: [email protected] [mailto:[email protected]] On = Behalf
Of [email protected]
Sent: Thursday, January 29, 2009 11:47 AM
To: [email protected]
Subject: Linuxppc-dev Digest, Vol 53, Issue 168
Send Linuxppc-dev mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://ozlabs.org/mailman/listinfo/linuxppc-dev
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Linuxppc-dev digest..."
Today's Topics:
1. Re: R: R: USB on lite5200 does not work. (velumani)
2. [PATCH] ucc_geth: Change uec phy id to the same format as gianfar's (Haiying Wang)
3. Re: [PATCH] ucc_geth: Change uec phy id to the same format as gianfar's (Kumar Gala)
4. Re: [PATCH] add gpio to mpc837X rdb (Kumar Gala)
5. Re: [PATCH] add gpio to mpc837X rdb (Peter Korsgaard)
6. Re: [PATCH] add gpio to mpc837X rdb (Anton Vorontsov)
7. Re: [PATCH] add gpio to mpc837X rdb (Kumar Gala)
8. [PATCH 1/1 v2] AMCC PPC 460SX redwood SoC platform initial framework ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 29 Jan 2009 01:38:20 -0800 (PST)
From: velumani <[email protected]>
Subject: Re: R: R: USB on lite5200 does not work.
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3Dus-ascii
Hi,
Did you get any solution for this problem. We are also facing this issue...
This problem does not happen in our board on every reboot but happens occationaly. If you have got any solution please let me know.
Thanks,
Velumani
Quoted 12 lines · Jon Smirl
=20
If you are using a 33.333Mz crystal it is not possible to generate exactly 48Mhz for USB. Best you can do is 48.11Mz. With a 33Mhz crystal you can make 48Mhz exactly. But that's probably not your problem, that just results in errors on the USB bus. Some USB devices don't care and others will get errors.
=20Quoted 3 lines · Gianfranco Casanova
Grant Likely ha scritto:
Quoted 2 lines
On Fri, Nov 21, 2008 at 1:36 AM, <[email protected]>
Quoted 16 lines · wrote:
Quoted 16 lines
Quoted 15 lines
Quoted 3 lines
The main HW difference between our board and lite5200 is:
console on PSC3 and[...]
Quoted 5 lines
on our HW defined as:
/* Radionav configuration */ port_config =3D 0x0C712E66;You've got quite a bit of difference than just console on PSC3. USB is on the Ethernet pin group instead of on the USB pin group. Does the kernel change the value of
port_configwhen it boots, or does it leave the value setup by U-Boot intact?
Quoted 6 lines
Quoted 6 lines
As far as I sow from debugger no.
We are able to boot with a mini operating system (see previous post). Plugging USB the system get frozen.
We have got the same version of kernel compiled on PPC ARCH and USB,
in
Quoted 4 lines
Quoted 4 lines
this
case, works.Between PPC and PowerPC from debugger there is only one difference
the
Quoted 4 lines
Quoted 4 lines
label
for USB interrupt, in PPC is 50 in PowerPC is 134.I've already checked CDM register and GPIO register and all are the
same.
Quoted 2 lines
Quoted 2 lines
From USB register only one difference on HDDC values (not important
from
Quoted 4 lines
Quoted 4 lines
my
point of view).Our processor frequency is different from lite5200. We are thinking
that
Quoted 3 lines
Quoted 3 lines
scaling frequency processor to determine frequency of USB bus is different
in PPC and PowerPC. Other street we are looking for is some WR
patchs
Quoted 5 lines
Quoted 5 lines
from
lite5200 on PowerPC that are not accepted from our HW.Quoted 2 lines
Quoted 2 lines
I still do not understand our bug with USB.
Have you got some suggestions or some test to be performed in order
to
Quoted 18 lines
Quoted 11 lines
Quoted 4 lines
Quoted 2 lines
find
out a solutions?Not over a quick exchange via email.
Yes of course :)
Quoted 3 lines
Your kernel is too old and USB
debugging can be complex. I'd need to be working with your hardware to figure out what is going on.Quoted 7 lines
I see. We also wont debug USB.
Thaks J
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Quoted 12 lines
=20
=20
=20
--=20
Jon Smirl
[email protected]
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
=20
=20
--=20
View this message in context:
http://www.nabble.com/USB-on-lite5200-does-not-work.-tp20601948p21723361
.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
------------------------------
Message: 2
Date: Thu, 29 Jan 2009 13:39:02 -0500
From: Haiying Wang <[email protected]>
Subject: [PATCH] ucc_geth: Change uec phy id to the same format as
gianfar's
To: [email protected], [email protected]
Cc: Haiying Wang <[email protected]> Message-ID:
<[email protected]>
The commit b31a1d8b41513b96e9c7ec2f68c5734cef0b26a4 changes the gianfar's phy id to
the format like "mdio@xxxx:xx", but uec still uses the old format like "xxxxxxxx:xx".
For the board whose UEC uses gianfar-mdio like MPC8568MDS, the phy can not be attached
because of the incompatible phy id format. This patch changes uec's phy id to the same
format as gianfar's.
--- drivers/net/ucc_geth.c | 20 ++++++++++++++++++-- drivers/net/ucc_geth.h | 2 ++ drivers/net/ucc_geth_mii.c | 12 +++++++++++- drivers/net/ucc_geth_mii.h | 1 + 4 files changed, 32 insertions(+), 3 deletions(-)
drivers/net/ucc_geth.c +5 -0
@@ -1536,6 +1536,11 @@ static void adjust_link(struct net_device *dev)static int init_phy (struct net_device *dev) { struct ucc_geth_private *priv =3D netdev_priv(dev); + struct device_node *np =3D priv->node; +struct device_node *phy, *mdio; +const phandle *ph; +char bus_name[MII_BUS_ID_SIZE ]; +const unsigned int *id;struct phy_device *phydev;char phy_id[BUS_ID_SIZE ];
=20
@@ -1543,9 +1548,19 @@ static int init_phy(struct net_device *dev)
priv->oldspeed =3D 0;
priv->oldduplex =3D -1;
=20
- snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT,priv->ug_info->mdio_bus,
- priv->ug_info->phy_address);
+ ph =3D of_get_property(np, "phy-handle", NULL);
+ phy =3D of_find_node_by_phandle(*ph);
+ mdio =3D of_get_parent(phy);
+
+ id =3D of_get_property(phy, "reg", NULL);
+
+ of_node_put(phy);
+ of_node_put(mdio);
=20
+ uec_mdio_bus_name(bus_name, mdio);
+ snprintf(phy_id, sizeof(phy_id), "%s:%02x",
+ bus_name, *id);
+
phydev =3D phy_connect(dev, phy_id, &adjust_link, 0,priv->phy_interface);
=20
if (IS_ERR(phydev)) {
@@ -3748,6 +3763,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
=20
ugeth->ug_info =3D ug_info;
ugeth->dev =3D dev;
+ ugeth->node =3D np;
=20
return 0;
}
drivers/net/ucc_geth.h +2 -0
@@ -1186,6 +1186,8 @@ struct ucc_geth_private {int oldspeed;int oldduplex;int oldlink; + +struct device_node *node; };
=20
void uec_set_ethtool_ops(struct net_device *netdev);
drivers/net/ucc_geth_mii.c +0 -0
@@ -156,7 +156,7 @@ static int uec_mdio_probe(struct of_device *ofdev,
const struct of_device_id *ma
if (err)
goto reg_map_fail;
=20
- snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start);
+ uec_mdio_bus_name(new_bus->id, np);
=20
new_bus->irq =3D kmalloc(32 * sizeof(int), GFP_KERNEL);
=20
@@ -283,3 +283,13 @@ void uec_mdio_exit(void)
{
of_unregister_platform_driver(&uec_mdio_driver);
}
+
+void uec_mdio_bus_name(char *name, struct device_node *np) +{
+ const u32 *reg;
+
+ reg =3D of_get_property(np, "reg", NULL);
+
+ snprintf(name, MII_BUS_ID_SIZE, "%s@%x", np->name, reg ? *reg :
0);
+}
+
drivers/net/ucc_geth_mii.h +0 -0
@@ -97,4 +97,5 @@ int uec_mdio_read(struct mii_bus *bus, int mii_id, int
regnum);
int uec_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16
value);
int __init uec_mdio_init(void);
void uec_mdio_exit(void);
+void uec_mdio_bus_name(char *name, struct device_node *np);
#endif /* __UEC_MII_H */
--=20
1.6.0.2
------------------------------
Message: 3
Date: Thu, 29 Jan 2009 12:42:38 -0600
From: Kumar Gala <[email protected]>
Subject: Re: [PATCH] ucc_geth: Change uec phy id to the same format as
gianfar's
To: David Miller <[email protected]>
Cc: linuxppc-dev list <[email protected]>, Haiying Wang
<[email protected]>, [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3DUS-ASCII; format=3Dflowed; = delsp=3Dyes
Quoted 10 lines · Haiying Wang
The commit
b31a1d8b41513b96e9c7ec2f68c5734cef0b26a4changes the =20 gianfar's phy id to
the format like "mdio@xxxx:xx", but uec still uses the old format =20 like "xxxxxxxx:xx".
For the board whose UEC uses gianfar-mdio like MPC8568MDS, the phy =20 can not be attached
because of the incompatible phy id format. This patch changes uec's =20 phy id to the same
format as gianfar's.
Quoted 7 lines
Signed-off-by Haiying Wang <[email protected]>---
drivers/net/ucc_geth.c | 20 ++++++++++++++++++-- drivers/net/ucc_geth.h | 2 ++ drivers/net/ucc_geth_mii.c | 12 +++++++++++- drivers/net/ucc_geth_mii.h | 1 + 4 files changed, 32 insertions(+), 3 deletions(-)
David,
Can you look at this for 2.6.29.
- k
------------------------------
Message: 4
Date: Thu, 29 Jan 2009 12:38:03 -0600
From: Kumar Gala <[email protected]>
Subject: Re: [PATCH] add gpio to mpc837X rdb
To: Reynes Philippe <[email protected]>
Cc: linuxppc-dev list <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3DUS-ASCII; format=3Dflowed
Quoted 11 lines · Reynes Philippe
Signed-off-by Philippe Reynes <[email protected]>---
arch/powerpc/boot/dts/mpc8377_rdb.dts +0
-0@@ -109,6 +109,24 @@ reg =3D <0x200 0x100>; };
arch/powerpc/boot/dts/mpc8377_rdb.dts line 121
Quoted 10 lines
arch/powerpc/boot/dts/mpc8377_rdb.dts +9
-0+ gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio", "fsl,mpc8349-gpio"; + reg =3D <0xc00 0x100>; + interrupts =3D <74 0x8>; + interrupt-parent =3D <&ipic>; + gpio-controller; + }; +
seeing patch apply issues.. (line wrapping)
- k
------------------------------
Message: 5
Date: Thu, 29 Jan 2009 20:17:33 +0100
From: Peter Korsgaard <[email protected]>
Subject: Re: [PATCH] add gpio to mpc837X rdb
To: "Reynes Philippe" <[email protected]>
Cc: linuxppc-dev list <[email protected]>, Kumar Gala
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3Dus-ascii
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Reynes" =3D=3D Reynes Philippe <[email protected]> =
writes:
Hi,
Reynes> Signed-off-by: Philippe Reynes <[email protected]>
=20
Reynes> + gpio1: gpio-controller@c00 {
Reynes> + #gpio-cells =3D <2>;
Reynes> + compatible =3D "fsl,mpc8347-gpio",
Reynes> "fsl,mpc8349-gpio";
The patch is wordwrapped, and you should use fsl,mpc8377-gpio, not mpc8347 (E.G. <actual platform>, mpc8349)
--=20
Bye, Peter Korsgaard
------------------------------
Message: 6
Date: Thu, 29 Jan 2009 22:20:31 +0300
From: Anton Vorontsov <[email protected]>
Subject: Re: [PATCH] add gpio to mpc837X rdb
To: Reynes Philippe <[email protected]>
Cc: linuxppc-dev list <[email protected]>, Kumar Gala
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3Dutf8
Quoted 11 lines · Reynes Philippe
Signed-off-by Philippe Reynes <[email protected]>---
arch/powerpc/boot/dts/mpc8377_rdb.dts +0
-0@@ -109,6 +109,24 @@ reg =3D <0x200 0x100>; };=20
arch/powerpc/boot/dts/mpc8377_rdb.dts
Quoted 3 lines
arch/powerpc/boot/dts/mpc8377_rdb.dts +3
-0+ gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio",
I think this should be "fsl,mpc8377-gpio", "fsl,mpc8349-gpio".
[...]
Quoted 10 lines
arch/powerpc/boot/dts/mpc8378_rdb.dts +0
-0@@ -109,6 +109,24 @@ reg =3D <0x200 0x100>; };=20
arch/powerpc/boot/dts/mpc8378_rdb.dts +3
-0+ gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio","fsl,mpc8349-gpio";
"fsl,mpc8378-gpio", "fsl,mpc8349-gpio".
[...]
Quoted 10 lines
arch/powerpc/boot/dts/mpc8379_rdb.dts +0
-0@@ -107,6 +107,24 @@ reg =3D <0x200 0x100>; };=20
arch/powerpc/boot/dts/mpc8379_rdb.dts +3
-0+ gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio","fsl,mpc8349-gpio";
"fsl,mpc8379-gpio", "fsl,mpc8349-gpio".
Thanks,
--=20
Anton Vorontsov
email: [email protected]
irc://irc.freenode.net/bd2
------------------------------
Message: 7
Date: Thu, 29 Jan 2009 13:23:24 -0600
From: Kumar Gala <[email protected]>
Subject: Re: [PATCH] add gpio to mpc837X rdb
To: [email protected]
Cc: linuxppc-dev list <[email protected]>, Reynes Philippe
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=3DUS-ASCII; format=3Dflowed
Quoted 39 lines · Anton Vorontsov
Quoted 8 lines · Reynes Philippe
Signed-off-by Philippe Reynes <[email protected]>---
arch/powerpc/boot/dts/mpc8377_rdb.dts +0
-0arch/powerpc/boot/dts/mpc8377_rdb.dts line 114
Quoted 6 lines
arch/powerpc/boot/dts/mpc8377_rdb.dts +3
-0@@ -109,6 +109,24 @@ reg =3D <0x200 0x100>; }; + gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio",I think this should be "fsl,mpc8377-gpio", "fsl,mpc8349-gpio".
[...]
arch/powerpc/boot/dts/mpc8378_rdb.dts line 115
Quoted 10 lines
arch/powerpc/boot/dts/mpc8378_rdb.dts +3
-0@@ -109,6 +109,24 @@ reg =3D <0x200 0x100>; }; + gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio", "fsl,mpc8349-gpio";"fsl,mpc8378-gpio", "fsl,mpc8349-gpio".
[...]
Quoted 6 lines
arch/powerpc/boot/dts/mpc8379_rdb.dts +0
-0@@ -107,6 +107,24 @@ reg =3D <0x200 0x100>; };
Quoted 6 lines
arch/powerpc/boot/dts/mpc8379_rdb.dts line 113
Quoted 4 lines
arch/powerpc/boot/dts/mpc8379_rdb.dts +3
-0+ gpio1: gpio-controller@c00 { + #gpio-cells =3D <2>; + compatible =3D "fsl,mpc8347-gpio", "fsl,mpc8349-gpio";"fsl,mpc8379-gpio", "fsl,mpc8349-gpio".
Agreed w/Anton here.
- k
------------------------------
Message: 8
Date: Thu, 29 Jan 2009 11:46:24 -0800
From: <[email protected]>
Subject: [PATCH 1/1 v2] AMCC PPC 460SX redwood SoC platform initial
framework=20
To: <[email protected]>
Cc: Preetesh Parekh <[email protected]>, Madhulika Madishetty
<[email protected]>, Feng Kan <[email protected]>,
Vidhyananth
Venkatasamy <[email protected]>, Tirumala Marri
<[email protected]>
Message-ID: <[email protected]>
From: Madhulika Madishetty <[email protected]>
This patch contains initial framework for the AMCC Redwood board.
--- arch/powerpc/boot/dts/redwood.dts | 245 ++++++ arch/powerpc/configs/44x/redwood_defconfig | 1174=20 ++++++++++++++++++++++++++++ arch/powerpc/kernel/cpu_setup_44x.S | 1 + arch/powerpc/kernel/cputable.c | 13 + arch/powerpc/platforms/44x/Kconfig | 19 + arch/powerpc/platforms/44x/ppc44x_simple.c | 1 + 6 files changed, 1453 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/redwood.dts create mode 100644 arch/powerpc/configs/44x/redwood_defconfig
(quoted diff) +0 -0
b/arch/powerpc/boot/dts/redwood.dts
new file mode 100644
index 0000000..1c525ee
arch/powerpc/boot/dts/redwood.dts new file +34 -0
@@ -0,0 +1,245 @@ +/* + * Device Tree Source for AMCC Redwood(460SX) + * + * Copyright 2008 AMCC <[email protected]> + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without + * any warranty of any kind, whether express or implied. + */ + +/dts-v1/; + +/ { + #address-cells =3D <2>; + #size-cells =3D <1>; + model =3D "amcc,redwood"; + compatible =3D "amcc,redwood"; + dcr-parent =3D <&{/cpus/cpu@0}>; + + aliases { + ethernet0 =3D &EMAC0; + serial0 =3D &UART0; + }; + + cpus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + cpu@0 { + device_type =3D "cpu"; + model =3D "PowerPC,460SX"; + reg =3D <0x00000000>; + clock-frequency =3D <0>; /* Filled in by U-Boot */ + timebase-frequency =3D <0>; /* Filled in by U-Boot
*/
+ i-cache-line-size =3D <32>;
+ d-cache-line-size =3D <32>;
+ i-cache-size =3D <32768>;
+ d-cache-size =3D <32768>;
+ dcr-controller;
+ dcr-access-method =3D "native";
+ };
+ };
+
+ memory {
+ device_type =3D "memory";
+ reg =3D <0x00000000 0x00000000 0x00000000>; /* Filled in
by U-Boot */
+ };
+
+ UIC0: interrupt-controller0 {
+ compatible =3D "ibm,uic-460sx","ibm,uic";
+ interrupt-controller;
+ cell-index =3D <0>;
+ dcr-reg =3D <0x0c0 0x009>;
+ #address-cells =3D <0>;
+ #size-cells =3D <0>;
+ #interrupt-cells =3D <2>;
+ };
+
+ UIC1: interrupt-controller1 {
+ compatible =3D "ibm,uic-460sx","ibm,uic";
+ interrupt-controller;
+ cell-index =3D <1>;
+ dcr-reg =3D <0x0d0 0x009>;
+ #address-cells =3D <0>;
+ #size-cells =3D <0>;
+ #interrupt-cells =3D <2>;
+ interrupts =3D <0x1e 0x4 0x1f 0x4>; /* cascade */
+ interrupt-parent =3D <&UIC0>;
+ };
+
+ UIC2: interrupt-controller2 {
+ compatible =3D "ibm,uic-460sx","ibm,uic";
+ interrupt-controller;
+ cell-index =3D <2>;
+ dcr-reg =3D <0x0e0 0x009>;
+ #address-cells =3D <0>;
+ #size-cells =3D <0>;
+ #interrupt-cells =3D <2>;
+ interrupts =3D <0xa 0x4 0xb 0x4>; /* cascade */
+ interrupt-parent =3D <&UIC0>;
+ };
+
+ UIC3: interrupt-controller3 {
+ compatible =3D "ibm,uic-460sx","ibm,uic";
+ interrupt-controller;
+ cell-index =3D <3>;
+ dcr-reg =3D <0x0f0 0x009>;
+ #address-cells =3D <0>;
+ #size-cells =3D <0>;
+ #interrupt-cells =3D <2>;
+ interrupts =3D <0x10 0x4 0x11 0x4>; /* cascade */
+ interrupt-parent =3D <&UIC0>;
+ };
+
+ SDR0: sdr {
+ compatible =3D "ibm,sdr-460sx";
+ dcr-reg =3D <0x00e 0x002>;
+ };
+
+ CPR0: cpr {
+ compatible =3D "ibm,cpr-460sx";
+ dcr-reg =3D <0x00c 0x002>;
+ };
+
+ plb {
+ compatible =3D "ibm,plb-460sx", "ibm,plb4";
+ #address-cells =3D <2>;
+ #size-cells =3D <1>;
+ ranges;
+ clock-frequency =3D <0>; /* Filled in by U-Boot */
+
+ SDRAM0: sdram {
+ compatible =3D "ibm,sdram-460sx",
"ibm,sdram-405gp";
+ dcr-reg =3D <0x010 0x002>;
+ };
+
+ MAL0: mcmal {
+ compatible =3D "ibm,mcmal-460sx", "ibm,mcmal2";
+ dcr-reg =3D <0x180 0x62>;
+ num-tx-chans =3D <4>;
+ num-rx-chans =3D <32>;
+ #address-cells =3D <1>;
+ #size-cells =3D <1>;
+ interrupt-parent =3D <&UIC1>;
+ interrupts =3D < /*TXEOB*/ 0x6 0x4
+ /*RXEOB*/ 0x7 0x4
+ /*SERR*/ 0x1 0x4 + /*TXDE*/ 0x2 0x4 + /*RXDE*/ 0x3 0x4
+ /*COAL TX0*/ 0x18 0x2
+ /*COAL TX1*/ 0x19 0x2
+ /*COAL TX2*/ 0x1a 0x2
+ /*COAL TX3*/ 0x1b 0x2
+ /*COAL RX0*/ 0x1c 0x2
+ /*COAL RX1*/ 0x1d 0x2
+ /*COAL RX2*/ 0x1e 0x2
+ /*COAL RX3*/ 0x1f 0x2>;
+ };
+
+ POB0: opb {
+ compatible =3D "ibm,opb-460sx", "ibm,opb";
+ #address-cells =3D <1>;
+ #size-cells =3D <1>;
+ ranges =3D <0xb0000000 0x00000004 0xb00000000x50000000>;
+ clock-frequency =3D <0>; /* Filled in by U-Boot */
+
+ EBC0: ebc {
+ compatible =3D "ibm,ebc-460sx", "ibm,ebc";
+ dcr-reg =3D <0x012 0x002>;
+ #address-cells =3D <2>;
+ #size-cells =3D <1>;
+ clock-frequency =3D <0>; /* Filled in by
U-Boot */
+ /* ranges property is supplied by U-Boot
*/
+ interrupts =3D <0x6 0x4>;
+ interrupt-parent =3D <&UIC1>;
+
+ nor_flash@0,0 {
+ compatible =3D "amd,s29gl512n",
"cfi-flash";
+ bank-width =3D <2>;
+ reg =3D <0x0000000 0x000000000x04000000>;
+ #address-cells =3D <1>;
+ #size-cells =3D <1>;
+ partition@0 {
+ label =3D "kernel";
+ reg =3D <0x000000000x001e0000>;
+ };
+ partition@1e0000 {
+ label =3D "dtb";
+ reg =3D <0x001e00000x00020000>;
+ };
+ partition@200000 {
+ label =3D "ramdisk";
+ reg =3D <0x002000000x01400000>;
+ };
+ partition@1600000 {
+ label =3D "jffs2";
+ reg =3D <0x016000000x00400000>;
+ };
+ partition@1a00000 {
+ label =3D "user";
+ reg =3D <0x01a000000x02560000>;
+ };
+ partition@3f60000 {
+ label =3D "env";
+ reg =3D <0x03f600000x00040000>;
+ };
+ partition@3fa0000 {
+ label =3D "u-boot";
+ reg =3D <0x03fa00000x00060000>;
+ };
+ };
+ };
+
+ UART0: serial@ef600200 {
+ device_type =3D "serial";
+ compatible =3D "ns16550";
+ reg =3D <0xef600200 0x00000008>;
+ virtual-reg =3D <0xef600200>;
+ clock-frequency =3D <0>; /* Filled in by
U-Boot */
+ current-speed =3D <0>; /* Filled in by
U-Boot */
+ interrupt-parent =3D <&UIC0>;
+ interrupts =3D <0x0 0x4>;
+ };
+
+ RGMII0: emac-rgmii@ef600900 {
+ compatible =3D "ibm,rgmii-460sx",
"ibm,rgmii";
+ reg =3D <0xef600900 0x00000008>;
+ };
+
+ EMAC0: ethernet@ef600a00 {
+ device_type =3D "network";
+ compatible =3D "ibm,emac-460sx",
"ibm,emac4";
+ interrupt-parent =3D <&EMAC0>;
+ interrupts =3D <0x0 0x1>;
+ #interrupt-cells =3D <1>;
+ #address-cells =3D <0>;
+ #size-cells =3D <0>;
+ interrupt-map =3D </*Status*/ 0x0 &UIC00x13 0x4
+ /*Wake*/ 0x1 &UIC20x1d 0x4>;
+ reg =3D <0xef600a00 0x00000070>;
+ local-mac-address =3D [000000000000]; /*
Filled in by U-Boot */
+ mal-device =3D <&MAL0>;
+ mal-tx-channel =3D <0>;
+ mal-rx-channel =3D <0>;
+ cell-index =3D <0>;
+ max-frame-size =3D <9000>;
+ rx-fifo-size =3D <4096>;
+ tx-fifo-size =3D <2048>;
+ phy-mode =3D "rgmii";
+ phy-map =3D <0x00000000>;
+ rgmii-device =3D <&RGMII0>;
+ rgmii-channel =3D <0>;
+ has-inverted-stacr-oc;
+ has-new-stacr-staopc;
+ };
+
+ };
+
+ };
+ chosen {
+ linux,stdout-path =3D "/plb/opb/serial@ef600200";
+ };
+
+};
(quoted diff) +0 -0
b/arch/powerpc/configs/44x/redwood_defconfig
new file mode 100644
index 0000000..1a3f8c9
arch/powerpc/configs/44x/redwood_defconfig new file +1174 -0
1,174 lines not on this page · raw message
(quoted diff) +0 -0
b/arch/powerpc/kernel/cpu_setup_44x.S
index 10b4ab1..7d606f8 100644
arch/powerpc/kernel/cpu_setup_44x.S +1 -0
@@ -34,6 +34,7 @@ _GLOBAL(__setup_cpu_440grx) blr _GLOBAL(__setup_cpu_460ex) _GLOBAL(__setup_cpu_460gt) +_GLOBAL(__setup_cpu_460sx) mflr r4 bl __init_fpu_44x bl __fixup_440A_mcheck
(quoted diff) +0 -0
b/arch/powerpc/kernel/cputable.c
index 923f87a..5c40da4 100644
arch/powerpc/kernel/cputable.c +0 -0
@@ -43,6 +43,7 @@ extern void __setup_cpu_440spe(unsigned long offset,=20
struct cpu_spec* spec);
extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec*=20
spec);
extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec*=20
spec);
extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec*=20
spec);
+extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec=20 *spec);
extern void __setup_cpu_603(unsigned long offset, struct cpu_spec*
spec);
extern void __setup_cpu_604(unsigned long offset, struct cpu_spec*
spec);
extern void __setup_cpu_750(unsigned long offset, struct cpu_spec*
spec);
@@ -1634,6 +1635,18 @@ static struct cpu_spec __initdata cpu_specs[] =3D = {
.machine_check =3D machine_check_440A,
.platform =3D "ppc440",
},
+ { /* 460SX */
+ .pvr_mask =3D 0xffffff00,
+ .pvr_value =3D 0x13541800,
+ .cpu_name =3D "460SX",
+ .cpu_features =3D CPU_FTRS_44X,
+ .cpu_user_features =3D COMMON_USER_BOOKE,
+ .icache_bsize =3D 32,
+ .dcache_bsize =3D 32,
+ .cpu_setup =3D __setup_cpu_460sx,
+ .machine_check =3D machine_check_440A,
+ .platform =3D "ppc440",
+ },
{ /* default match */
.pvr_mask =3D 0x00000000,
.pvr_value =3D 0x00000000,
(quoted diff) +0 -0
b/arch/powerpc/platforms/44x/Kconfig
index 3496bc0..bf5c7ff 100644
arch/powerpc/platforms/44x/Kconfig +0 -0
@@ -118,6 +118,17 @@ config GLACIER help This option enables support for the AMCC PPC460GT evaluation
board.
+config REDWOOD
+ bool "Redwood"
+ depends on 44x
+ default n
+ select PPC44x_SIMPLE
+ select 460SX
+ select PCI
+ select PPC4xx_PCI_EXPRESS
+ help
+ This option enables support for the AMCC PPC460SX Redwood
board.
+
config YOSEMITE
bool "Yosemite"
depends on 44x
@@ -220,6 +231,14 @@ config 460EX
select IBM_NEW_EMAC_EMAC4
select IBM_NEW_EMAC_TAH
+config 460SX
+ bool
+ select PPC_FPU
+ select IBM_NEW_EMAC_EMAC4
+ select IBM_NEW_EMAC_RGMII
+ select IBM_NEW_EMAC_ZMII
+ select IBM_NEW_EMAC_TAH
+
# 44x errata/workaround config symbols, selected by the CPU models
above
config IBM440EP_ERR42
bool
(quoted diff) +0 -0
b/arch/powerpc/platforms/44x/ppc44x_simple.c
index 76fdc51..5bcd441 100644
arch/powerpc/platforms/44x/ppc44x_simple.c +1 -0
@@ -57,6 +57,7 @@ static char *board[] __initdata =3D {"ibm,ebony" ,"amcc,katmai" ,"amcc,rainier" , +"amcc,redwood" ,"amcc,sequoia" ,"amcc,taishan" ,"amcc,yosemite"
--=20
1.5.5
--------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is=20
for the sole use of the intended recipient(s) and contains information=20 that is confidential and proprietary to Applied Micro Circuits Corporation=20
or its subsidiaries. It is to be used solely for the purpose of furthering=20
the parties' business relationship. All unauthorized review, use,=20 disclosure or distribution is prohibited. If you are not the intended=20 recipient, please contact the sender by reply e-mail and destroy all=20 copies of the original message.
------------------------------
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
End of Linuxppc-dev Digest, Vol 53, Issue 168
*********************************************