ramips: set preinit interface to eth0 by default.
[openwrt.git] / target / linux / ar7 / patches-3.6 / 300-add-ac49x-platform.patch
1 --- a/arch/mips/ar7/Platform
2 +++ b/arch/mips/ar7/Platform
3 @@ -3,4 +3,9 @@
4  #
5  platform-$(CONFIG_AR7)          += ar7/
6  cflags-$(CONFIG_AR7)            += -I$(srctree)/arch/mips/include/asm/mach-ar7
7 -load-$(CONFIG_AR7)              += 0xffffffff94100000
8 +load-$(CONFIG_AR7_TI)           += 0xffffffff94100000
9 +
10 +#
11 +# AudioCodes AC49x
12 +#
13 +load-$(CONFIG_AR7_AC49X)        += 0xffffffff945ca000
14 --- a/arch/mips/ar7/setup.c
15 +++ b/arch/mips/ar7/setup.c
16 @@ -69,6 +69,10 @@ const char *get_system_type(void)
17                         return "TI AR7 (TNETV1056)";
18                 case TITAN_CHIP_1060:
19                         return "TI AR7 (TNETV1060)";
20 +               case TITAN_CHIP_AC495:
21 +                       return "AudioCodes AC495";
22 +               case TITAN_CHIP_AC496:
23 +                       return "AudioCodes AC496";
24                 }
25         default:
26                 return "TI AR7 (unknown)";
27 --- a/arch/mips/include/asm/mach-ar7/ar7.h
28 +++ b/arch/mips/include/asm/mach-ar7/ar7.h
29 @@ -92,6 +92,8 @@
30  #define TITAN_CHIP_1055        0x0e
31  #define TITAN_CHIP_1056        0x0d
32  #define TITAN_CHIP_1060        0x07
33 +#define TITAN_CHIP_AC495       0x00
34 +#define TITAN_CHIP_AC496       0x02
35  
36  /* Interrupts */
37  #define AR7_IRQ_UART0  15
38 --- a/arch/mips/Kconfig
39 +++ b/arch/mips/Kconfig
40 @@ -80,7 +80,7 @@ config AR7
41         select HAVE_CLK
42         help
43           Support for the Texas Instruments AR7 System-on-a-Chip
44 -         family: TNETD7100, 7200 and 7300.
45 +         family: TI TNETD7100, 7200, 7300 and AudioCodes AC49x.
46  
47  config ATH79
48         bool "Atheros AR71XX/AR724X/AR913X based boards"
49 @@ -838,6 +838,7 @@ config NLM_XLP_BOARD
50  endchoice
51  
52  source "arch/mips/alchemy/Kconfig"
53 +source "arch/mips/ar7/Kconfig"
54  source "arch/mips/ath79/Kconfig"
55  source "arch/mips/bcm47xx/Kconfig"
56  source "arch/mips/bcm63xx/Kconfig"
57 --- /dev/null
58 +++ b/arch/mips/ar7/Kconfig
59 @@ -0,0 +1,26 @@
60 +if AR7
61 +
62 +config AR7_TI
63 +       bool
64 +
65 +config AR7_AC49X
66 +       bool
67 +
68 +choice
69 +       prompt "AR7 SoC family selection"
70 +       default AR7_TYPE_TI
71 +       depends on AR7
72 +       help
73 +         Select AR7 MIPS SoC implementation.
74 +
75 +       config AR7_TYPE_TI
76 +               bool "Texas Instruments AR7"
77 +               select AR7_TI
78 +
79 +       config AR7_TYPE_AC49X
80 +               bool "AudioCodes AC49X"
81 +               select AR7_AC49X
82 +
83 +endchoice
84 +
85 +endif