[ar71xx] add dummy code for the Atheros AP83 board
[openwrt.git] / target / linux / ar71xx / patches-2.6.26 / 001-ar71xx_core.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -597,6 +597,13 @@ core-$(CONFIG_TOSHIBA_RBTX4938) += arch/
4  cflags-$(CONFIG_TOSHIBA_RBTX4938) += -Iinclude/asm-mips/mach-tx49xx
5  load-$(CONFIG_TOSHIBA_RBTX4938) += 0xffffffff80100000
6  
7 +#
8 +# Atheros AR71xx
9 +#
10 +core-$(CONFIG_ATHEROS_AR71XX)  += arch/mips/ar71xx/
11 +cflags-$(CONFIG_ATHEROS_AR71XX)        += -Iinclude/asm-mips/mach-ar71xx
12 +load-$(CONFIG_ATHEROS_AR71XX)  += 0xffffffff80060000
13 +
14  # temporary until string.h is fixed
15  cflags-y += -ffreestanding
16  
17 --- a/include/asm-mips/bootinfo.h
18 +++ b/include/asm-mips/bootinfo.h
19 @@ -79,6 +79,18 @@
20  #define  MACH_LASAT_200                1       /* Masquerade PRO/SP200 */
21  
22  /*
23 + * Valid machtype for Atheros AR71xx based boards
24 + */
25 +#define MACH_AR71XX_GENERIC    0
26 +#define MACH_AR71XX_WP543      1       /* Compex WP543 */
27 +#define MACH_AR71XX_RB_411     2       /* MikroTik RouterBOARD 411/411A/411AH */
28 +#define MACH_AR71XX_RB_433     3       /* MikroTik RouterBOARD 433/433AH */
29 +#define MACH_AR71XX_RB_450     4       /* MikroTik RouterBOARD 450 */
30 +#define MACH_AR71XX_RB_493     5       /* Mikrotik RouterBOARD 493/493AH */
31 +#define MACH_AR71XX_AW_NR580   6       /* AzureWave AW-NR580 */
32 +#define MACH_AR71XX_AP83       7       /* Atheros AP83 */
33 +
34 +/*
35   * Valid machtype for group NEC EMMA2RH
36   */
37  #define  MACH_NEC_MARKEINS     0       /* NEC EMMA2RH Mark-eins        */
38 --- a/arch/mips/Kconfig
39 +++ b/arch/mips/Kconfig
40 @@ -21,6 +21,24 @@ choice
41  config MACH_ALCHEMY
42         bool "Alchemy processor based machines"
43  
44 +config ATHEROS_AR71XX
45 +       bool "Atheros AR71xx based boards"
46 +       select CEVT_R4K
47 +       select CSRC_R4K
48 +       select DMA_NONCOHERENT
49 +       select HW_HAS_PCI
50 +       select IRQ_CPU
51 +       select GENERIC_GPIO
52 +       select HAVE_GPIO_LIB
53 +       select SYS_HAS_CPU_MIPS32_R1
54 +       select SYS_HAS_CPU_MIPS32_R2
55 +       select SYS_SUPPORTS_32BIT_KERNEL
56 +       select SYS_SUPPORTS_BIG_ENDIAN
57 +       select SYS_HAS_EARLY_PRINTK
58 +       select MIPS_MACHINE
59 +       help
60 +         Support for Atheros AR71xx based boards.
61 +
62  config BASLER_EXCITE
63         bool "Basler eXcite smart camera"
64         select CEVT_R4K
65 @@ -687,6 +705,7 @@ config WR_PPMC
66  
67  endchoice
68  
69 +source "arch/mips/ar71xx/Kconfig"
70  source "arch/mips/au1000/Kconfig"
71  source "arch/mips/basler/excite/Kconfig"
72  source "arch/mips/jazz/Kconfig"