[ar7] add AudioCodes AC49x platform support to kernel
[openwrt/svn-archive/archive.git] / target / linux / ar7 / patches-3.3 / 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,8 @@ 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_AC:
21 + return "AudioCodes AC49x";
22 }
23 default:
24 return "TI AR7 (unknown)";
25 --- a/arch/mips/include/asm/mach-ar7/ar7.h
26 +++ b/arch/mips/include/asm/mach-ar7/ar7.h
27 @@ -92,6 +92,7 @@
28 #define TITAN_CHIP_1055 0x0e
29 #define TITAN_CHIP_1056 0x0d
30 #define TITAN_CHIP_1060 0x07
31 +#define TITAN_CHIP_AC 0x02
32
33 /* Interrupts */
34 #define AR7_IRQ_UART0 15
35 --- a/arch/mips/Kconfig
36 +++ b/arch/mips/Kconfig
37 @@ -72,7 +72,7 @@ config AR7
38 select VLYNQ
39 help
40 Support for the Texas Instruments AR7 System-on-a-Chip
41 - family: TNETD7100, 7200 and 7300.
42 + family: TI TNETD7100, 7200, 7300 and AudioCodes AC49x.
43
44 config ATH79
45 bool "Atheros AR71XX/AR724X/AR913X based boards"
46 @@ -814,6 +814,7 @@ config NLM_XLP_BOARD
47 endchoice
48
49 source "arch/mips/alchemy/Kconfig"
50 +source "arch/mips/ar7/Kconfig"
51 source "arch/mips/ath79/Kconfig"
52 source "arch/mips/bcm47xx/Kconfig"
53 source "arch/mips/bcm63xx/Kconfig"
54 --- /dev/null
55 +++ b/arch/mips/ar7/Kconfig
56 @@ -0,0 +1,26 @@
57 +if AR7
58 +
59 +config AR7_TI
60 + bool
61 +
62 +config AR7_AC49X
63 + bool
64 +
65 +choice
66 + prompt "AR7 SoC family selection"
67 + default AR7_TYPE_TI
68 + depends on AR7
69 + help
70 + Select AR7 MIPS SoC implementation.
71 +
72 + config AR7_TYPE_TI
73 + bool "Texas Instruments AR7"
74 + select AR7_TI
75 +
76 + config AR7_TYPE_AC49X
77 + bool "AudioCodes AC49X"
78 + select AR7_AC49X
79 +
80 +endchoice
81 +
82 +endif