linux-2.6.26: add support for mpc8313e-rdb's eth0
authorJeremy Laine <jeremy.laine@m4x.org>
Wed, 10 Sep 2008 18:50:13 +0000 (18:50 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Wed, 10 Sep 2008 18:50:13 +0000 (18:50 +0000)
packages/linux/linux-2.6.26/mpc8313e-rdb/defconfig
packages/linux/linux-2.6.26/mpc8313e-rdb/mpc8313e-rdb-eth-fixed.patch [new file with mode: 0644]
packages/linux/linux_2.6.26.bb

index e71d3b6..76634da 100644 (file)
@@ -854,17 +854,17 @@ CONFIG_PHYLIB=y
 #
 # MII PHY device drivers
 #
-# CONFIG_MARVELL_PHY is not set
+CONFIG_MARVELL_PHY=y
 # CONFIG_DAVICOM_PHY is not set
 # CONFIG_QSEMI_PHY is not set
 # CONFIG_LXT_PHY is not set
-CONFIG_CICADA_PHY=y
+# CONFIG_CICADA_PHY is not set
 # CONFIG_VITESSE_PHY is not set
 # CONFIG_SMSC_PHY is not set
 # CONFIG_BROADCOM_PHY is not set
 # CONFIG_ICPLUS_PHY is not set
 # CONFIG_REALTEK_PHY is not set
-# CONFIG_FIXED_PHY is not set
+CONFIG_FIXED_PHY=y
 # CONFIG_MDIO_BITBANG is not set
 # CONFIG_NET_ETHERNET is not set
 CONFIG_NETDEV_1000=y
diff --git a/packages/linux/linux-2.6.26/mpc8313e-rdb/mpc8313e-rdb-eth-fixed.patch b/packages/linux/linux-2.6.26/mpc8313e-rdb/mpc8313e-rdb-eth-fixed.patch
new file mode 100644 (file)
index 0000000..eab9189
--- /dev/null
@@ -0,0 +1,25 @@
+diff -urN linux-2.6.26.orig/arch/powerpc/boot/dts/mpc8313erdb.dts linux-2.6.26/arch/powerpc/boot/dts/mpc8313erdb.dts
+--- linux-2.6.26.orig/arch/powerpc/boot/dts/mpc8313erdb.dts    2008-07-13 23:51:29.000000000 +0200
++++ linux-2.6.26/arch/powerpc/boot/dts/mpc8313erdb.dts 2008-09-10 07:57:42.000000000 +0200
+@@ -160,12 +160,6 @@
+                       #size-cells = <0>;
+                       compatible = "fsl,gianfar-mdio";
+                       reg = <0x24520 0x20>;
+-                      phy1: ethernet-phy@1 {
+-                              interrupt-parent = <&ipic>;
+-                              interrupts = <19 0x8>;
+-                              reg = <0x1>;
+-                              device_type = "ethernet-phy";
+-                      };
+                       phy4: ethernet-phy@4 {
+                               interrupt-parent = <&ipic>;
+                               interrupts = <20 0x8>;
+@@ -183,7 +177,7 @@
+                       local-mac-address = [ 00 00 00 00 00 00 ];
+                       interrupts = <37 0x8 36 0x8 35 0x8>;
+                       interrupt-parent = <&ipic>;
+-                      phy-handle = < &phy1 >;
++                      fixed-link = <1 1 1000 0 0>;
+               };
+               enet1: ethernet@25000 {
index 9e33257..5b6cd14 100644 (file)
@@ -1,6 +1,6 @@
 require linux.inc
 
-PR = "r0"
+PR = "r1"
 
 # Mark archs/machines that this kernel supports
 DEFAULT_PREFERENCE = "-1"
@@ -13,6 +13,7 @@ SRC_URI_append_mpc8313e-rdb = "\
        file://mpc831x-nand.patch;patch=1 \
        file://mpc8313e-rdb-leds.patch;patch=1 \
        file://mpc8313e-rdb-cardbus.patch;patch=1 \
+       file://mpc8313e-rdb-eth-fixed.patch;patch=1 \
        "
 
 # see http://bugzilla.kernel.org/show_bug.cgi?id=11143