mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
a1bf28950d
SVN-Revision: 13135
26 lines
702 B
Diff
26 lines
702 B
Diff
--- a/arch/powerpc/platforms/40x/kilauea.c
|
|
+++ b/arch/powerpc/platforms/40x/kilauea.c
|
|
@@ -21,6 +21,8 @@
|
|
#include <asm/uic.h>
|
|
#include <asm/pci-bridge.h>
|
|
#include <asm/ppc4xx.h>
|
|
+#include <asm/dcr.h>
|
|
+#include <asm/dcr-regs.h>
|
|
|
|
static __initdata struct of_device_id kilauea_of_bus[] = {
|
|
{ .compatible = "ibm,plb4", },
|
|
@@ -46,6 +48,13 @@ static int __init kilauea_probe(void)
|
|
|
|
ppc_pci_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;
|
|
}
|
|
|