[atheros] add .25 patches (kernel boots fine on LS2, LS5, FON2200 and on WRT55AG v2)
[openwrt.git] / target / linux / atheros / patches-2.6.25 / 100-board.patch
1 Index: linux-2.6.25.1/arch/mips/Kconfig
2 ===================================================================
3 --- linux-2.6.25.1.orig/arch/mips/Kconfig
4 +++ linux-2.6.25.1/arch/mips/Kconfig
5 @@ -59,6 +59,18 @@ config BCM47XX
6         help
7          Support for BCM47XX based boards
8  
9 +config ATHEROS
10 +       bool "Atheros SoC support (EXPERIMENTAL)"
11 +       depends on EXPERIMENTAL
12 +       select DMA_NONCOHERENT
13 +       select CEVT_R4K
14 +       select CSRC_R4K
15 +       select IRQ_CPU
16 +       select SYS_HAS_CPU_MIPS32_R1
17 +       select SYS_SUPPORTS_BIG_ENDIAN
18 +       select SYS_SUPPORTS_32BIT_KERNEL
19 +       select GENERIC_GPIO
20 +
21  config MIPS_COBALT
22         bool "Cobalt Server"
23         select CEVT_R4K
24 @@ -683,6 +695,7 @@ config WR_PPMC
25  
26  endchoice
27  
28 +source "arch/mips/atheros/Kconfig"
29  source "arch/mips/au1000/Kconfig"
30  source "arch/mips/basler/excite/Kconfig"
31  source "arch/mips/jazz/Kconfig"
32 Index: linux-2.6.25.1/arch/mips/Makefile
33 ===================================================================
34 --- linux-2.6.25.1.orig/arch/mips/Makefile
35 +++ linux-2.6.25.1/arch/mips/Makefile
36 @@ -276,6 +276,13 @@ libs-$(CONFIG_MIPS_XXS1500)        += arch/mips
37  load-$(CONFIG_MIPS_XXS1500)    += 0xffffffff80100000
38  
39  #
40 +# Atheros AR5312/AR2312 WiSoC
41 +#
42 +core-$(CONFIG_ATHEROS)         += arch/mips/atheros/
43 +cflags-$(CONFIG_ATHEROS)       += -Iinclude/asm-mips/mach-atheros
44 +load-$(CONFIG_ATHEROS)         += 0xffffffff80041000
45 +
46 +#
47  # Cobalt Server
48  #
49  core-$(CONFIG_MIPS_COBALT)     += arch/mips/cobalt/
50 Index: linux-2.6.25.1/include/asm-mips/bootinfo.h
51 ===================================================================
52 --- linux-2.6.25.1.orig/include/asm-mips/bootinfo.h
53 +++ linux-2.6.25.1/include/asm-mips/bootinfo.h
54 @@ -94,6 +94,18 @@
55  #define MACH_MSP7120_FPGA       5      /* PMC-Sierra MSP7120 Emulation */
56  #define MACH_MSP_OTHER        255      /* PMC-Sierra unknown board type */
57  
58 +/*
59 + * Valid machtype for group ATHEROS
60 + */
61 +#define MACH_GROUP_ATHEROS     26
62 +#define MACH_ATHEROS_AR5312    0
63 +#define MACH_ATHEROS_AR2312    1
64 +#define MACH_ATHEROS_AR2313    2
65 +#define MACH_ATHEROS_AR2315    3
66 +#define MACH_ATHEROS_AR2316    4
67 +#define MACH_ATHEROS_AR2317    5
68 +#define MACH_ATHEROS_AR2318    6
69 +
70  #define CL_SIZE                        COMMAND_LINE_SIZE
71  
72  extern char *system_type;