Received: with ECARTIS (v1.0.0; list netdev); Mon, 31 Jan 2005 16:11:41 -0800 (PST) Received: from fed1rmmtao05.cox.net (fed1rmmtao05.cox.net [68.230.241.34]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j110AFTl012371 for ; Mon, 31 Jan 2005 16:10:15 -0800 Received: from liberty.homelinux.org ([68.2.41.86]) by fed1rmmtao05.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050201001008.VGOZ2734.fed1rmmtao05.cox.net@liberty.homelinux.org>; Mon, 31 Jan 2005 19:10:08 -0500 Received: (from mmporter@localhost) by liberty.homelinux.org (8.9.3/8.9.3/Debian 8.9.3-21) id RAA27529; Mon, 31 Jan 2005 17:10:09 -0700 Date: Mon, 31 Jan 2005 17:10:09 -0700 From: Matt Porter To: akpm@osdl.org, jgarzik@pobox.com Cc: netdev@oss.sgi.com, linuxppc-embedded@ozlabs.org Subject: [PATCH][NET] Add PPC440SP support to IBM EMAC driver Message-ID: <20050131171009.F25809@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 1135 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: mporter@kernel.crashing.org Precedence: bulk X-list: netdev Content-Length: 716 Lines: 19 Configures EMAC thresholds appropriately for the EMAC on the PPC440SP. Signed-off-by: Matt Porter ===== drivers/net/ibm_emac/ibm_emac.h 1.3 vs edited ===== --- 1.3/drivers/net/ibm_emac/ibm_emac.h 2004-08-24 12:19:41 -07:00 +++ edited/drivers/net/ibm_emac/ibm_emac.h 2005-01-31 17:08:40 -07:00 @@ -237,6 +237,10 @@ #define EMAC_RWMR_DEFAULT 0x1000a200 #define EMAC_TMR0_DEFAULT EMAC_TMR0_TFAE_2_32 #define EMAC_TMR1_DEFAULT 0xa00f0000 +#elif defined(CONFIG_440SP) +#define EMAC_RWMR_DEFAULT 0x08002000 +#define EMAC_TMR0_DEFAULT EMAC_TMR0_TFAE_128_2048 +#define EMAC_TMR1_DEFAULT 0xf8200000 #else #define EMAC_RWMR_DEFAULT 0x0f002000 #define EMAC_TMR0_DEFAULT 0x00000000