1 diff -urN linux-2.6.19/arch/mips/Kconfig linux-2.6.19.new/arch/mips/Kconfig
2 --- linux-2.6.19/arch/mips/Kconfig 2006-11-29 22:57:37.000000000 +0100
3 +++ linux-2.6.19.new/arch/mips/Kconfig 2006-12-16 18:46:31.000000000 +0100
5 # Horrible source of confusion. Die, die, die ...
10 + # Common Firmware Environment
12 mainmenu "Linux/MIPS Kernel Configuration"
14 menu "Machine selection"
20 + bool "Support for Broadcom BCM963xx SoC"
21 + select SYS_SUPPORTS_32BIT_KERNEL
22 + select SYS_SUPPORTS_BIG_ENDIAN
23 + select SYS_HAS_CPU_MIPS32_R1
25 + select DMA_NONCOHERENT
29 + This is a fmaily of boards based on the Broadcom MIPS32
32 bool "4G Systems MTX-1 board"
33 select DMA_NONCOHERENT
34 diff -urN linux-2.6.19/arch/mips/Makefile linux-2.6.19.new/arch/mips/Makefile
35 --- linux-2.6.19/arch/mips/Makefile 2006-12-16 17:36:29.000000000 +0100
36 +++ linux-2.6.19.new/arch/mips/Makefile 2006-12-16 18:46:31.000000000 +0100
41 +# Broadcom BCM963xx SoC
43 +core-$(CONFIG_BCM963XX) += arch/mips/bcm963xx/
44 +cflags-$(CONFIG_BCM963XX) += -Iinclude/asm-mips/mach-bcm963xx
45 +load-$(CONFIG_BCM963XX) += 0xffffffff80010000
49 +# Common Firmware Environment
51 +core-$(CONFIG_CFE) += arch/mips/cfe/
54 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700.
56 core-$(CONFIG_MACH_JAZZ) += arch/mips/jazz/
57 diff -urN linux-2.6.19/arch/mips/kernel/cpu-probe.c linux-2.6.19.new/arch/mips/kernel/cpu-probe.c
58 --- linux-2.6.19/arch/mips/kernel/cpu-probe.c 2006-11-29 22:57:37.000000000 +0100
59 +++ linux-2.6.19.new/arch/mips/kernel/cpu-probe.c 2006-12-16 18:46:31.000000000 +0100
64 +static inline void cpu_probe_broadcom(struct cpuinfo_mips *c)
67 + switch (c->processor_id & 0xff00) {
68 + case PRID_IMP_BCM6338:
69 + c->cputype = CPU_BCM6338;
71 + case PRID_IMP_BCM6345:
72 + c->cputype = CPU_BCM6345;
74 + case PRID_IMP_BCM6348:
75 + c->cputype = CPU_BCM6348;
78 + c->cputype = CPU_UNKNOWN;
83 static inline void cpu_probe_mips(struct cpuinfo_mips *c)
87 case PRID_COMP_LEGACY:
90 + case PRID_COMP_BROADCOM:
91 + cpu_probe_broadcom(c);
96 diff -urN linux-2.6.19/arch/mips/kernel/proc.c linux-2.6.19.new/arch/mips/kernel/proc.c
97 --- linux-2.6.19/arch/mips/kernel/proc.c 2006-11-29 22:57:37.000000000 +0100
98 +++ linux-2.6.19.new/arch/mips/kernel/proc.c 2006-12-16 18:46:31.000000000 +0100
100 [CPU_VR4181A] = "NEC VR4181A",
101 [CPU_SR71000] = "Sandcraft SR71000",
102 [CPU_PR4450] = "Philips PR4450",
103 + [CPU_BCM6338] = "BCM6338",
104 + [CPU_BCM6345] = "BCM6345",
105 + [CPU_BCM6348] = "BCM6348",
109 diff -urN linux-2.6.19/arch/mips/mm/c-r4k.c linux-2.6.19.new/arch/mips/mm/c-r4k.c
110 --- linux-2.6.19/arch/mips/mm/c-r4k.c 2006-11-29 22:57:37.000000000 +0100
111 +++ linux-2.6.19.new/arch/mips/mm/c-r4k.c 2006-12-16 18:46:31.000000000 +0100
113 if (!(config & MIPS_CONF_M))
114 panic("Don't know how to probe P-caches on this cpu.");
116 + if (c->cputype == CPU_BCM6338 || c->cputype == CPU_BCM6345 || c->cputype == CPU_BCM6348)
118 + printk("bcm963xx: enabling icache and dcache...\n");
119 + /* Enable caches */
120 + write_c0_diag(read_c0_diag() | 0xC0000000);
124 * So we seem to be a MIPS32 or MIPS64 CPU
125 * So let's probe the I-cache ...
126 diff -urN linux-2.6.19/arch/mips/mm/tlbex.c linux-2.6.19.new/arch/mips/mm/tlbex.c
127 --- linux-2.6.19/arch/mips/mm/tlbex.c 2006-11-29 22:57:37.000000000 +0100
128 +++ linux-2.6.19.new/arch/mips/mm/tlbex.c 2006-12-16 18:46:31.000000000 +0100
139 diff -urN linux-2.6.19/arch/mips/pci/Makefile linux-2.6.19.new/arch/mips/pci/Makefile
140 --- linux-2.6.19/arch/mips/pci/Makefile 2006-11-29 22:57:37.000000000 +0100
141 +++ linux-2.6.19.new/arch/mips/pci/Makefile 2006-12-16 18:48:18.000000000 +0100
143 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o
144 obj-$(CONFIG_NEC_CMBVR4133) += fixup-vr4133.o
145 obj-$(CONFIG_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o
146 +obj-$(CONFIG_BCM963XX) += fixup-bcm96348.o pci-bcm96348.o ops-bcm96348.o
149 # These are still pretty much in the old state, watch, go blind.
150 diff -urN linux-2.6.19/drivers/serial/Makefile linux-2.6.19.new/drivers/serial/Makefile
151 --- linux-2.6.19/drivers/serial/Makefile 2006-11-29 22:57:37.000000000 +0100
152 +++ linux-2.6.19.new/drivers/serial/Makefile 2006-12-16 18:49:17.000000000 +0100
154 obj-$(CONFIG_SERIAL_SGI_IOC3) += ioc3_serial.o
155 obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o
156 obj-$(CONFIG_SERIAL_NETX) += netx-serial.o
157 +obj-$(CONFIG_BCM963XX) += bcm63xx_cons.o
158 diff -urN linux-2.6.19/include/asm-mips/bootinfo.h linux-2.6.19.new/include/asm-mips/bootinfo.h
159 --- linux-2.6.19/include/asm-mips/bootinfo.h 2006-11-29 22:57:37.000000000 +0100
160 +++ linux-2.6.19.new/include/asm-mips/bootinfo.h 2006-12-16 18:46:31.000000000 +0100
162 #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */
163 #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */
166 + * Valid machtype for group BRCM
168 +#define MACH_GROUP_BRCM 23 /* Broadcom boards */
169 +#define MACH_BCM96338 0
170 +#define MACH_BCM96345 1
171 +#define MACH_BCM96348 2
173 #define CL_SIZE COMMAND_LINE_SIZE
175 const char *get_system_type(void);
176 diff -urN linux-2.6.19/include/asm-mips/cpu.h linux-2.6.19.new/include/asm-mips/cpu.h
177 --- linux-2.6.19/include/asm-mips/cpu.h 2006-11-29 22:57:37.000000000 +0100
178 +++ linux-2.6.19.new/include/asm-mips/cpu.h 2006-12-16 18:46:31.000000000 +0100
181 #define PRID_IMP_SR71000 0x0400
183 +/* These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
186 +#define PRID_IMP_BCM6338 0x9000
187 +#define PRID_IMP_BCM6345 0x8000
188 +#define PRID_IMP_BCM6348 0x9100
191 * Definitions for 7:0 on legacy processors
196 #define CPU_R14000 64
198 +#define CPU_BCM6338 65
199 +#define CPU_BCM6345 66
200 +#define CPU_BCM6348 67
204 * ISA Level encodings
205 diff -urN linux-2.6.19/include/asm-mips/module.h linux-2.6.19.new/include/asm-mips/module.h
206 --- linux-2.6.19/include/asm-mips/module.h 2006-11-29 22:57:37.000000000 +0100
207 +++ linux-2.6.19.new/include/asm-mips/module.h 2006-12-16 19:03:22.000000000 +0100
209 #define MODULE_PROC_FAMILY "RM9000 "
210 #elif defined CONFIG_CPU_SB1
211 #define MODULE_PROC_FAMILY "SB1 "
212 +#elif defined CONFIG_CPU_BCM6338
213 +#define MODULE_PROC_FAMILY "BCM6338 "
214 +#elif defined CONFIG_CPU_BCM6345
215 +#define MODULE_PROC_FAMILY "BCM6345 "
216 +#elif defined CONFIG_CPU_BCM6348
217 +#define MODULE_PROC_FAMILY "BCM6348 "
219 #error MODULE_PROC_FAMILY undefined for your processor configuration