[ar71xx] update mips_machine stuff
[openwrt-10.03/.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/arch/mips/Kconfig
18 +++ b/arch/mips/Kconfig
19 @@ -21,6 +21,24 @@ choice
20  config MACH_ALCHEMY
21         bool "Alchemy processor based machines"
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 GENERIC_GPIO
31 +       select HAVE_GPIO_LIB
32 +       select SYS_HAS_CPU_MIPS32_R1
33 +       select SYS_HAS_CPU_MIPS32_R2
34 +       select SYS_SUPPORTS_32BIT_KERNEL
35 +       select SYS_SUPPORTS_BIG_ENDIAN
36 +       select SYS_HAS_EARLY_PRINTK
37 +       select MIPS_MACHINE
38 +       help
39 +         Support for Atheros AR71xx based boards.
40 +
41  config BASLER_EXCITE
42         bool "Basler eXcite smart camera"
43         select CEVT_R4K
44 @@ -687,6 +705,7 @@ config WR_PPMC
45  
46  endchoice
47  
48 +source "arch/mips/ar71xx/Kconfig"
49  source "arch/mips/au1000/Kconfig"
50  source "arch/mips/basler/excite/Kconfig"
51  source "arch/mips/jazz/Kconfig"