summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-2.6.24/100-board.patch
blob: ee0495708bf6b6935aa2febe8f75b58095aad0a6 (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
Index: linux-2.6.24.7/arch/mips/Kconfig
===================================================================
--- linux-2.6.24.7.orig/arch/mips/Kconfig
+++ linux-2.6.24.7/arch/mips/Kconfig
@@ -67,6 +67,18 @@ config BCM47XX
 	help
 	 Support for BCM47XX based boards
 
+config ATHEROS
+	bool "Atheros SoC support (EXPERIMENTAL)"
+	depends on EXPERIMENTAL
+	select DMA_NONCOHERENT
+	select CEVT_R4K
+	select CSRC_R4K
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_BIG_ENDIAN
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select GENERIC_GPIO
+
 config MIPS_COBALT
 	bool "Cobalt Server"
 	select CEVT_R4K
@@ -689,6 +701,7 @@ config WR_PPMC
 
 endchoice
 
+source "arch/mips/atheros/Kconfig"
 source "arch/mips/au1000/Kconfig"
 source "arch/mips/jazz/Kconfig"
 source "arch/mips/lasat/Kconfig"
Index: linux-2.6.24.7/arch/mips/Makefile
===================================================================
--- linux-2.6.24.7.orig/arch/mips/Makefile
+++ linux-2.6.24.7/arch/mips/Makefile
@@ -268,6 +268,13 @@ libs-$(CONFIG_MIPS_XXS1500)	+= arch/mips
 load-$(CONFIG_MIPS_XXS1500)	+= 0xffffffff80100000
 
 #
+# Atheros AR5312/AR2312 WiSoC
+#
+core-$(CONFIG_ATHEROS)		+= arch/mips/atheros/
+cflags-$(CONFIG_ATHEROS)	+= -Iinclude/asm-mips/mach-atheros
+load-$(CONFIG_ATHEROS)		+= 0xffffffff80041000
+
+#
 # Cobalt Server
 #
 core-$(CONFIG_MIPS_COBALT)	+= arch/mips/cobalt/
Index: linux-2.6.24.7/include/asm-mips/bootinfo.h
===================================================================
--- linux-2.6.24.7.orig/include/asm-mips/bootinfo.h
+++ linux-2.6.24.7/include/asm-mips/bootinfo.h
@@ -198,6 +198,18 @@
 #define MACH_GROUP_BRCM		23	/* Broadcom			*/
 #define  MACH_BCM47XX		1	/* Broadcom BCM47XX		*/
 
+/*
+ * Valid machtype for group ATHEROS
+ */
+#define MACH_GROUP_ATHEROS	26
+#define MACH_ATHEROS_AR5312	0
+#define MACH_ATHEROS_AR2312	1
+#define MACH_ATHEROS_AR2313	2
+#define MACH_ATHEROS_AR2315	3
+#define MACH_ATHEROS_AR2316	4
+#define MACH_ATHEROS_AR2317	5
+#define MACH_ATHEROS_AR2318	6
+
 #define CL_SIZE			COMMAND_LINE_SIZE
 
 const char *get_system_type(void);