[adm5120] restore right patches for 2.6.21.5
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / patches / 001-adm5120.patch
1 Index: linux-2.6.21.1/arch/mips/Kconfig
2 ===================================================================
3 --- linux-2.6.21.1.orig/arch/mips/Kconfig
4 +++ linux-2.6.21.1/arch/mips/Kconfig
5 @@ -16,6 +16,17 @@ choice
6 prompt "System type"
7 default SGI_IP22
8
9 +config MIPS_ADM5120
10 + bool "Support for ADM5120 SoC"
11 + select SYS_HAS_CPU_MIPS32_R1
12 + select DMA_NONCOHERENT
13 + select HW_HAS_PCI
14 + select IRQ_CPU
15 + select SYS_SUPPORTS_LITTLE_ENDIAN
16 + select SYS_SUPPORTS_BIG_ENDIAN
17 + select SYS_SUPPORTS_32BIT_KERNEL
18 + select GENERIC_GPIO
19 +
20 config MIPS_MTX1
21 bool "4G Systems MTX-1 board"
22 select DMA_NONCOHERENT
23 @@ -766,6 +775,7 @@
24
25 endchoice
26
27 +source "arch/mips/adm5120/Kconfig"
28 source "arch/mips/ddb5xxx/Kconfig"
29 source "arch/mips/gt64120/ev64120/Kconfig"
30 source "arch/mips/jazz/Kconfig"
31 Index: linux-2.6.21.1/arch/mips/Makefile
32 ===================================================================
33 --- linux-2.6.21.1.orig/arch/mips/Makefile
34 +++ linux-2.6.21.1/arch/mips/Makefile
35 @@ -165,6 +165,14 @@ cflags-$(CONFIG_MACH_JAZZ) += -Iinclude/
36 load-$(CONFIG_MACH_JAZZ) += 0xffffffff80080000
37
38 #
39 +# ADMtek 5120
40 +#
41 +
42 +core-$(CONFIG_MIPS_ADM5120) += arch/mips/adm5120/
43 +cflags-$(CONFIG_MIPS_ADM5120) += -Iinclude/asm-mips/mach-adm5120
44 +load-$(CONFIG_MIPS_ADM5120) += 0xffffffff80001000
45 +
46 +#
47 # Common Alchemy Au1x00 stuff
48 #
49 core-$(CONFIG_SOC_AU1X00) += arch/mips/au1000/common/
50 Index: linux-2.6.21.1/include/asm-mips/bootinfo.h
51 ===================================================================
52 --- linux-2.6.21.1.orig/include/asm-mips/bootinfo.h
53 +++ linux-2.6.21.1/include/asm-mips/bootinfo.h
54 @@ -213,6 +213,57 @@
55 #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */
56 #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */
57
58 +/*
59 + * Valid machtype for group ADMtek ADM5120
60 + */
61 +#define MACH_GROUP_ADM5120 23
62 +#define MACH_ADM5120_UNKNOWN 0 /* Unknown board */
63 +#define MACH_ADM5120_WP54G_WRT 1 /* Compex WP54G-WRT */
64 +#define MACH_ADM5120_WP54G 2 /* Compex WP54G */
65 +#define MACH_ADM5120_WP54AG 3 /* Compex WP54AG */
66 +#define MACH_ADM5120_WPP54G 4 /* Compex WPP54G */
67 +#define MACH_ADM5120_WPP54AG 5 /* Compex WPP54AG */
68 +#define MACH_ADM5120_NP28G 6 /* Compex NP28G */
69 +#define MACH_ADM5120_NP28GHS 7 /* Compex NP28G HotSpot */
70 +#define MACH_ADM5120_NP27G 8 /* Compex NP27G */
71 +#define MACH_ADM5120_WP54Gv1C 9 /* Compex WP54G version 1C */
72 +#define MACH_ADM5120_RB_111 10 /* Mikrotik RouterBOARD 111 */
73 +#define MACH_ADM5120_RB_112 11 /* Mikrotik RouterBOARD 112 */
74 +#define MACH_ADM5120_RB_133 12 /* Mikrotik RouterBOARD 133 */
75 +#define MACH_ADM5120_RB_133C 13 /* Mikrotik RouterBOARD 133c */
76 +#define MACH_ADM5120_RB_150 14 /* Mikrotik RouterBOARD 150 */
77 +#define MACH_ADM5120_RB_153 15 /* Mikrotik RouterBOARD 153 */
78 +#define MACH_ADM5120_HS100 16 /* ZyXEL HomeSafe 100/100W */
79 +#define MACH_ADM5120_P334 17 /* ZyXEL Prestige 334 */
80 +#define MACH_ADM5120_P334U 18 /* ZyXEL Prestige 334U */
81 +#define MACH_ADM5120_P334W 19 /* ZyXEL Prestige 334W */
82 +#define MACH_ADM5120_P334WH 20 /* ZyXEL Prestige 334WH */
83 +#define MACH_ADM5120_P334WHD 21 /* ZyXEL Prestige 334WHD */
84 +#define MACH_ADM5120_P334WT 22 /* ZyXEL Prestige 334WT */
85 +#define MACH_ADM5120_P335 23 /* ZyXEL Prestige 335/335WT */
86 +#define MACH_ADM5120_P335PLUS 24 /* ZyXEL Prestige 335Plus */
87 +#define MACH_ADM5120_P335U 25 /* ZyXEL Prestige 335U */
88 +#define MACH_ADM5120_ES2108 26 /* ZyXEL Ethernet Switch 2108 */
89 +#define MACH_ADM5120_ES2108F 27 /* ZyXEL Ethernet Switch 2108-F */
90 +#define MACH_ADM5120_ES2108G 28 /* ZyXEL Ethernet Switch 2108-G */
91 +#define MACH_ADM5120_ES2108LC 29 /* ZyXEL Ethernet Switch 2108-LC */
92 +#define MACH_ADM5120_ES2108PWR 30 /* ZyXEL Ethernet Switch 2108-PWR */
93 +#define MACH_ADM5120_ES2024A 31 /* ZyXEL Ethernet Switch 2024A */
94 +#define MACH_ADM5120_ES2024PWR 32 /* ZyXEL Ethernet Switch 2024PWR */
95 +#define MACH_ADM5120_CAS630 33 /* Cellvision CAS-630/630W */
96 +#define MACH_ADM5120_CAS670 34 /* Cellvision CAS-670/670W */
97 +#define MACH_ADM5120_CAS700 36 /* Cellvision CAS-700/700W */
98 +#define MACH_ADM5120_CAS771 37 /* Cellvision CAS-771/771W */
99 +#define MACH_ADM5120_CAS790 38 /* Cellvision CAS-790 */
100 +#define MACH_ADM5120_CAS861 39 /* Cellvision CAS-861/861W */
101 +#define MACH_ADM5120_NFS101U 40 /* Cellvision NFS-101U/101WU */
102 +#define MACH_ADM5120_NFS202U 41 /* Cellvision NFS-202U/202WU */
103 +#define MACH_ADM5120_EASY5120 43 /* Infineon EASY 5120 */
104 +#define MACH_ADM5120_EASY5120RT 44 /* Infineon EASY 5120-RT */
105 +#define MACH_ADM5120_EASY5120PATA 45 /* Infineon EASY 5120P-ATA */
106 +#define MACH_ADM5120_EASY83000 46 /* Infineon EASY-83000 */
107 +#define MACH_ADM5120_BR6104K 47 /* Edimax BR-6104K */
108 +
109 #define CL_SIZE COMMAND_LINE_SIZE
110
111 const char *get_system_type(void);