1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
4 # Horrible source of confusion. Die, die, die ...
9 + # Common Firmware Environment
11 mainmenu "Linux/MIPS Kernel Configuration"
13 menu "Machine selection"
15 note that a kernel built with this option selected will not be
16 able to run on normal units.
19 + bool "Support for BCM947xx based boards"
20 + select DMA_NONCOHERENT
23 + select SYS_HAS_CPU_MIPS32_R1
24 + select SYS_SUPPORTS_32BIT_KERNEL
25 + select SYS_SUPPORTS_LITTLE_ENDIAN
28 + select SSB_DRIVER_PCICORE
29 + select SSB_PCICORE_HOSTMODE
33 + Support for BCM947xx based boards
37 select DMA_NONCOHERENT
38 --- a/arch/mips/kernel/cpu-probe.c
39 +++ b/arch/mips/kernel/cpu-probe.c
44 +static inline void cpu_probe_broadcom(struct cpuinfo_mips *c)
47 + switch (c->processor_id & 0xff00) {
48 + case PRID_IMP_BCM3302:
49 + c->cputype = CPU_BCM3302;
50 + c->isa_level = MIPS_CPU_ISA_M32R1;
51 + c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
52 + MIPS_CPU_4K_CACHE | MIPS_CPU_COUNTER;
54 + case PRID_IMP_BCM4710:
55 + c->cputype = CPU_BCM4710;
56 + c->isa_level = MIPS_CPU_ISA_M32R1;
57 + c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
58 + MIPS_CPU_4K_CACHE | MIPS_CPU_COUNTER;
61 + c->cputype = CPU_UNKNOWN;
66 __init void cpu_probe(void)
68 struct cpuinfo_mips *c = ¤t_cpu_data;
70 case PRID_COMP_SIBYTE:
73 + case PRID_COMP_BROADCOM:
74 + cpu_probe_broadcom(c);
76 case PRID_COMP_SANDCRAFT:
77 cpu_probe_sandcraft(c);
79 --- a/arch/mips/kernel/proc.c
80 +++ b/arch/mips/kernel/proc.c
82 [CPU_VR4181] = "NEC VR4181",
83 [CPU_VR4181A] = "NEC VR4181A",
84 [CPU_SR71000] = "Sandcraft SR71000",
85 + [CPU_BCM3302] = "Broadcom BCM3302",
86 + [CPU_BCM4710] = "Broadcom BCM4710",
87 [CPU_PR4450] = "Philips PR4450",
88 [CPU_LOONGSON2] = "ICT Loongson-2",
90 --- a/arch/mips/Makefile
91 +++ b/arch/mips/Makefile
93 load-$(CONFIG_SIBYTE_BIGSUR) := 0xffffffff80100000
96 +# Broadcom BCM47XX boards
98 +core-$(CONFIG_BCM947XX) += arch/mips/bcm947xx/
99 +cflags-$(CONFIG_BCM947XX) += -Iarch/mips/bcm947xx/include -Iinclude/asm-mips/mach-bcm947xx
100 +load-$(CONFIG_BCM947XX) := 0xffffffff80001000
103 +# Common Firmware Environment
105 +core-$(CONFIG_CFE) += arch/mips/cfe/
110 core-$(CONFIG_SNI_RM) += arch/mips/sni/
111 --- a/arch/mips/mm/tlbex.c
112 +++ b/arch/mips/mm/tlbex.c
122 --- a/drivers/Kconfig
123 +++ b/drivers/Kconfig
126 source "drivers/hwmon/Kconfig"
128 +source "drivers/ssb/Kconfig"
130 source "drivers/mfd/Kconfig"
132 source "drivers/media/Kconfig"
133 --- a/include/asm-mips/bootinfo.h
134 +++ b/include/asm-mips/bootinfo.h
136 #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */
137 #define MACH_WRPPMC 1
140 + * Valid machtype for group Broadcom
142 +#define MACH_GROUP_BRCM 23 /* Broadcom */
143 +#define MACH_BCM47XX 1 /* Broadcom BCM47xx */
145 #define CL_SIZE COMMAND_LINE_SIZE
147 const char *get_system_type(void);
148 --- a/include/asm-mips/cpu.h
149 +++ b/include/asm-mips/cpu.h
151 #define PRID_IMP_SR71000 0x0400
154 + * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
157 +#define PRID_IMP_BCM4710 0x4000
158 +#define PRID_IMP_BCM3302 0x9000
161 * Definitions for 7:0 on legacy processors
165 #define CPU_R14000 64
166 #define CPU_LOONGSON1 65
167 #define CPU_LOONGSON2 66
168 +#define CPU_BCM3302 67
169 +#define CPU_BCM4710 68
175 * ISA Level encodings
176 --- a/drivers/Makefile
177 +++ b/drivers/Makefile
179 obj-$(CONFIG_HID) += hid/
180 obj-$(CONFIG_PPC_PS3) += ps3/
181 obj-$(CONFIG_OF) += of/
182 +obj-$(CONFIG_SSB) += ssb/
184 --- a/include/linux/pci_ids.h
185 +++ b/include/linux/pci_ids.h
186 @@ -1980,6 +1980,7 @@
187 #define PCI_DEVICE_ID_TIGON3_5906M 0x1713
188 #define PCI_DEVICE_ID_BCM4401 0x4401
189 #define PCI_DEVICE_ID_BCM4401B0 0x4402
190 +#define PCI_DEVICE_ID_BCM4713 0x4713
192 #define PCI_VENDOR_ID_TOPIC 0x151f
193 #define PCI_DEVICE_ID_TOPIC_TP560 0x0000