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

CS89x0: Add networking support for QQ2440

QQ2440 is only another non-ISA board using CS89x0. This patch adds the
minimum bits required to make QQ2440 work with CS89x0.

Signed-off-by: Domenico Andreoli <cavokz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Domenico Andreoli and committed by
David S. Miller
2ce8c07d d181a617

+13 -2
+2 -2
drivers/net/Kconfig
··· 1498 1498 config CS89x0 1499 1499 tristate "CS89x0 support" 1500 1500 depends on NET_ETHERNET && (ISA || EISA || MACH_IXDP2351 \ 1501 - || ARCH_IXDP2X01 || MACH_MX31ADS) 1501 + || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440) 1502 1502 ---help--- 1503 1503 Support for CS89x0 chipset based Ethernet cards. If you have a 1504 1504 network (Ethernet) card of this type, say Y and read the ··· 1512 1512 config CS89x0_NONISA_IRQ 1513 1513 def_bool y 1514 1514 depends on CS89x0 != n 1515 - depends on MACH_IXDP2351 || ARCH_IXDP2X01 || MACH_MX31ADS 1515 + depends on MACH_IXDP2351 || ARCH_IXDP2X01 || MACH_MX31ADS || MACH_QQ2440 1516 1516 1517 1517 config TC35815 1518 1518 tristate "TOSHIBA TC35815 Ethernet support"
+11
drivers/net/cs89x0.c
··· 95 95 Dmitry Pervushin : dpervushin@ru.mvista.com 96 96 : PNX010X platform support 97 97 98 + Domenico Andreoli : cavokz@gmail.com 99 + : QQ2440 platform support 100 + 98 101 */ 99 102 100 103 /* Always include 'config.h' first in case the user wants to turn on ··· 179 176 #elif defined(CONFIG_ARCH_IXDP2X01) 180 177 static unsigned int netcard_portlist[] __used __initdata = {IXDP2X01_CS8900_VIRT_BASE, 0}; 181 178 static unsigned int cs8900_irq_map[] = {IRQ_IXDP2X01_CS8900, 0, 0, 0}; 179 + #elif defined(CONFIG_MACH_QQ2440) 180 + #include <mach/qq2440.h> 181 + static unsigned int netcard_portlist[] __used __initdata = { QQ2440_CS8900_VIRT_BASE + 0x300, 0 }; 182 + static unsigned int cs8900_irq_map[] = { QQ2440_CS8900_IRQ, 0, 0, 0 }; 182 183 #elif defined(CONFIG_MACH_MX31ADS) 183 184 #include <mach/board-mx31ads.h> 184 185 static unsigned int netcard_portlist[] __used __initdata = { ··· 527 520 } 528 521 #endif 529 522 lp->force = g_cs89x0_media__force; 523 + #endif 524 + 525 + #if defined(CONFIG_MACH_QQ2440) 526 + lp->force |= FORCE_RJ45 | FORCE_FULL; 530 527 #endif 531 528 } 532 529