linux-mips
[Top] [All Lists]

[PATCH] ne.c driver to support TX4927 board

To: linux-mips@linux-mips.org
Subject: [PATCH] ne.c driver to support TX4927 board
From: Manish Lachwani <mlachwani@prometheus.mvista.com>
Date: Thu, 11 Nov 2004 18:59:51 -0800
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
Hi Ralf

Attached patch implements changes to the ne.c driver to support
the TX4927 board. Please review 

Thanks
Manish Lachwani

Source: MontaVista Software, Inc. | http://www.mvista.com | Manish Lachwani 
<mlachwani@mvista.com>
Type: Defect Fix
Disposition: Submitted to Linux-MIPS
Description:
        Support for RBTX4927 in NS8390 ethernet driver in 2.6.10

Index: linux/drivers/net/ne.c
===================================================================
--- linux.orig/drivers/net/ne.c
+++ linux/drivers/net/ne.c
@@ -112,6 +112,7 @@
     {"PCM-4823", "PCM-4823", {0x00, 0xc0, 0x6c}}, /* Broken Advantech MoBo */
     {"REALTEK", "RTL8019", {0x00, 0x00, 0xe8}}, /* no-name with Realtek chip */
     {"LCS-8834", "LCS-8836", {0x04, 0x04, 0x37}}, /* ShinyNet (SET) */
+    {"RBHMA4X00-RTL8019", "RBHMA4X00/RTL8019", {0x00, 0x60, 0x0a}},  /* 
Toshiba built-in */
     {NULL,}
 };
 #endif
@@ -226,6 +227,10 @@
        sprintf(dev->name, "eth%d", unit);
        netdev_boot_setup_check(dev);
 
+#ifdef CONFIG_TOSHIBA_RBTX4927
+       dev->base_addr = 0x06020280;
+       dev->irq = 29;
+#endif
        err = do_ne_probe(dev);
        if (err)
                goto out;
@@ -511,6 +516,11 @@
        ei_status.name = name;
        ei_status.tx_start_page = start_page;
        ei_status.stop_page = stop_page;
+
+#ifdef CONFIG_TOSHIBA_RBTX4927 
+       wordlength = 1;
+#endif
+
 #ifdef CONFIG_PLAT_OAKS32R
        ei_status.word16 = 0;
 #else
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] ne.c driver to support TX4927 board, Manish Lachwani <=