1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -577,6 +577,13 @@ core-$(CONFIG_TOSHIBA_RBTX4927) += arch/
5 core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/rbtx4938/
10 +core-$(CONFIG_ATHEROS_AR71XX) += arch/mips/ar71xx/
11 +cflags-$(CONFIG_ATHEROS_AR71XX) += -Iinclude/asm-mips/mach-ar71xx
12 +load-$(CONFIG_ATHEROS_AR71XX) += 0xffffffff80060000
14 # temporary until string.h is fixed
15 cflags-y += -ffreestanding
17 --- a/include/asm-mips/bootinfo.h
18 +++ b/include/asm-mips/bootinfo.h
20 #define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
21 #define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
24 + * Valid machtype for Atheros AR71xx based boards
26 +#define MACH_AR71XX_GENERIC 0
27 +#define MACH_AR71XX_WP543 1 /* Compex WP543 */
28 +#define MACH_AR71XX_RB_411 2 /* MikroTik RouterBOARD 411/411A/411AH */
29 +#define MACH_AR71XX_RB_433 3 /* MikroTik RouterBOARD 433/433AH */
30 +#define MACH_AR71XX_RB_450 4 /* MikroTik RouterBOARD 450 */
31 +#define MACH_AR71XX_RB_493 5 /* MikroTik RouterBOARD 493 */
32 +#define MACH_AR71XX_AW_NR580 6 /* AzureWave AW-NR580 */
34 #define CL_SIZE COMMAND_LINE_SIZE
36 extern char *system_type;
37 --- a/arch/mips/Kconfig
38 +++ b/arch/mips/Kconfig
39 @@ -22,6 +22,23 @@ choice
41 bool "Alchemy processor based machines"
43 +config ATHEROS_AR71XX
44 + bool "Atheros AR71xx based boards"
47 + select DMA_NONCOHERENT
50 + select ARCH_REQUIRE_GPIOLIB
51 + select SYS_HAS_CPU_MIPS32_R1
52 + select SYS_HAS_CPU_MIPS32_R2
53 + select SYS_SUPPORTS_32BIT_KERNEL
54 + select SYS_SUPPORTS_BIG_ENDIAN
55 + select SYS_HAS_EARLY_PRINTK
58 + Support for Atheros AR71xx based boards.
61 bool "Basler eXcite smart camera"
63 @@ -598,6 +615,7 @@ config WR_PPMC
67 +source "arch/mips/ar71xx/Kconfig"
68 source "arch/mips/au1000/Kconfig"
69 source "arch/mips/basler/excite/Kconfig"
70 source "arch/mips/jazz/Kconfig"