summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx-2.6/patches/010-include_asm_mips.patch
blob: e413acff8a43ca6e7d129824dbc1bdced40480e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
diff -Naurp -x mach-bcm963xx linux-2.6.16.7-generic-patched/include/asm-mips/bootinfo.h linux-2.6.16.7-patched/include/asm-mips/bootinfo.h
--- linux-2.6.16.7-generic-patched/include/asm-mips/bootinfo.h	2006-04-17 23:53:25.000000000 +0200
+++ linux-2.6.16.7-patched/include/asm-mips/bootinfo.h	2006-07-05 15:21:58.000000000 +0200
@@ -218,6 +218,15 @@
 #define MACH_GROUP_TITAN       22	/* PMC-Sierra Titan		*/
 #define  MACH_TITAN_YOSEMITE	1	/* PMC-Sierra Yosemite		*/
 
+/*
+ * Valid machtype for group BRCM
+ */
+#define MACH_GROUP_BRCM        23	/* Broadcom boards              */
+#define MACH_BCM96338		0
+#define MACH_BCM96345		1
+#define MACH_BCM96348		2
+
+
 #define CL_SIZE			COMMAND_LINE_SIZE
 
 const char *get_system_type(void);
diff -Naurp -x mach-bcm963xx linux-2.6.16.7-generic-patched/include/asm-mips/cpu.h linux-2.6.16.7-patched/include/asm-mips/cpu.h
--- linux-2.6.16.7-generic-patched/include/asm-mips/cpu.h	2006-04-17 23:53:25.000000000 +0200
+++ linux-2.6.16.7-patched/include/asm-mips/cpu.h	2006-07-05 15:21:58.000000000 +0200
@@ -102,6 +102,15 @@
 #define PRID_IMP_SR71000        0x0400
 
 /*
+ * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
+ */
+
+#define PRID_IMP_BCM6338	0x9000
+#define PRID_IMP_BCM6345	0x8000
+#define PRID_IMP_BCM6348	0x9100
+
+
+/*
  * Definitions for 7:0 on legacy processors
  */
 
@@ -196,7 +205,10 @@
 #define CPU_34K			60
 #define CPU_PR4450		61
 #define CPU_SB1A		62
-#define CPU_LAST		62
+#define CPU_BCM6338		63
+#define CPU_BCM6345		64
+#define CPU_BCM6348		65
+#define CPU_LAST		65
 
 /*
  * ISA Level encodings
diff -Naurp -x mach-bcm963xx linux-2.6.16.7-generic-patched/include/asm-mips/mach-generic/param.h linux-2.6.16.7-patched/include/asm-mips/mach-generic/param.h
--- linux-2.6.16.7-generic-patched/include/asm-mips/mach-generic/param.h	2006-04-17 23:53:25.000000000 +0200
+++ linux-2.6.16.7-patched/include/asm-mips/mach-generic/param.h	2006-07-05 15:21:58.000000000 +0200
@@ -8,6 +8,6 @@
 #ifndef __ASM_MACH_GENERIC_PARAM_H
 #define __ASM_MACH_GENERIC_PARAM_H
 
-#define HZ		1000		/* Internal kernel timer frequency */
+#define HZ		200		/* Internal kernel timer frequency */
 
 #endif /* __ASM_MACH_GENERIC_PARAM_H */
diff -Naurp -x mach-bcm963xx linux-2.6.16.7-generic-patched/include/asm-mips/module.h linux-2.6.16.7-patched/include/asm-mips/module.h
--- linux-2.6.16.7-generic-patched/include/asm-mips/module.h	2006-04-17 23:53:25.000000000 +0200
+++ linux-2.6.16.7-patched/include/asm-mips/module.h	2006-07-05 15:21:58.000000000 +0200
@@ -113,6 +113,12 @@ search_module_dbetables(unsigned long ad
 #define MODULE_PROC_FAMILY "RM9000 "
 #elif defined CONFIG_CPU_SB1
 #define MODULE_PROC_FAMILY "SB1 "
+#elif defined CONFIG_CPU_BCM6338
+#define MODULE_PROC_FAMILY "BCM6338 "
+#elif defined CONFIG_CPU_BCM6345
+#define MODULE_PROC_FAMILY "BCM6345 "
+#elif defined CONFIG_CPU_BCM6348
+#define MODULE_PROC_FAMILY "BCM6348 "
 #else
 #error MODULE_PROC_FAMILY undefined for your processor configuration
 #endif