1 diff -Nur linux-2.6.17/arch/mips/Kconfig linux-2.6.17-owrt/arch/mips/Kconfig
2 --- linux-2.6.17/arch/mips/Kconfig 2006-06-18 03:49:35.000000000 +0200
3 +++ linux-2.6.17-owrt/arch/mips/Kconfig 2006-06-18 12:44:28.000000000 +0200
5 either a NEC Vr5432 or QED RM5231. Say Y here if you wish to build
6 a kernel for this platform.
9 + bool "Support for the ARUBA product line"
10 + select DMA_NONCOHERENT
11 + select CPU_HAS_PREFETCH
13 + select SWAP_IO_SPACE
14 + select SYS_SUPPORTS_32BIT_KERNEL
15 + select SYS_HAS_CPU_MIPS32_R1
16 + select SYS_SUPPORTS_BIG_ENDIAN
20 bool "Jazz family of machines"
22 diff -Nur linux-2.6.17/arch/mips/Makefile linux-2.6.17-owrt/arch/mips/Makefile
23 --- linux-2.6.17/arch/mips/Makefile 2006-06-18 03:49:35.000000000 +0200
24 +++ linux-2.6.17-owrt/arch/mips/Makefile 2006-06-18 12:44:28.000000000 +0200
32 +core-$(CONFIG_MACH_ARUBA) += arch/mips/aruba/
33 +cflags-$(CONFIG_MACH_ARUBA) += -Iinclude/asm-mips/aruba
34 +load-$(CONFIG_MACH_ARUBA) += 0x80100000
37 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700.
39 core-$(CONFIG_MACH_JAZZ) += arch/mips/jazz/
40 diff -Nur linux-2.6.17/drivers/net/Kconfig linux-2.6.17-owrt/drivers/net/Kconfig
41 --- linux-2.6.17/drivers/net/Kconfig 2006-06-18 03:49:35.000000000 +0200
42 +++ linux-2.6.17-owrt/drivers/net/Kconfig 2006-06-18 12:44:28.000000000 +0200
45 source "drivers/net/arm/Kconfig"
47 +config IDT_RC32434_ETH
48 + tristate "IDT RC32434 Local Ethernet support"
49 + depends on NET_ETHERNET
51 + IDT RC32434 has one local ethernet port. Say Y here to enable it.
52 + To compile this driver as a module, choose M here.
55 tristate "MACE (Power Mac ethernet) support"
56 depends on NET_ETHERNET && PPC_PMAC && PPC32
57 diff -Nur linux-2.6.17/drivers/net/Makefile linux-2.6.17-owrt/drivers/net/Makefile
58 --- linux-2.6.17/drivers/net/Makefile 2006-06-18 03:49:35.000000000 +0200
59 +++ linux-2.6.17-owrt/drivers/net/Makefile 2006-06-18 12:44:28.000000000 +0200
62 obj-$(CONFIG_OAKNET) += oaknet.o 8390.o
64 +obj-$(CONFIG_IDT_RC32434_ETH) += rc32434_eth.o
65 obj-$(CONFIG_DGRS) += dgrs.o
66 obj-$(CONFIG_VORTEX) += 3c59x.o
67 obj-$(CONFIG_TYPHOON) += typhoon.o
68 diff -Nur linux-2.6.17/drivers/net/natsemi.c linux-2.6.17-owrt/drivers/net/natsemi.c
69 --- linux-2.6.17/drivers/net/natsemi.c 2006-06-18 03:49:35.000000000 +0200
70 +++ linux-2.6.17-owrt/drivers/net/natsemi.c 2006-06-18 12:44:28.000000000 +0200
72 static int netdev_get_eeprom(struct net_device *dev, u8 *buf);
73 static struct ethtool_ops ethtool_ops;
75 +#ifdef CONFIG_MACH_ARUBA
77 +#include <linux/ctype.h>
80 +#define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
83 +static int parse_mac_addr(struct net_device *dev, char* macstr)
86 + unsigned char result, value;
88 + for (i=0; i<6; i++) {
90 + if (i != 5 && *(macstr+2) != ':') {
91 + ERR("invalid mac address format: %d %c\n",
95 + for (j=0; j<2; j++) {
96 + if (isxdigit(*macstr) && (value = isdigit(*macstr) ? *macstr-'0' :
97 + toupper(*macstr)-'A'+10) < 16) {
98 + result = result*16 + value;
102 + ERR("invalid mac address "
103 + "character: %c\n", *macstr);
109 + dev->dev_addr[i] = result;
112 + dev->dev_addr[5]++;
118 static inline void __iomem *ns_ioaddr(struct net_device *dev)
120 return (void __iomem *) dev->base_addr;
125 +#ifndef CONFIG_MACH_ARUBA
126 /* Work around the dropped serial bit. */
127 prev_eedata = eeprom_read(ioaddr, 6);
128 for (i = 0; i < 3; i++) {
130 dev->dev_addr[i*2+1] = eedata >> 7;
131 prev_eedata = eedata;
136 + unsigned char def_mac[6] = {00, 0x0b, 0x86, 0xba, 0xdb, 0xad};
137 + extern char *getenv(char *e);
138 + memset(mac, 0, 32);
139 + memcpy(mac, getenv("ethaddr"), 17);
140 + if (parse_mac_addr(dev, mac)){
141 + printk("%s: MAC address not found\n", __func__);
142 + memcpy(dev->dev_addr, def_mac, 6);
147 dev->base_addr = (unsigned long __force) ioaddr;
149 diff -Nur linux-2.6.17/include/asm-mips/bootinfo.h linux-2.6.17-owrt/include/asm-mips/bootinfo.h
150 --- linux-2.6.17/include/asm-mips/bootinfo.h 2006-06-18 03:49:35.000000000 +0200
151 +++ linux-2.6.17-owrt/include/asm-mips/bootinfo.h 2006-06-18 12:44:28.000000000 +0200
153 #define MACH_GROUP_TITAN 22 /* PMC-Sierra Titan */
154 #define MACH_TITAN_YOSEMITE 1 /* PMC-Sierra Yosemite */
158 + * Valid machtype for group ARUBA
160 +#define MACH_GROUP_ARUBA 23
161 +#define MACH_ARUBA_UNKNOWN 0
162 +#define MACH_ARUBA_AP60 1
163 +#define MACH_ARUBA_AP65 2
164 +#define MACH_ARUBA_AP70 3
165 +#define MACH_ARUBA_AP40 4
167 #define CL_SIZE COMMAND_LINE_SIZE
169 const char *get_system_type(void);
170 diff -Nur linux-2.6.17/include/asm-mips/cpu.h linux-2.6.17-owrt/include/asm-mips/cpu.h
171 --- linux-2.6.17/include/asm-mips/cpu.h 2006-06-18 03:49:35.000000000 +0200
172 +++ linux-2.6.17-owrt/include/asm-mips/cpu.h 2006-06-18 12:45:56.000000000 +0200
174 #define PRID_IMP_R14000 0x0f00
175 #define PRID_IMP_R8000 0x1000
176 #define PRID_IMP_PR4450 0x1200
177 +#define PRID_IMP_RC32334 0x1800
178 +#define PRID_IMP_RC32355 0x1900
179 +#define PRID_IMP_RC32365 0x1900
180 #define PRID_IMP_R4600 0x2000
181 #define PRID_IMP_R4700 0x2100
182 #define PRID_IMP_TX39 0x2200
186 #define CPU_R14000 64
188 +#define CPU_RC32300 65
192 * ISA Level encodings
193 diff -Nur linux-2.6.17/include/asm-mips/mach-generic/irq.h linux-2.6.17-owrt/include/asm-mips/mach-generic/irq.h
194 --- linux-2.6.17/include/asm-mips/mach-generic/irq.h 2006-06-18 03:49:35.000000000 +0200
195 +++ linux-2.6.17-owrt/include/asm-mips/mach-generic/irq.h 2006-06-18 12:44:28.000000000 +0200
197 #ifndef __ASM_MACH_GENERIC_IRQ_H
198 #define __ASM_MACH_GENERIC_IRQ_H
203 #endif /* __ASM_MACH_GENERIC_IRQ_H */
204 diff -Nur linux-2.6.17/include/linux/kernel.h linux-2.6.17-owrt/include/linux/kernel.h
205 --- linux-2.6.17/include/linux/kernel.h 2006-06-18 03:49:35.000000000 +0200
206 +++ linux-2.6.17-owrt/include/linux/kernel.h 2006-06-18 12:44:28.000000000 +0200
210 /* Force a compilation error if condition is true */
211 +extern void BUILD_BUG(void);
212 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
214 /* Trap pasters of __FUNCTION__ at compile-time */