Override kernel template and output bzImage, not the binary file, closes #676 and...
[openwrt-10.03/.git] / target / linux / brcm63xx-2.6 / patches / 010-include_asm_mips.patch
1 --- linux-2.6.17/include/asm-mips/bootinfo.h    2006-06-18 03:49:35.000000000 +0200
2 +++ linux-2.6.17-brcm63xx/include/asm-mips/bootinfo.h   2006-07-13 19:14:01.000000000 +0200
3 @@ -218,6 +218,14 @@
4  #define MACH_GROUP_TITAN       22      /* PMC-Sierra Titan             */
5  #define  MACH_TITAN_YOSEMITE   1       /* PMC-Sierra Yosemite          */
6  
7 +/*
8 + * Valid machtype for group BRCM
9 + */
10 +#define MACH_GROUP_BRCM        23      /* Broadcom boards              */
11 +#define MACH_BCM96338          0
12 +#define MACH_BCM96345          1
13 +#define MACH_BCM96348          2
14 +
15  #define CL_SIZE                        COMMAND_LINE_SIZE
16  
17  const char *get_system_type(void);
18 --- linux-2.6.17/include/asm-mips/cpu.h 2006-06-18 03:49:35.000000000 +0200
19 +++ linux-2.6.17-brcm63xx/include/asm-mips/cpu.h        2006-07-13 19:15:17.000000000 +0200
20 @@ -103,6 +103,13 @@
21  
22  #define PRID_IMP_SR71000        0x0400
23  
24 +/* These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
25 + */
26 +
27 +#define PRID_IMP_BCM6338               0x9000
28 +#define PRID_IMP_BCM6345               0x8000
29 +#define PRID_IMP_BCM6348               0x9100
30 +
31  /*
32   * Definitions for 7:0 on legacy processors
33   */
34 @@ -200,7 +207,10 @@
35  #define CPU_SB1A               62
36  #define CPU_74K                        63
37  #define CPU_R14000             64
38 -#define CPU_LAST               64
39 +#define CPU_BCM6338             65
40 +#define CPU_BCM6345             66
41 +#define CPU_BCM6348             67
42 +#define CPU_LAST               67
43  
44  /*
45   * ISA Level encodings
46 --- linux-2.6.17/include/asm-mips/mach-generic/param.h  2006-06-18 03:49:35.000000000 +0200
47 +++ linux-2.6.17-brcm63xx/include/asm-mips/mach-generic/param.h 2006-07-13 19:17:26.000000000 +0200
48 @@ -8,6 +8,6 @@
49  #ifndef __ASM_MACH_GENERIC_PARAM_H
50  #define __ASM_MACH_GENERIC_PARAM_H
51  
52 -#define HZ             1000            /* Internal kernel timer frequency */
53 +#define HZ             200             /* Internal kernel timer frequency */
54  
55  #endif /* __ASM_MACH_GENERIC_PARAM_H */
56 --- linux-2.6.17/include/asm-mips/module.h      2006-06-18 03:49:35.000000000 +0200
57 +++ linux-2.6.17-brcm63xx/include/asm-mips/module.h     2006-07-13 19:18:34.000000000 +0200
58 @@ -113,6 +113,12 @@
59  #define MODULE_PROC_FAMILY "RM9000 "
60  #elif defined CONFIG_CPU_SB1
61  #define MODULE_PROC_FAMILY "SB1 "
62 +#elif defined CONFIG_CPU_BCM6338
63 +#define MODULE_PROC_FAMILY "BCM6338 "
64 +#elif defined CONFIG_CPU_BCM6345
65 +#define MODULE_PROC_FAMILY "BCM6345 "
66 +#elif defined CONFIG_CPU_BCM6348
67 +#define MODULE_PROC_FAMILY "BCM6348 "
68  #else
69  #error MODULE_PROC_FAMILY undefined for your processor configuration
70  #endif