1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

mpc83xx: add kernel 2.6.35 preliminary support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21896 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acoul
2010-06-24 15:07:36 +00:00
parent 5803cbb537
commit fb2c10f9dc
30 changed files with 4950 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -908,6 +908,14 @@ static int gfar_probe(struct of_device *
udelay(2);
tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW);
+ /*
+ * Do not enable flow control on chips earlier than rev 1.1,
+ * because of the eTSEC27 erratum
+ */
+ tempval = 0;
+ if (mfspr(SPRN_SVR) & 0xffff >= 0x0011)
+ tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW);
+
gfar_write(&regs->maccfg1, tempval);
/* Initialize MACCFG2. */