ibm_emac driver updates
PATCH 1/1 ibm_emac driver updates
Optimizes transmit windows for improved performance and to prevent TX underruns. Fixes driver registration error handling. Fixes ZMII and RGMII thinkos. Fixes for MDIO handling issues from Ralph Siemsen. Please apply.
Signed-off-by Matt Porter <[email protected]>
===== drivers/net/ibm_emac/ibm_emac.h 1.1 vs edited =====
drivers/net/ibm_emac/ibm_emac.h +16 -16
@@ -228,6 +228,21 @@ (desc & EMAC_BAD_RX_PACKET)#endif +/* SoC implementation specific EMAC register defaults */ +#if defined(CONFIG_440GP ) +#define EMAC_RWMR_DEFAULT 0x80009000 +#define EMAC_TMR0_DEFAULT 0x00000000 +#define EMAC_TMR1_DEFAULT 0xf8640000 +#elif defined(CONFIG_440GX ) +#define EMAC_RWMR_DEFAULT 0x1000a200 +#define EMAC_TMR0_DEFAULT EMAC_TMR0_TFAE_2_32 +#define EMAC_TMR1_DEFAULT 0xa00f0000 +#else +#define EMAC_RWMR_DEFAULT 0x0f002000 +#define EMAC_TMR0_DEFAULT 0x00000000 +#define EMAC_TMR1_DEFAULT 0x380f0000 +#endif /* CONFIG_440GP */ +/* Revision specific EMAC register defaults */ #ifdef CONFIG_IBM_EMAC4 #define EMAC_M1_DEFAULT (EMAC_M1_BASE | \
@@ -236,7 +251,7 @@#define EMAC_RMR_DEFAULT (EMAC_RMR_BASE | \ EMAC_RMR_RFAF_128_2048)#define EMAC_TMR0_XMIT (EMAC_TMR0_GNP0 | \ - EMAC_TMR0_TFAE_128_2048) + EMAC_TMR0_DEFAULT)#define EMAC_TRTR_DEFAULT EMAC_TRTR_1024#else /* !CONFIG_IBM_EMAC4 */ #define EMAC_M1_DEFAULT EMAC_M1_BASE
@@ -244,20 +259,5 @@#define EMAC_TMR0_XMIT EMAC_TMR0_GNP0#define EMAC_TRTR_DEFAULT EMAC_TRTR_1600#endif /* CONFIG_IBM_EMAC4 */ - -/* SoC implementation specific EMAC register defaults */ -#if defined(CONFIG_440GP ) -#define EMAC_RWMR_DEFAULT 0x80009000 -#define EMAC_TMR0_DEFAULT 0x00000000 -#define EMAC_TMR1_DEFAULT 0xf8640000 -#elif defined(CONFIG_440GX ) -#define EMAC_RWMR_DEFAULT 0x1000a200 -#define EMAC_TMR0_DEFAULT EMAC_TMR0_TFAE_128_2048 -#define EMAC_TMR1_DEFAULT 0x88810000 -#else -#define EMAC_RWMR_DEFAULT 0x0f002000 -#define EMAC_TMR0_DEFAULT 0x00000000 -#define EMAC_TMR1_DEFAULT 0x380f0000 -#endif /* CONFIG_440GP */ #endif
===== drivers/net/ibm_emac/ibm_emac_core.c 1.2 vs edited =====
drivers/net/ibm_emac/ibm_emac_core.c +47 -27
149 lines not on this page · raw message
===== drivers/net/ibm_emac/ibm_emac_core.h 1.1 vs edited =====
drivers/net/ibm_emac/ibm_emac_core.h +1 -1
@@ -67,7 +67,7 @@#define TX_TIMEOUT (2*HZ)/* MDIO latency delay */ -#define MDIO_DELAY 50 +#define MDIO_DELAY 250/* Power managment shift registers */ #define IBM_CPM_EMMII 0/* Shift value for MII */
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Jeff Garzik
Appliedapplied
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/