From df7edc24b914fba29d912c68d07986c8715c4894 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 18 Jul 2009 15:13:40 +0000 Subject: [ppc40x] initial support for 2.6.30 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16901 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../002-disable_emac_loopback_mode.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 target/linux/ppc40x/patches-2.6.30/002-disable_emac_loopback_mode.patch (limited to 'target/linux/ppc40x/patches-2.6.30/002-disable_emac_loopback_mode.patch') diff --git a/target/linux/ppc40x/patches-2.6.30/002-disable_emac_loopback_mode.patch b/target/linux/ppc40x/patches-2.6.30/002-disable_emac_loopback_mode.patch new file mode 100644 index 000000000..a82a7a132 --- /dev/null +++ b/target/linux/ppc40x/patches-2.6.30/002-disable_emac_loopback_mode.patch @@ -0,0 +1,25 @@ +--- a/arch/powerpc/platforms/40x/kilauea.c ++++ b/arch/powerpc/platforms/40x/kilauea.c +@@ -21,6 +21,8 @@ + #include + #include + #include ++#include ++#include + + static __initdata struct of_device_id kilauea_of_bus[] = { + { .compatible = "ibm,plb4", }, +@@ -46,6 +48,13 @@ static int __init kilauea_probe(void) + + ppc_pci_set_flags(PPC_PCI_REASSIGN_ALL_RSRC); + ++ /* ++ * 405EX(r) has SDR0_MFR[E0CS/E1CS] set after reset. This selects ++ * the internal loopback mode. Clear these bits so that both EMACs ++ * don't use loopback mode as deafult. ++ */ ++ mtdcri(SDR0, SDR0_MFR, mfdcri(SDR0, SDR0_MFR) & ~0x0c000000); ++ + return 1; + } + -- cgit v1.2.3