1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -59,6 +59,18 @@ config BCM47XX
5 Support for BCM47XX based boards
8 + bool "Atheros SoC support (EXPERIMENTAL)"
9 + depends on EXPERIMENTAL
10 + select DMA_NONCOHERENT
14 + select SYS_HAS_CPU_MIPS32_R1
15 + select SYS_SUPPORTS_BIG_ENDIAN
16 + select SYS_SUPPORTS_32BIT_KERNEL
22 @@ -598,6 +610,7 @@ config WR_PPMC
26 +source "arch/mips/atheros/Kconfig"
27 source "arch/mips/au1000/Kconfig"
28 source "arch/mips/basler/excite/Kconfig"
29 source "arch/mips/jazz/Kconfig"
30 --- a/arch/mips/Makefile
31 +++ b/arch/mips/Makefile
32 @@ -276,6 +276,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips
33 load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000
36 +# Atheros AR5312/AR2312 WiSoC
38 +core-$(CONFIG_ATHEROS) += arch/mips/atheros/
39 +cflags-$(CONFIG_ATHEROS) += -Iinclude/asm-mips/mach-atheros
40 +load-$(CONFIG_ATHEROS) += 0xffffffff80041000
45 core-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/
46 --- a/include/asm-mips/bootinfo.h
47 +++ b/include/asm-mips/bootinfo.h
49 #define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
50 #define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
53 + * Valid machtype for group ATHEROS
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
64 #define CL_SIZE COMMAND_LINE_SIZE
66 extern char *system_type;