linux-mips
[Top] [All Lists]

[PATCH] Ethernet for TX4927(37) platform

To: linux-mips@linux-mips.org
Subject: [PATCH] Ethernet for TX4927(37) platform
From: "Vladimir A. Barinov" <vbarinov@ru.mvista.com>
Date: Wed, 14 Sep 2005 16:55:31 +0400
Cc: Ralf Baechle <ralf@linux-mips.org>
In-reply-to: <17191.61757.80884.8289@mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050913124544.GC3224@linux-mips.org> <20050913133126.GO23161@lug-owl.de> <20050913152038.GE3224@linux-mips.org> <17191.61757.80884.8289@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Hello All!

This as a patch to add ethernet support for TX4927 platform.
Does it makes sence to push it in?

Regards,
Vladimir

 Signed-off-by: Vladimir Barinov <vbarinov@ru.mvista.com>
 Description:
        Ethernet support for TX4927/37 platform in 2.6.
                                                                                
                                                                             
Index: linux-2.6.10/drivers/net/ne.c
===================================================================
--- linux-2.6.10.orig/drivers/net/ne.c
+++ linux-2.6.10/drivers/net/ne.c
@@ -54,7 +54,9 @@ static const char version2[] =
 #include <asm/system.h>
 #include <asm/io.h>
 
-#if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938)
+#if defined(CONFIG_TOSHIBA_RBTX4927)
+#include <asm/tx4927/toshiba_rbtx4927.h>
+#elif defined(CONFIG_TOSHIBA_RBTX4938)
 #include <asm/tx4938/rbtx4938.h>
 #endif
 
@@ -237,6 +239,10 @@ struct net_device * __init ne_probe(int 
        dev->base_addr = 0x07f20280;
        dev->irq = RBTX4938_RTL_8019_IRQ;
 #endif
+#ifdef CONFIG_TOSHIBA_RBTX4927
+       dev->base_addr = RBTX4927_RTL_8019_BASE;
+       dev->irq = RBTX4927_RTL_8019_IRQ;
+#endif
        err = do_ne_probe(dev);
        if (err)
                goto out;
<Prev in Thread] Current Thread [Next in Thread>