mac80211: backport from trunk
[openwrt-10.03/.git] / target / linux / ar71xx / patches-2.6.32 / 001-ar71xx_core.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -156,6 +156,13 @@ ifeq (,$(findstring march=octeon, $(cfla
4  cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon
5  endif
6  
7 +#
8 +# Atheros AR71xx
9 +#
10 +core-$(CONFIG_ATHEROS_AR71XX)  += arch/mips/ar71xx/
11 +cflags-$(CONFIG_ATHEROS_AR71XX)        += -I$(srctree)/arch/mips/include/asm/mach-ar71xx
12 +load-$(CONFIG_ATHEROS_AR71XX)  += 0xffffffff80060000
13 +
14  cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,)
15  cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,)
16  cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,)
17 --- a/arch/mips/Kconfig
18 +++ b/arch/mips/Kconfig
19 @@ -43,6 +43,23 @@ config AR7
20           Support for the Texas Instruments AR7 System-on-a-Chip
21           family: TNETD7100, 7200 and 7300.
22  
23 +config ATHEROS_AR71XX
24 +       bool "Atheros AR71xx based boards"
25 +       select CEVT_R4K
26 +       select CSRC_R4K
27 +       select DMA_NONCOHERENT
28 +       select HW_HAS_PCI
29 +       select IRQ_CPU
30 +       select ARCH_REQUIRE_GPIOLIB
31 +       select SYS_HAS_CPU_MIPS32_R1
32 +       select SYS_HAS_CPU_MIPS32_R2
33 +       select SYS_SUPPORTS_32BIT_KERNEL
34 +       select SYS_SUPPORTS_BIG_ENDIAN
35 +       select SYS_HAS_EARLY_PRINTK
36 +       select MIPS_MACHINE
37 +       help
38 +         Support for Atheros AR71xx based boards.
39 +
40  config BASLER_EXCITE
41         bool "Basler eXcite smart camera"
42         select CEVT_R4K
43 @@ -674,6 +691,7 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
44  endchoice
45  
46  source "arch/mips/alchemy/Kconfig"
47 +source "arch/mips/ar71xx/Kconfig"
48  source "arch/mips/basler/excite/Kconfig"
49  source "arch/mips/bcm63xx/Kconfig"
50  source "arch/mips/jazz/Kconfig"