Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Geoff Levand <geoffrey.levand@am.sony.com>
To: ralf@linux-mips.org, anemo@mba.ocn.ne.jp
Cc: linux-mips@linux-mips.org
Subject: [PATCH 2/4] fix rbtx4927 ne2000
Date: Tue, 04 Apr 2006 17:41:11 -0700	[thread overview]
Message-ID: <44331227.8020903@am.sony.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2 bytes --]




[-- Attachment #2: fix-rbtx4927-ne2000.patch --]
[-- Type: text/x-patch, Size: 1862 bytes --]

fix-rbtx4927-ne2000.patch:

This patch fixes the ne2000 driver to work on rbtx4927 and rbtx4937
boards.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>


Index: linux-2.6.16.1/drivers/net/ne.c
===================================================================
--- linux-2.6.16.1.orig/drivers/net/ne.c	2006-03-23 10:55:43.000000000 -0800
+++ linux-2.6.16.1/drivers/net/ne.c	2006-03-23 14:04:59.000000000 -0800
@@ -53,9 +53,17 @@
 
 #include <asm/system.h>
 #include <asm/io.h>
-
-#if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938)
-#include <asm/tx4938/rbtx4938.h>
+#if defined(CONFIG_TOSHIBA_RBTX4938)
+# include <asm/tx4938/rbtx4938.h>
+# define RBTX49_BASE 0x07f20280
+# define RBTX49_IRQ RBTX4938_RTL_8019_IRQ
+#elif defined(CONFIG_TOSHIBA_RBTX4927)
+# include <asm/tx4927/toshiba_rbtx4927.h>
+# define RBTX49_BASE RBTX4927_RTL_8019_BASE
+# define RBTX49_IRQ RBTX4927_RTL_8019_IRQ
+#else
+# define RBTX49_BASE 0
+# define RBTX49_IRQ 0
 #endif
 
 #include "8390.h"
@@ -115,9 +123,7 @@
     {"E-LAN100", "E-LAN200", {0x00, 0x00, 0x5d}}, /* Broken ne1000 clones */
     {"PCM-4823", "PCM-4823", {0x00, 0xc0, 0x6c}}, /* Broken Advantech MoBo */
     {"REALTEK", "RTL8019", {0x00, 0x00, 0xe8}}, /* no-name with Realtek chip */
-#if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938)
     {"RBHMA4X00-RTL8019", "RBHMA4X00/RTL8019", {0x00, 0x60, 0x0a}},  /* Toshiba built-in */
-#endif
     {"LCS-8834", "LCS-8836", {0x04, 0x04, 0x37}}, /* ShinyNet (SET) */
     {NULL,}
 };
@@ -233,10 +239,11 @@
 	sprintf(dev->name, "eth%d", unit);
 	netdev_boot_setup_check(dev);
 
-#ifdef CONFIG_TOSHIBA_RBTX4938
-	dev->base_addr = 0x07f20280;
-	dev->irq = RBTX4938_RTL_8019_IRQ;
-#endif
+	if (RBTX49_BASE) {
+		dev->base_addr = RBTX49_BASE;
+		dev->irq = RBTX49_IRQ;
+	}
+	
 	err = do_ne_probe(dev);
 	if (err)
 		goto out;



                 reply	other threads:[~2006-04-05  0:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44331227.8020903@am.sony.com \
    --to=geoffrey.levand@am.sony.com \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox