[atheros]: Add initial kernel 2.6.28 support for atheros target.
[openwrt.git] / target / linux / atheros / patches-2.6.28 / 100-board.patch
1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -60,6 +60,18 @@ config BCM47XX
4 help
5 Support for BCM47XX based boards
6
7 +config ATHEROS
8 + bool "Atheros SoC support (EXPERIMENTAL)"
9 + depends on EXPERIMENTAL
10 + select DMA_NONCOHERENT
11 + select CEVT_R4K
12 + select CSRC_R4K
13 + select IRQ_CPU
14 + select SYS_HAS_CPU_MIPS32_R1
15 + select SYS_SUPPORTS_BIG_ENDIAN
16 + select SYS_SUPPORTS_32BIT_KERNEL
17 + select GENERIC_GPIO
18 +
19 config MIPS_COBALT
20 bool "Cobalt Server"
21 select CEVT_R4K
22 @@ -597,6 +609,7 @@ config WR_PPMC
23
24 endchoice
25
26 +source "arch/mips/atheros/Kconfig"
27 source "arch/mips/alchemy/Kconfig"
28 source "arch/mips/basler/excite/Kconfig"
29 source "arch/mips/emma/Kconfig"
30 --- a/arch/mips/Makefile
31 +++ b/arch/mips/Makefile
32 @@ -278,6 +278,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips
33 load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000
34
35 #
36 +# Atheros AR5312/AR2312 WiSoC
37 +#
38 +core-$(CONFIG_ATHEROS) += arch/mips/atheros/
39 +cflags-$(CONFIG_ATHEROS) += -I$(srctree)/arch/mips/include/asm/mach-atheros
40 +load-$(CONFIG_ATHEROS) += 0xffffffff80041000
41 +
42 +#
43 # Cobalt Server
44 #
45 core-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/
46 --- a/arch/mips/include/asm/bootinfo.h
47 +++ b/arch/mips/include/asm/bootinfo.h
48 @@ -57,6 +57,18 @@
49 #define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
50 #define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
51
52 +/*
53 + * Valid machtype for group ATHEROS
54 + */
55 +#define MACH_GROUP_ATHEROS 26
56 +#define MACH_ATHEROS_AR5312 0
57 +#define MACH_ATHEROS_AR2312 1
58 +#define MACH_ATHEROS_AR2313 2
59 +#define MACH_ATHEROS_AR2315 3
60 +#define MACH_ATHEROS_AR2316 4
61 +#define MACH_ATHEROS_AR2317 5
62 +#define MACH_ATHEROS_AR2318 6
63 +
64 #define CL_SIZE COMMAND_LINE_SIZE
65
66 extern char *system_type;
This page took 0.049766 seconds and 5 git commands to generate.