Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ne: Support for RBHMA4500 eval board.

Support for Toshiba's RBHMA4500 eval board for the TX4938.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

drivers/net/ne.c | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

authored by

Ralf Baechle and committed by
Jeff Garzik
9cc975e0 36156cdf

+15
+15
drivers/net/ne.c
··· 54 54 #include <asm/system.h> 55 55 #include <asm/io.h> 56 56 57 + #if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938) 58 + #include <asm/tx4938/rbtx4938.h> 59 + #endif 60 + 57 61 #include "8390.h" 58 62 59 63 #define DRV_NAME "ne" ··· 115 111 {"E-LAN100", "E-LAN200", {0x00, 0x00, 0x5d}}, /* Broken ne1000 clones */ 116 112 {"PCM-4823", "PCM-4823", {0x00, 0xc0, 0x6c}}, /* Broken Advantech MoBo */ 117 113 {"REALTEK", "RTL8019", {0x00, 0x00, 0xe8}}, /* no-name with Realtek chip */ 114 + #if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938) 115 + {"RBHMA4X00-RTL8019", "RBHMA4X00/RTL8019", {0x00, 0x60, 0x0a}}, /* Toshiba built-in */ 116 + #endif 118 117 {"LCS-8834", "LCS-8836", {0x04, 0x04, 0x37}}, /* ShinyNet (SET) */ 119 118 {NULL,} 120 119 }; ··· 233 226 sprintf(dev->name, "eth%d", unit); 234 227 netdev_boot_setup_check(dev); 235 228 229 + #ifdef CONFIG_TOSHIBA_RBTX4938 230 + dev->base_addr = 0x07f20280; 231 + dev->irq = RBTX4938_RTL_8019_IRQ; 232 + #endif 236 233 err = do_ne_probe(dev); 237 234 if (err) 238 235 goto out; ··· 517 506 ei_status.name = name; 518 507 ei_status.tx_start_page = start_page; 519 508 ei_status.stop_page = stop_page; 509 + #if defined(CONFIG_TOSHIBA_RBTX4927) || defined(CONFIG_TOSHIBA_RBTX4938) 510 + wordlength = 1; 511 + #endif 512 + 520 513 #ifdef CONFIG_PLAT_OAKS32R 521 514 ei_status.word16 = 0; 522 515 #else