summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/patches-2.6.36/930-2_6_36_ports.patch
blob: 1e51c4717ee8e0a76f5710a23e3c4aa1d8fbacc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
--- a/arch/mips/include/asm/war.h
+++ b/arch/mips/include/asm/war.h
@@ -9,7 +9,7 @@
 #ifndef _ASM_WAR_H
 #define _ASM_WAR_H
 
-#include <war.h>
+#include <asm/mach-adm5120/war.h>
 
 /*
  * Work around certain R4000 CPU errata (as implemented by GCC):
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -16,7 +16,7 @@
 #include <linux/amba/bus.h>
 
 #include <asm/irq.h>
-#include <asm/sizes.h>
+#include <asm/mach-adm5120/asm/sizes.h>
 
 #ifndef NO_IRQ
 #define NO_IRQ		(-1)
--- a/drivers/watchdog/adm5120_wdt.c
+++ b/drivers/watchdog/adm5120_wdt.c
@@ -167,7 +167,7 @@ static struct file_operations wdt_fops =
 	owner:		THIS_MODULE,
 	llseek:		no_llseek,
 	write:		wdt_write,
-	ioctl:		wdt_ioctl,
+	unlocked_ioctl:	wdt_ioctl,
 	open:		wdt_open,
 	release:	wdt_release,
 };
--- a/arch/mips/Kbuild.platforms
+++ b/arch/mips/Kbuild.platforms
@@ -1,5 +1,6 @@
 # All platforms listed in alphabetic order
 
+platforms += adm5120
 platforms += alchemy
 platforms += ar7
 platforms += bcm47xx
--- a/drivers/net/adm5120sw.c
+++ b/drivers/net/adm5120sw.c
@@ -26,6 +26,7 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/irq.h>
+#include <asm/mach-adm5120/irq.h>
 
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
--- a/arch/mips/adm5120/common/clock.c
+++ b/arch/mips/adm5120/common/clock.c
@@ -33,7 +33,7 @@ static struct clk uart_clk = {
 
 struct clk *clk_get(struct device *dev, const char *id)
 {
-	char *name = dev_name(dev);
+	const char *name = dev_name(dev);
 
 	if (!strcmp(name, "apb:uart0") || !strcmp(name, "apb:uart1"))
 		return &uart_clk;
--- /dev/null
+++ b/arch/mips/adm5120/Platform
@@ -0,0 +1,53 @@
+#
+# Core Infineon/ADMtek ADM5120
+#
+platform-$(CONFIG_ADM5120) += adm5120/common/
+
+#
+# OEM CELLVISION
+#
+platform-$(CONFIG_ADM5120_OEM_CELLVISION)	+= adm5120/cellvision/
+
+#
+# OEM COMPEX
+#
+platform-$(CONFIG_ADM5120_OEM_COMPEX)		+= adm5120/compex/
+
+#
+# OEM EDIMAX
+#
+platform-$(CONFIG_ADM5120_OEM_EDIMAX)		+= adm5120/edimax/
+
+#
+# OEM GENERIC
+#
+platform-$(CONFIG_ADM5120_OEM_GENERIC)		+= adm5120/generic/
+
+#
+# OEM INFINEON
+#
+platform-$(CONFIG_ADM5120_OEM_INFINEON)		+= adm5120/infineon/
+
+#
+# OEM MIKROTIK
+#
+platform-$(CONFIG_ADM5120_OEM_MIKROTIK)		+= adm5120/mikrotik/
+
+#
+# OEM MOTOROLA
+#
+platform-$(CONFIG_ADM5120_OEM_MOTOROLA)		+= adm5120/motorola/
+
+#
+# OEM OSBRIDGE
+#
+platform-$(CONFIG_ADM5120_OEM_OSBRIDGE)		+= adm5120/osbridge/
+
+#
+# OEM ZYXEL
+#
+platform-$(CONFIG_ADM5120_OEM_ZYXEL)		+= adm5120/zyxel/
+
+cflags-$(CONFIG_ADM5120)			+= -I$(srctree)/arch/mips/include/asm/mach-adm5120
+libs-$(CONFIG_ADM5120)				+= arch/mips/adm5120/prom/
+load-$(CONFIG_ADM5120)				+= 0xffffffff80001000