diff options
Diffstat (limited to 'arch/powerpc')
72 files changed, 3002 insertions, 1004 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index f08e80a0bf0a..340d9beab6d1 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -876,7 +876,7 @@ config ARCH_SPARSEMEM_ENABLE | |||
876 | 876 | ||
877 | config ARCH_SPARSEMEM_DEFAULT | 877 | config ARCH_SPARSEMEM_DEFAULT |
878 | def_bool y | 878 | def_bool y |
879 | depends on (SMP && PPC_PSERIES) || PPC_CELL | 879 | depends on (SMP && PPC_PSERIES) || PPC_PS3 |
880 | 880 | ||
881 | config ARCH_POPULATES_NODE_MAP | 881 | config ARCH_POPULATES_NODE_MAP |
882 | def_bool y | 882 | def_bool y |
@@ -977,6 +977,10 @@ config ISA | |||
977 | have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If | 977 | have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If |
978 | you have an embedded board, consult your board documentation. | 978 | you have an embedded board, consult your board documentation. |
979 | 979 | ||
980 | config ZONE_DMA | ||
981 | bool | ||
982 | default y | ||
983 | |||
980 | config GENERIC_ISA_DMA | 984 | config GENERIC_ISA_DMA |
981 | bool | 985 | bool |
982 | depends on PPC64 || POWER4 || 6xx && !CPM2 | 986 | depends on PPC64 || POWER4 || 6xx && !CPM2 |
diff --git a/arch/powerpc/boot/dts/kuroboxHD.dts b/arch/powerpc/boot/dts/kuroboxHD.dts new file mode 100644 index 000000000000..096e94ac415f --- /dev/null +++ b/arch/powerpc/boot/dts/kuroboxHD.dts | |||
@@ -0,0 +1,148 @@ | |||
1 | /* | ||
2 | * Device Tree Souce for Buffalo KuroboxHD | ||
3 | * | ||
4 | * Choose CONFIG_LINKSTATION to build a kernel for KuroboxHD, or use | ||
5 | * the default configuration linkstation_defconfig. | ||
6 | * | ||
7 | * Based on sandpoint.dts | ||
8 | * | ||
9 | * 2006 (c) G. Liakhovetski <g.liakhovetski@gmx.de> | ||
10 | * | ||
11 | * This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | |||
16 | XXXX add flash parts, rtc, ?? | ||
17 | |||
18 | build with: "dtc -f -I dts -O dtb -o kuroboxHD.dtb -V 16 kuroboxHD.dts" | ||
19 | |||
20 | |||
21 | */ | ||
22 | |||
23 | / { | ||
24 | linux,phandle = <1000>; | ||
25 | model = "KuroboxHD"; | ||
26 | compatible = "linkstation"; | ||
27 | #address-cells = <1>; | ||
28 | #size-cells = <1>; | ||
29 | |||
30 | cpus { | ||
31 | linux,phandle = <2000>; | ||
32 | #cpus = <1>; | ||
33 | #address-cells = <1>; | ||
34 | #size-cells = <0>; | ||
35 | |||
36 | PowerPC,603e { /* Really 8241 */ | ||
37 | linux,phandle = <2100>; | ||
38 | linux,boot-cpu; | ||
39 | device_type = "cpu"; | ||
40 | reg = <0>; | ||
41 | clock-frequency = <bebc200>; /* Fixed by bootwrapper */ | ||
42 | timebase-frequency = <1743000>; /* Fixed by bootwrapper */ | ||
43 | bus-frequency = <0>; /* From bootloader */ | ||
44 | /* Following required by dtc but not used */ | ||
45 | i-cache-line-size = <0>; | ||
46 | d-cache-line-size = <0>; | ||
47 | i-cache-size = <4000>; | ||
48 | d-cache-size = <4000>; | ||
49 | }; | ||
50 | }; | ||
51 | |||
52 | memory { | ||
53 | linux,phandle = <3000>; | ||
54 | device_type = "memory"; | ||
55 | reg = <00000000 04000000>; | ||
56 | }; | ||
57 | |||
58 | soc10x { /* AFAICT need to make soc for 8245's uarts to be defined */ | ||
59 | linux,phandle = <4000>; | ||
60 | #address-cells = <1>; | ||
61 | #size-cells = <1>; | ||
62 | #interrupt-cells = <2>; | ||
63 | device_type = "soc"; | ||
64 | compatible = "mpc10x"; | ||
65 | store-gathering = <0>; /* 0 == off, !0 == on */ | ||
66 | reg = <80000000 00100000>; | ||
67 | ranges = <80000000 80000000 70000000 /* pci mem space */ | ||
68 | fc000000 fc000000 00100000 /* EUMB */ | ||
69 | fe000000 fe000000 00c00000 /* pci i/o space */ | ||
70 | fec00000 fec00000 00300000 /* pci cfg regs */ | ||
71 | fef00000 fef00000 00100000>; /* pci iack */ | ||
72 | |||
73 | i2c@80003000 { | ||
74 | linux,phandle = <4300>; | ||
75 | device_type = "i2c"; | ||
76 | compatible = "fsl-i2c"; | ||
77 | reg = <80003000 1000>; | ||
78 | interrupts = <5 2>; | ||
79 | interrupt-parent = <4400>; | ||
80 | }; | ||
81 | |||
82 | serial@80004500 { | ||
83 | linux,phandle = <4511>; | ||
84 | device_type = "serial"; | ||
85 | compatible = "ns16550"; | ||
86 | reg = <80004500 8>; | ||
87 | clock-frequency = <5d08d88>; | ||
88 | current-speed = <2580>; | ||
89 | interrupts = <9 2>; | ||
90 | interrupt-parent = <4400>; | ||
91 | }; | ||
92 | |||
93 | serial@80004600 { | ||
94 | linux,phandle = <4512>; | ||
95 | device_type = "serial"; | ||
96 | compatible = "ns16550"; | ||
97 | reg = <80004600 8>; | ||
98 | clock-frequency = <5d08d88>; | ||
99 | current-speed = <e100>; | ||
100 | interrupts = <a 0>; | ||
101 | interrupt-parent = <4400>; | ||
102 | }; | ||
103 | |||
104 | pic@80040000 { | ||
105 | linux,phandle = <4400>; | ||
106 | #interrupt-cells = <2>; | ||
107 | #address-cells = <0>; | ||
108 | device_type = "open-pic"; | ||
109 | compatible = "chrp,open-pic"; | ||
110 | interrupt-controller; | ||
111 | reg = <80040000 40000>; | ||
112 | built-in; | ||
113 | }; | ||
114 | |||
115 | pci@fec00000 { | ||
116 | linux,phandle = <4500>; | ||
117 | #address-cells = <3>; | ||
118 | #size-cells = <2>; | ||
119 | #interrupt-cells = <1>; | ||
120 | device_type = "pci"; | ||
121 | compatible = "mpc10x-pci"; | ||
122 | reg = <fec00000 400000>; | ||
123 | ranges = <01000000 0 0 fe000000 0 00c00000 | ||
124 | 02000000 0 80000000 80000000 0 70000000>; | ||
125 | bus-range = <0 ff>; | ||
126 | clock-frequency = <7f28155>; | ||
127 | interrupt-parent = <4400>; | ||
128 | interrupt-map-mask = <f800 0 0 7>; | ||
129 | interrupt-map = < | ||
130 | /* IDSEL 0x11 - IRQ0 ETH */ | ||
131 | 5800 0 0 1 4400 0 1 | ||
132 | 5800 0 0 2 4400 1 1 | ||
133 | 5800 0 0 3 4400 2 1 | ||
134 | 5800 0 0 4 4400 3 1 | ||
135 | /* IDSEL 0x12 - IRQ1 IDE0 */ | ||
136 | 6000 0 0 1 4400 1 1 | ||
137 | 6000 0 0 2 4400 2 1 | ||
138 | 6000 0 0 3 4400 3 1 | ||
139 | 6000 0 0 4 4400 0 1 | ||
140 | /* IDSEL 0x14 - IRQ3 USB2.0 */ | ||
141 | 7000 0 0 1 4400 3 1 | ||
142 | 7000 0 0 2 4400 3 1 | ||
143 | 7000 0 0 3 4400 3 1 | ||
144 | 7000 0 0 4 4400 3 1 | ||
145 | >; | ||
146 | }; | ||
147 | }; | ||
148 | }; | ||
diff --git a/arch/powerpc/boot/dts/lite5200.dts b/arch/powerpc/boot/dts/lite5200.dts index 186870704ad9..c03103c63285 100644 --- a/arch/powerpc/boot/dts/lite5200.dts +++ b/arch/powerpc/boot/dts/lite5200.dts | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Lite5200 board Device Tree Source | 2 | * Lite5200 board Device Tree Source |
3 | * | 3 | * |
4 | * Copyright 2006 Secret Lab Technologies Ltd. | 4 | * Copyright 2006-2007 Secret Lab Technologies Ltd. |
5 | * Grant Likely <grant.likely@secretlab.ca> | 5 | * Grant Likely <grant.likely@secretlab.ca> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
@@ -17,8 +17,9 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | / { | 19 | / { |
20 | model = "Lite5200"; | 20 | model = "fsl,lite5200"; |
21 | compatible = "lite5200\0lite52xx\0mpc5200\0mpc52xx"; | 21 | // revision = "1.0"; |
22 | compatible = "fsl,lite5200\0generic-mpc5200"; | ||
22 | #address-cells = <1>; | 23 | #address-cells = <1>; |
23 | #size-cells = <1>; | 24 | #size-cells = <1>; |
24 | 25 | ||
@@ -47,14 +48,17 @@ | |||
47 | }; | 48 | }; |
48 | 49 | ||
49 | soc5200@f0000000 { | 50 | soc5200@f0000000 { |
51 | model = "fsl,mpc5200"; | ||
52 | revision = "" // from bootloader | ||
50 | #interrupt-cells = <3>; | 53 | #interrupt-cells = <3>; |
51 | device_type = "soc"; | 54 | device_type = "soc"; |
52 | ranges = <0 f0000000 f0010000>; | 55 | ranges = <0 f0000000 f0010000>; |
53 | reg = <f0000000 00010000>; | 56 | reg = <f0000000 00010000>; |
54 | bus-frequency = <0>; // from bootloader | 57 | bus-frequency = <0>; // from bootloader |
58 | system-frequency = <0>; // from bootloader | ||
55 | 59 | ||
56 | cdm@200 { | 60 | cdm@200 { |
57 | compatible = "mpc5200-cdm\0mpc52xx-cdm"; | 61 | compatible = "mpc5200-cdm"; |
58 | reg = <200 38>; | 62 | reg = <200 38>; |
59 | }; | 63 | }; |
60 | 64 | ||
@@ -64,77 +68,86 @@ | |||
64 | interrupt-controller; | 68 | interrupt-controller; |
65 | #interrupt-cells = <3>; | 69 | #interrupt-cells = <3>; |
66 | device_type = "interrupt-controller"; | 70 | device_type = "interrupt-controller"; |
67 | compatible = "mpc5200-pic\0mpc52xx-pic"; | 71 | compatible = "mpc5200-pic"; |
68 | reg = <500 80>; | 72 | reg = <500 80>; |
69 | built-in; | 73 | built-in; |
70 | }; | 74 | }; |
71 | 75 | ||
72 | gpt@600 { // General Purpose Timer | 76 | gpt@600 { // General Purpose Timer |
73 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 77 | compatible = "mpc5200-gpt"; |
74 | device_type = "gpt"; | 78 | device_type = "gpt"; |
79 | cell-index = <0>; | ||
75 | reg = <600 10>; | 80 | reg = <600 10>; |
76 | interrupts = <1 9 0>; | 81 | interrupts = <1 9 0>; |
77 | interrupt-parent = <500>; | 82 | interrupt-parent = <500>; |
83 | has-wdt; | ||
78 | }; | 84 | }; |
79 | 85 | ||
80 | gpt@610 { // General Purpose Timer | 86 | gpt@610 { // General Purpose Timer |
81 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 87 | compatible = "mpc5200-gpt"; |
82 | device_type = "gpt"; | 88 | device_type = "gpt"; |
89 | cell-index = <1>; | ||
83 | reg = <610 10>; | 90 | reg = <610 10>; |
84 | interrupts = <1 a 0>; | 91 | interrupts = <1 a 0>; |
85 | interrupt-parent = <500>; | 92 | interrupt-parent = <500>; |
86 | }; | 93 | }; |
87 | 94 | ||
88 | gpt@620 { // General Purpose Timer | 95 | gpt@620 { // General Purpose Timer |
89 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 96 | compatible = "mpc5200-gpt"; |
90 | device_type = "gpt"; | 97 | device_type = "gpt"; |
98 | cell-index = <2>; | ||
91 | reg = <620 10>; | 99 | reg = <620 10>; |
92 | interrupts = <1 b 0>; | 100 | interrupts = <1 b 0>; |
93 | interrupt-parent = <500>; | 101 | interrupt-parent = <500>; |
94 | }; | 102 | }; |
95 | 103 | ||
96 | gpt@630 { // General Purpose Timer | 104 | gpt@630 { // General Purpose Timer |
97 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 105 | compatible = "mpc5200-gpt"; |
98 | device_type = "gpt"; | 106 | device_type = "gpt"; |
107 | cell-index = <3>; | ||
99 | reg = <630 10>; | 108 | reg = <630 10>; |
100 | interrupts = <1 c 0>; | 109 | interrupts = <1 c 0>; |
101 | interrupt-parent = <500>; | 110 | interrupt-parent = <500>; |
102 | }; | 111 | }; |
103 | 112 | ||
104 | gpt@640 { // General Purpose Timer | 113 | gpt@640 { // General Purpose Timer |
105 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 114 | compatible = "mpc5200-gpt"; |
106 | device_type = "gpt"; | 115 | device_type = "gpt"; |
116 | cell-index = <4>; | ||
107 | reg = <640 10>; | 117 | reg = <640 10>; |
108 | interrupts = <1 d 0>; | 118 | interrupts = <1 d 0>; |
109 | interrupt-parent = <500>; | 119 | interrupt-parent = <500>; |
110 | }; | 120 | }; |
111 | 121 | ||
112 | gpt@650 { // General Purpose Timer | 122 | gpt@650 { // General Purpose Timer |
113 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 123 | compatible = "mpc5200-gpt"; |
114 | device_type = "gpt"; | 124 | device_type = "gpt"; |
125 | cell-index = <5>; | ||
115 | reg = <650 10>; | 126 | reg = <650 10>; |
116 | interrupts = <1 e 0>; | 127 | interrupts = <1 e 0>; |
117 | interrupt-parent = <500>; | 128 | interrupt-parent = <500>; |
118 | }; | 129 | }; |
119 | 130 | ||
120 | gpt@660 { // General Purpose Timer | 131 | gpt@660 { // General Purpose Timer |
121 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 132 | compatible = "mpc5200-gpt"; |
122 | device_type = "gpt"; | 133 | device_type = "gpt"; |
134 | cell-index = <6>; | ||
123 | reg = <660 10>; | 135 | reg = <660 10>; |
124 | interrupts = <1 f 0>; | 136 | interrupts = <1 f 0>; |
125 | interrupt-parent = <500>; | 137 | interrupt-parent = <500>; |
126 | }; | 138 | }; |
127 | 139 | ||
128 | gpt@670 { // General Purpose Timer | 140 | gpt@670 { // General Purpose Timer |
129 | compatible = "mpc5200-gpt\0mpc52xx-gpt"; | 141 | compatible = "mpc5200-gpt"; |
130 | device_type = "gpt"; | 142 | device_type = "gpt"; |
143 | cell-index = <7>; | ||
131 | reg = <670 10>; | 144 | reg = <670 10>; |
132 | interrupts = <1 10 0>; | 145 | interrupts = <1 10 0>; |
133 | interrupt-parent = <500>; | 146 | interrupt-parent = <500>; |
134 | }; | 147 | }; |
135 | 148 | ||
136 | rtc@800 { // Real time clock | 149 | rtc@800 { // Real time clock |
137 | compatible = "mpc5200-rtc\0mpc52xx-rtc"; | 150 | compatible = "mpc5200-rtc"; |
138 | device_type = "rtc"; | 151 | device_type = "rtc"; |
139 | reg = <800 100>; | 152 | reg = <800 100>; |
140 | interrupts = <1 5 0 1 6 0>; | 153 | interrupts = <1 5 0 1 6 0>; |
@@ -143,7 +156,8 @@ | |||
143 | 156 | ||
144 | mscan@900 { | 157 | mscan@900 { |
145 | device_type = "mscan"; | 158 | device_type = "mscan"; |
146 | compatible = "mpc5200-mscan\0mpc52xx-mscan"; | 159 | compatible = "mpc5200-mscan"; |
160 | cell-index = <0>; | ||
147 | interrupts = <2 11 0>; | 161 | interrupts = <2 11 0>; |
148 | interrupt-parent = <500>; | 162 | interrupt-parent = <500>; |
149 | reg = <900 80>; | 163 | reg = <900 80>; |
@@ -151,21 +165,22 @@ | |||
151 | 165 | ||
152 | mscan@980 { | 166 | mscan@980 { |
153 | device_type = "mscan"; | 167 | device_type = "mscan"; |
154 | compatible = "mpc5200-mscan\0mpc52xx-mscan"; | 168 | compatible = "mpc5200-mscan"; |
169 | cell-index = <1>; | ||
155 | interrupts = <1 12 0>; | 170 | interrupts = <1 12 0>; |
156 | interrupt-parent = <500>; | 171 | interrupt-parent = <500>; |
157 | reg = <980 80>; | 172 | reg = <980 80>; |
158 | }; | 173 | }; |
159 | 174 | ||
160 | gpio@b00 { | 175 | gpio@b00 { |
161 | compatible = "mpc5200-gpio\0mpc52xx-gpio"; | 176 | compatible = "mpc5200-gpio"; |
162 | reg = <b00 40>; | 177 | reg = <b00 40>; |
163 | interrupts = <1 7 0>; | 178 | interrupts = <1 7 0>; |
164 | interrupt-parent = <500>; | 179 | interrupt-parent = <500>; |
165 | }; | 180 | }; |
166 | 181 | ||
167 | gpio-wkup@b00 { | 182 | gpio-wkup@b00 { |
168 | compatible = "mpc5200-gpio-wkup\0mpc52xx-gpio-wkup"; | 183 | compatible = "mpc5200-gpio-wkup"; |
169 | reg = <c00 40>; | 184 | reg = <c00 40>; |
170 | interrupts = <1 8 0 0 3 0>; | 185 | interrupts = <1 8 0 0 3 0>; |
171 | interrupt-parent = <500>; | 186 | interrupt-parent = <500>; |
@@ -176,7 +191,7 @@ | |||
176 | #size-cells = <2>; | 191 | #size-cells = <2>; |
177 | #address-cells = <3>; | 192 | #address-cells = <3>; |
178 | device_type = "pci"; | 193 | device_type = "pci"; |
179 | compatible = "mpc5200-pci\0mpc52xx-pci"; | 194 | compatible = "mpc5200-pci"; |
180 | reg = <d00 100>; | 195 | reg = <d00 100>; |
181 | interrupt-map-mask = <f800 0 0 7>; | 196 | interrupt-map-mask = <f800 0 0 7>; |
182 | interrupt-map = <c000 0 0 1 500 0 0 3 | 197 | interrupt-map = <c000 0 0 1 500 0 0 3 |
@@ -194,7 +209,7 @@ | |||
194 | 209 | ||
195 | spi@f00 { | 210 | spi@f00 { |
196 | device_type = "spi"; | 211 | device_type = "spi"; |
197 | compatible = "mpc5200-spi\0mpc52xx-spi"; | 212 | compatible = "mpc5200-spi"; |
198 | reg = <f00 20>; | 213 | reg = <f00 20>; |
199 | interrupts = <2 d 0 2 e 0>; | 214 | interrupts = <2 d 0 2 e 0>; |
200 | interrupt-parent = <500>; | 215 | interrupt-parent = <500>; |
@@ -202,7 +217,7 @@ | |||
202 | 217 | ||
203 | usb@1000 { | 218 | usb@1000 { |
204 | device_type = "usb-ohci-be"; | 219 | device_type = "usb-ohci-be"; |
205 | compatible = "mpc5200-ohci\0mpc52xx-ohci\0ohci-be"; | 220 | compatible = "mpc5200-ohci\0ohci-be"; |
206 | reg = <1000 ff>; | 221 | reg = <1000 ff>; |
207 | interrupts = <2 6 0>; | 222 | interrupts = <2 6 0>; |
208 | interrupt-parent = <500>; | 223 | interrupt-parent = <500>; |
@@ -210,7 +225,7 @@ | |||
210 | 225 | ||
211 | bestcomm@1200 { | 226 | bestcomm@1200 { |
212 | device_type = "dma-controller"; | 227 | device_type = "dma-controller"; |
213 | compatible = "mpc5200-bestcomm\0mpc52xx-bestcomm"; | 228 | compatible = "mpc5200-bestcomm"; |
214 | reg = <1200 80>; | 229 | reg = <1200 80>; |
215 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 | 230 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 |
216 | 3 4 0 3 5 0 3 6 0 3 7 0 | 231 | 3 4 0 3 5 0 3 6 0 3 7 0 |
@@ -220,67 +235,73 @@ | |||
220 | }; | 235 | }; |
221 | 236 | ||
222 | xlb@1f00 { | 237 | xlb@1f00 { |
223 | compatible = "mpc5200-xlb\0mpc52xx-xlb"; | 238 | compatible = "mpc5200-xlb"; |
224 | reg = <1f00 100>; | 239 | reg = <1f00 100>; |
225 | }; | 240 | }; |
226 | 241 | ||
227 | serial@2000 { // PSC1 | 242 | serial@2000 { // PSC1 |
228 | device_type = "serial"; | 243 | device_type = "serial"; |
229 | compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 244 | compatible = "mpc5200-psc-uart"; |
230 | port-number = <0>; // Logical port assignment | 245 | port-number = <0>; // Logical port assignment |
246 | cell-index = <0>; | ||
231 | reg = <2000 100>; | 247 | reg = <2000 100>; |
232 | interrupts = <2 1 0>; | 248 | interrupts = <2 1 0>; |
233 | interrupt-parent = <500>; | 249 | interrupt-parent = <500>; |
234 | }; | 250 | }; |
235 | 251 | ||
236 | // PSC2 in spi mode example | 252 | // PSC2 in ac97 mode example |
237 | spi@2200 { // PSC2 | 253 | //ac97@2200 { // PSC2 |
238 | device_type = "spi"; | 254 | // device_type = "sound"; |
239 | compatible = "mpc5200-psc-spi\0mpc52xx-psc-spi"; | 255 | // compatible = "mpc5200-psc-ac97"; |
240 | reg = <2200 100>; | 256 | // cell-index = <1>; |
241 | interrupts = <2 2 0>; | 257 | // reg = <2200 100>; |
242 | interrupt-parent = <500>; | 258 | // interrupts = <2 2 0>; |
243 | }; | 259 | // interrupt-parent = <500>; |
260 | //}; | ||
244 | 261 | ||
245 | // PSC3 in CODEC mode example | 262 | // PSC3 in CODEC mode example |
246 | i2s@2400 { // PSC3 | 263 | //i2s@2400 { // PSC3 |
247 | device_type = "sound"; | 264 | // device_type = "sound"; |
248 | compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s"; | 265 | // compatible = "mpc5200-psc-i2s"; |
249 | reg = <2400 100>; | 266 | // cell-index = <2>; |
250 | interrupts = <2 3 0>; | 267 | // reg = <2400 100>; |
251 | interrupt-parent = <500>; | 268 | // interrupts = <2 3 0>; |
252 | }; | 269 | // interrupt-parent = <500>; |
270 | //}; | ||
253 | 271 | ||
254 | // PSC4 unconfigured | 272 | // PSC4 in uart mode example |
255 | //serial@2600 { // PSC4 | 273 | //serial@2600 { // PSC4 |
256 | // device_type = "serial"; | 274 | // device_type = "serial"; |
257 | // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 275 | // compatible = "mpc5200-psc-uart"; |
276 | // cell-index = <3>; | ||
258 | // reg = <2600 100>; | 277 | // reg = <2600 100>; |
259 | // interrupts = <2 b 0>; | 278 | // interrupts = <2 b 0>; |
260 | // interrupt-parent = <500>; | 279 | // interrupt-parent = <500>; |
261 | //}; | 280 | //}; |
262 | 281 | ||
263 | // PSC5 unconfigured | 282 | // PSC5 in uart mode example |
264 | //serial@2800 { // PSC5 | 283 | //serial@2800 { // PSC5 |
265 | // device_type = "serial"; | 284 | // device_type = "serial"; |
266 | // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart"; | 285 | // compatible = "mpc5200-psc-uart"; |
286 | // cell-index = <4>; | ||
267 | // reg = <2800 100>; | 287 | // reg = <2800 100>; |
268 | // interrupts = <2 c 0>; | 288 | // interrupts = <2 c 0>; |
269 | // interrupt-parent = <500>; | 289 | // interrupt-parent = <500>; |
270 | //}; | 290 | //}; |
271 | 291 | ||
272 | // PSC6 in AC97 mode example | 292 | // PSC6 in spi mode example |
273 | ac97@2c00 { // PSC6 | 293 | //spi@2c00 { // PSC6 |
274 | device_type = "sound"; | 294 | // device_type = "spi"; |
275 | compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97"; | 295 | // compatible = "mpc5200-psc-spi"; |
276 | reg = <2c00 100>; | 296 | // cell-index = <5>; |
277 | interrupts = <2 4 0>; | 297 | // reg = <2c00 100>; |
278 | interrupt-parent = <500>; | 298 | // interrupts = <2 4 0>; |
279 | }; | 299 | // interrupt-parent = <500>; |
300 | //}; | ||
280 | 301 | ||
281 | ethernet@3000 { | 302 | ethernet@3000 { |
282 | device_type = "network"; | 303 | device_type = "network"; |
283 | compatible = "mpc5200-fec\0mpc52xx-fec"; | 304 | compatible = "mpc5200-fec"; |
284 | reg = <3000 800>; | 305 | reg = <3000 800>; |
285 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! | 306 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! |
286 | interrupts = <2 5 0>; | 307 | interrupts = <2 5 0>; |
@@ -289,7 +310,7 @@ | |||
289 | 310 | ||
290 | ata@3a00 { | 311 | ata@3a00 { |
291 | device_type = "ata"; | 312 | device_type = "ata"; |
292 | compatible = "mpc5200-ata\0mpc52xx-ata"; | 313 | compatible = "mpc5200-ata"; |
293 | reg = <3a00 100>; | 314 | reg = <3a00 100>; |
294 | interrupts = <2 7 0>; | 315 | interrupts = <2 7 0>; |
295 | interrupt-parent = <500>; | 316 | interrupt-parent = <500>; |
@@ -297,7 +318,8 @@ | |||
297 | 318 | ||
298 | i2c@3d00 { | 319 | i2c@3d00 { |
299 | device_type = "i2c"; | 320 | device_type = "i2c"; |
300 | compatible = "mpc5200-i2c\0mpc52xx-i2c"; | 321 | compatible = "mpc5200-i2c"; |
322 | cell-index = <0>; | ||
301 | reg = <3d00 40>; | 323 | reg = <3d00 40>; |
302 | interrupts = <2 f 0>; | 324 | interrupts = <2 f 0>; |
303 | interrupt-parent = <500>; | 325 | interrupt-parent = <500>; |
@@ -305,14 +327,15 @@ | |||
305 | 327 | ||
306 | i2c@3d40 { | 328 | i2c@3d40 { |
307 | device_type = "i2c"; | 329 | device_type = "i2c"; |
308 | compatible = "mpc5200-i2c\0mpc52xx-i2c"; | 330 | compatible = "mpc5200-i2c"; |
331 | cell-index = <1>; | ||
309 | reg = <3d40 40>; | 332 | reg = <3d40 40>; |
310 | interrupts = <2 10 0>; | 333 | interrupts = <2 10 0>; |
311 | interrupt-parent = <500>; | 334 | interrupt-parent = <500>; |
312 | }; | 335 | }; |
313 | sram@8000 { | 336 | sram@8000 { |
314 | device_type = "sram"; | 337 | device_type = "sram"; |
315 | compatible = "mpc5200-sram\0mpc52xx-sram\0sram"; | 338 | compatible = "mpc5200-sram\0sram"; |
316 | reg = <8000 4000>; | 339 | reg = <8000 4000>; |
317 | }; | 340 | }; |
318 | }; | 341 | }; |
diff --git a/arch/powerpc/boot/dts/lite5200b.dts b/arch/powerpc/boot/dts/lite5200b.dts index 5bb2760d7c30..3875ca9a9a62 100644 --- a/arch/powerpc/boot/dts/lite5200b.dts +++ b/arch/powerpc/boot/dts/lite5200b.dts | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Lite5200B board Device Tree Source | 2 | * Lite5200B board Device Tree Source |
3 | * | 3 | * |
4 | * Copyright 2006 Secret Lab Technologies Ltd. | 4 | * Copyright 2006-2007 Secret Lab Technologies Ltd. |
5 | * Grant Likely <grant.likely@secretlab.ca> | 5 | * Grant Likely <grant.likely@secretlab.ca> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
@@ -17,8 +17,9 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | / { | 19 | / { |
20 | model = "Lite5200b"; | 20 | model = "fsl,lite5200b"; |
21 | compatible = "lite5200b\0lite52xx\0mpc5200b\0mpc52xx"; | 21 | // revision = "1.0"; |
22 | compatible = "fsl,lite5200b\0generic-mpc5200"; | ||
22 | #address-cells = <1>; | 23 | #address-cells = <1>; |
23 | #size-cells = <1>; | 24 | #size-cells = <1>; |
24 | 25 | ||
@@ -47,14 +48,17 @@ | |||
47 | }; | 48 | }; |
48 | 49 | ||
49 | soc5200@f0000000 { | 50 | soc5200@f0000000 { |
51 | model = "fsl,mpc5200b"; | ||
52 | revision = ""; // from bootloader | ||
50 | #interrupt-cells = <3>; | 53 | #interrupt-cells = <3>; |
51 | device_type = "soc"; | 54 | device_type = "soc"; |
52 | ranges = <0 f0000000 f0010000>; | 55 | ranges = <0 f0000000 f0010000>; |
53 | reg = <f0000000 00010000>; | 56 | reg = <f0000000 00010000>; |
54 | bus-frequency = <0>; // from bootloader | 57 | bus-frequency = <0>; // from bootloader |
58 | system-frequency = <0>; // from bootloader | ||
55 | 59 | ||
56 | cdm@200 { | 60 | cdm@200 { |
57 | compatible = "mpc5200b-cdm\0mpc52xx-cdm"; | 61 | compatible = "mpc5200b-cdm\0mpc5200-cdm"; |
58 | reg = <200 38>; | 62 | reg = <200 38>; |
59 | }; | 63 | }; |
60 | 64 | ||
@@ -64,77 +68,86 @@ | |||
64 | interrupt-controller; | 68 | interrupt-controller; |
65 | #interrupt-cells = <3>; | 69 | #interrupt-cells = <3>; |
66 | device_type = "interrupt-controller"; | 70 | device_type = "interrupt-controller"; |
67 | compatible = "mpc5200b-pic\0mpc52xx-pic"; | 71 | compatible = "mpc5200b-pic\0mpc5200-pic"; |
68 | reg = <500 80>; | 72 | reg = <500 80>; |
69 | built-in; | 73 | built-in; |
70 | }; | 74 | }; |
71 | 75 | ||
72 | gpt@600 { // General Purpose Timer | 76 | gpt@600 { // General Purpose Timer |
73 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 77 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
74 | device_type = "gpt"; | 78 | device_type = "gpt"; |
79 | cell-index = <0>; | ||
75 | reg = <600 10>; | 80 | reg = <600 10>; |
76 | interrupts = <1 9 0>; | 81 | interrupts = <1 9 0>; |
77 | interrupt-parent = <500>; | 82 | interrupt-parent = <500>; |
83 | has-wdt; | ||
78 | }; | 84 | }; |
79 | 85 | ||
80 | gpt@610 { // General Purpose Timer | 86 | gpt@610 { // General Purpose Timer |
81 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 87 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
82 | device_type = "gpt"; | 88 | device_type = "gpt"; |
89 | cell-index = <1>; | ||
83 | reg = <610 10>; | 90 | reg = <610 10>; |
84 | interrupts = <1 a 0>; | 91 | interrupts = <1 a 0>; |
85 | interrupt-parent = <500>; | 92 | interrupt-parent = <500>; |
86 | }; | 93 | }; |
87 | 94 | ||
88 | gpt@620 { // General Purpose Timer | 95 | gpt@620 { // General Purpose Timer |
89 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 96 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
90 | device_type = "gpt"; | 97 | device_type = "gpt"; |
98 | cell-index = <2>; | ||
91 | reg = <620 10>; | 99 | reg = <620 10>; |
92 | interrupts = <1 b 0>; | 100 | interrupts = <1 b 0>; |
93 | interrupt-parent = <500>; | 101 | interrupt-parent = <500>; |
94 | }; | 102 | }; |
95 | 103 | ||
96 | gpt@630 { // General Purpose Timer | 104 | gpt@630 { // General Purpose Timer |
97 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 105 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
98 | device_type = "gpt"; | 106 | device_type = "gpt"; |
107 | cell-index = <3>; | ||
99 | reg = <630 10>; | 108 | reg = <630 10>; |
100 | interrupts = <1 c 0>; | 109 | interrupts = <1 c 0>; |
101 | interrupt-parent = <500>; | 110 | interrupt-parent = <500>; |
102 | }; | 111 | }; |
103 | 112 | ||
104 | gpt@640 { // General Purpose Timer | 113 | gpt@640 { // General Purpose Timer |
105 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 114 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
106 | device_type = "gpt"; | 115 | device_type = "gpt"; |
116 | cell-index = <4>; | ||
107 | reg = <640 10>; | 117 | reg = <640 10>; |
108 | interrupts = <1 d 0>; | 118 | interrupts = <1 d 0>; |
109 | interrupt-parent = <500>; | 119 | interrupt-parent = <500>; |
110 | }; | 120 | }; |
111 | 121 | ||
112 | gpt@650 { // General Purpose Timer | 122 | gpt@650 { // General Purpose Timer |
113 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 123 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
114 | device_type = "gpt"; | 124 | device_type = "gpt"; |
125 | cell-index = <5>; | ||
115 | reg = <650 10>; | 126 | reg = <650 10>; |
116 | interrupts = <1 e 0>; | 127 | interrupts = <1 e 0>; |
117 | interrupt-parent = <500>; | 128 | interrupt-parent = <500>; |
118 | }; | 129 | }; |
119 | 130 | ||
120 | gpt@660 { // General Purpose Timer | 131 | gpt@660 { // General Purpose Timer |
121 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 132 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
122 | device_type = "gpt"; | 133 | device_type = "gpt"; |
134 | cell-index = <6>; | ||
123 | reg = <660 10>; | 135 | reg = <660 10>; |
124 | interrupts = <1 f 0>; | 136 | interrupts = <1 f 0>; |
125 | interrupt-parent = <500>; | 137 | interrupt-parent = <500>; |
126 | }; | 138 | }; |
127 | 139 | ||
128 | gpt@670 { // General Purpose Timer | 140 | gpt@670 { // General Purpose Timer |
129 | compatible = "mpc5200b-gpt\0mpc52xx-gpt"; | 141 | compatible = "mpc5200b-gpt\0mpc5200-gpt"; |
130 | device_type = "gpt"; | 142 | device_type = "gpt"; |
143 | cell-index = <7>; | ||
131 | reg = <670 10>; | 144 | reg = <670 10>; |
132 | interrupts = <1 10 0>; | 145 | interrupts = <1 10 0>; |
133 | interrupt-parent = <500>; | 146 | interrupt-parent = <500>; |
134 | }; | 147 | }; |
135 | 148 | ||
136 | rtc@800 { // Real time clock | 149 | rtc@800 { // Real time clock |
137 | compatible = "mpc5200b-rtc\0mpc52xx-rtc"; | 150 | compatible = "mpc5200b-rtc\0mpc5200-rtc"; |
138 | device_type = "rtc"; | 151 | device_type = "rtc"; |
139 | reg = <800 100>; | 152 | reg = <800 100>; |
140 | interrupts = <1 5 0 1 6 0>; | 153 | interrupts = <1 5 0 1 6 0>; |
@@ -143,7 +156,8 @@ | |||
143 | 156 | ||
144 | mscan@900 { | 157 | mscan@900 { |
145 | device_type = "mscan"; | 158 | device_type = "mscan"; |
146 | compatible = "mpc5200b-mscan\0mpc52xx-mscan"; | 159 | compatible = "mpc5200b-mscan\0mpc5200-mscan"; |
160 | cell-index = <0>; | ||
147 | interrupts = <2 11 0>; | 161 | interrupts = <2 11 0>; |
148 | interrupt-parent = <500>; | 162 | interrupt-parent = <500>; |
149 | reg = <900 80>; | 163 | reg = <900 80>; |
@@ -151,21 +165,22 @@ | |||
151 | 165 | ||
152 | mscan@980 { | 166 | mscan@980 { |
153 | device_type = "mscan"; | 167 | device_type = "mscan"; |
154 | compatible = "mpc5200b-mscan\0mpc52xx-mscan"; | 168 | compatible = "mpc5200b-mscan\0mpc5200-mscan"; |
169 | cell-index = <1>; | ||
155 | interrupts = <1 12 0>; | 170 | interrupts = <1 12 0>; |
156 | interrupt-parent = <500>; | 171 | interrupt-parent = <500>; |
157 | reg = <980 80>; | 172 | reg = <980 80>; |
158 | }; | 173 | }; |
159 | 174 | ||
160 | gpio@b00 { | 175 | gpio@b00 { |
161 | compatible = "mpc5200b-gpio\0mpc52xx-gpio"; | 176 | compatible = "mpc5200b-gpio\0mpc5200-gpio"; |
162 | reg = <b00 40>; | 177 | reg = <b00 40>; |
163 | interrupts = <1 7 0>; | 178 | interrupts = <1 7 0>; |
164 | interrupt-parent = <500>; | 179 | interrupt-parent = <500>; |
165 | }; | 180 | }; |
166 | 181 | ||
167 | gpio-wkup@b00 { | 182 | gpio-wkup@b00 { |
168 | compatible = "mpc5200b-gpio-wkup\0mpc52xx-gpio-wkup"; | 183 | compatible = "mpc5200b-gpio-wkup\0mpc5200-gpio-wkup"; |
169 | reg = <c00 40>; | 184 | reg = <c00 40>; |
170 | interrupts = <1 8 0 0 3 0>; | 185 | interrupts = <1 8 0 0 3 0>; |
171 | interrupt-parent = <500>; | 186 | interrupt-parent = <500>; |
@@ -176,7 +191,7 @@ | |||
176 | #size-cells = <2>; | 191 | #size-cells = <2>; |
177 | #address-cells = <3>; | 192 | #address-cells = <3>; |
178 | device_type = "pci"; | 193 | device_type = "pci"; |
179 | compatible = "mpc5200b-pci\0mpc52xx-pci"; | 194 | compatible = "mpc5200b-pci\0mpc5200-pci"; |
180 | reg = <d00 100>; | 195 | reg = <d00 100>; |
181 | interrupt-map-mask = <f800 0 0 7>; | 196 | interrupt-map-mask = <f800 0 0 7>; |
182 | interrupt-map = <c000 0 0 1 500 0 0 3 // 1st slot | 197 | interrupt-map = <c000 0 0 1 500 0 0 3 // 1st slot |
@@ -199,7 +214,7 @@ | |||
199 | 214 | ||
200 | spi@f00 { | 215 | spi@f00 { |
201 | device_type = "spi"; | 216 | device_type = "spi"; |
202 | compatible = "mpc5200b-spi\0mpc52xx-spi"; | 217 | compatible = "mpc5200b-spi\0mpc5200-spi"; |
203 | reg = <f00 20>; | 218 | reg = <f00 20>; |
204 | interrupts = <2 d 0 2 e 0>; | 219 | interrupts = <2 d 0 2 e 0>; |
205 | interrupt-parent = <500>; | 220 | interrupt-parent = <500>; |
@@ -207,7 +222,7 @@ | |||
207 | 222 | ||
208 | usb@1000 { | 223 | usb@1000 { |
209 | device_type = "usb-ohci-be"; | 224 | device_type = "usb-ohci-be"; |
210 | compatible = "mpc5200b-ohci\0mpc52xx-ohci\0ohci-be"; | 225 | compatible = "mpc5200b-ohci\0mpc5200-ohci\0ohci-be"; |
211 | reg = <1000 ff>; | 226 | reg = <1000 ff>; |
212 | interrupts = <2 6 0>; | 227 | interrupts = <2 6 0>; |
213 | interrupt-parent = <500>; | 228 | interrupt-parent = <500>; |
@@ -215,7 +230,7 @@ | |||
215 | 230 | ||
216 | bestcomm@1200 { | 231 | bestcomm@1200 { |
217 | device_type = "dma-controller"; | 232 | device_type = "dma-controller"; |
218 | compatible = "mpc5200b-bestcomm\0mpc52xx-bestcomm"; | 233 | compatible = "mpc5200b-bestcomm\0mpc5200-bestcomm"; |
219 | reg = <1200 80>; | 234 | reg = <1200 80>; |
220 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 | 235 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 |
221 | 3 4 0 3 5 0 3 6 0 3 7 0 | 236 | 3 4 0 3 5 0 3 6 0 3 7 0 |
@@ -225,67 +240,73 @@ | |||
225 | }; | 240 | }; |
226 | 241 | ||
227 | xlb@1f00 { | 242 | xlb@1f00 { |
228 | compatible = "mpc5200b-xlb\0mpc52xx-xlb"; | 243 | compatible = "mpc5200b-xlb\0mpc5200-xlb"; |
229 | reg = <1f00 100>; | 244 | reg = <1f00 100>; |
230 | }; | 245 | }; |
231 | 246 | ||
232 | serial@2000 { // PSC1 | 247 | serial@2000 { // PSC1 |
233 | device_type = "serial"; | 248 | device_type = "serial"; |
234 | compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 249 | compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
235 | port-number = <0>; // Logical port assignment | 250 | port-number = <0>; // Logical port assignment |
251 | cell-index = <0>; | ||
236 | reg = <2000 100>; | 252 | reg = <2000 100>; |
237 | interrupts = <2 1 0>; | 253 | interrupts = <2 1 0>; |
238 | interrupt-parent = <500>; | 254 | interrupt-parent = <500>; |
239 | }; | 255 | }; |
240 | 256 | ||
241 | // PSC2 in spi mode example | 257 | // PSC2 in ac97 mode example |
242 | spi@2200 { // PSC2 | 258 | //ac97@2200 { // PSC2 |
243 | device_type = "spi"; | 259 | // device_type = "sound"; |
244 | compatible = "mpc5200b-psc-spi\0mpc52xx-psc-spi"; | 260 | // compatible = "mpc5200b-psc-ac97\0mpc5200-psc-ac97"; |
245 | reg = <2200 100>; | 261 | // cell-index = <1>; |
246 | interrupts = <2 2 0>; | 262 | // reg = <2200 100>; |
247 | interrupt-parent = <500>; | 263 | // interrupts = <2 2 0>; |
248 | }; | 264 | // interrupt-parent = <500>; |
265 | //}; | ||
249 | 266 | ||
250 | // PSC3 in CODEC mode example | 267 | // PSC3 in CODEC mode example |
251 | i2s@2400 { // PSC3 | 268 | //i2s@2400 { // PSC3 |
252 | device_type = "sound"; | 269 | // device_type = "sound"; |
253 | compatible = "mpc5200b-psc-i2s\0mpc52xx-psc-i2s"; | 270 | // compatible = "mpc5200b-psc-i2s"; //not 5200 compatible |
254 | reg = <2400 100>; | 271 | // cell-index = <2>; |
255 | interrupts = <2 3 0>; | 272 | // reg = <2400 100>; |
256 | interrupt-parent = <500>; | 273 | // interrupts = <2 3 0>; |
257 | }; | 274 | // interrupt-parent = <500>; |
275 | //}; | ||
258 | 276 | ||
259 | // PSC4 unconfigured | 277 | // PSC4 in uart mode example |
260 | //serial@2600 { // PSC4 | 278 | //serial@2600 { // PSC4 |
261 | // device_type = "serial"; | 279 | // device_type = "serial"; |
262 | // compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 280 | // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
281 | // cell-index = <3>; | ||
263 | // reg = <2600 100>; | 282 | // reg = <2600 100>; |
264 | // interrupts = <2 b 0>; | 283 | // interrupts = <2 b 0>; |
265 | // interrupt-parent = <500>; | 284 | // interrupt-parent = <500>; |
266 | //}; | 285 | //}; |
267 | 286 | ||
268 | // PSC5 unconfigured | 287 | // PSC5 in uart mode example |
269 | //serial@2800 { // PSC5 | 288 | //serial@2800 { // PSC5 |
270 | // device_type = "serial"; | 289 | // device_type = "serial"; |
271 | // compatible = "mpc5200b-psc-uart\0mpc52xx-psc-uart"; | 290 | // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; |
291 | // cell-index = <4>; | ||
272 | // reg = <2800 100>; | 292 | // reg = <2800 100>; |
273 | // interrupts = <2 c 0>; | 293 | // interrupts = <2 c 0>; |
274 | // interrupt-parent = <500>; | 294 | // interrupt-parent = <500>; |
275 | //}; | 295 | //}; |
276 | 296 | ||
277 | // PSC6 in AC97 mode example | 297 | // PSC6 in spi mode example |
278 | ac97@2c00 { // PSC6 | 298 | //spi@2c00 { // PSC6 |
279 | device_type = "sound"; | 299 | // device_type = "spi"; |
280 | compatible = "mpc5200b-psc-ac97\0mpc52xx-psc-ac97"; | 300 | // compatible = "mpc5200b-psc-spi\0mpc5200-psc-spi"; |
281 | reg = <2c00 100>; | 301 | // cell-index = <5>; |
282 | interrupts = <2 4 0>; | 302 | // reg = <2c00 100>; |
283 | interrupt-parent = <500>; | 303 | // interrupts = <2 4 0>; |
284 | }; | 304 | // interrupt-parent = <500>; |
305 | //}; | ||
285 | 306 | ||
286 | ethernet@3000 { | 307 | ethernet@3000 { |
287 | device_type = "network"; | 308 | device_type = "network"; |
288 | compatible = "mpc5200b-fec\0mpc52xx-fec"; | 309 | compatible = "mpc5200b-fec\0mpc5200-fec"; |
289 | reg = <3000 800>; | 310 | reg = <3000 800>; |
290 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! | 311 | mac-address = [ 02 03 04 05 06 07 ]; // Bad! |
291 | interrupts = <2 5 0>; | 312 | interrupts = <2 5 0>; |
@@ -294,7 +315,7 @@ | |||
294 | 315 | ||
295 | ata@3a00 { | 316 | ata@3a00 { |
296 | device_type = "ata"; | 317 | device_type = "ata"; |
297 | compatible = "mpc5200b-ata\0mpc52xx-ata"; | 318 | compatible = "mpc5200b-ata\0mpc5200-ata"; |
298 | reg = <3a00 100>; | 319 | reg = <3a00 100>; |
299 | interrupts = <2 7 0>; | 320 | interrupts = <2 7 0>; |
300 | interrupt-parent = <500>; | 321 | interrupt-parent = <500>; |
@@ -302,7 +323,8 @@ | |||
302 | 323 | ||
303 | i2c@3d00 { | 324 | i2c@3d00 { |
304 | device_type = "i2c"; | 325 | device_type = "i2c"; |
305 | compatible = "mpc5200b-i2c\0mpc52xx-i2c"; | 326 | compatible = "mpc5200b-i2c\0mpc5200-i2c"; |
327 | cell-index = <0>; | ||
306 | reg = <3d00 40>; | 328 | reg = <3d00 40>; |
307 | interrupts = <2 f 0>; | 329 | interrupts = <2 f 0>; |
308 | interrupt-parent = <500>; | 330 | interrupt-parent = <500>; |
@@ -310,14 +332,15 @@ | |||
310 | 332 | ||
311 | i2c@3d40 { | 333 | i2c@3d40 { |
312 | device_type = "i2c"; | 334 | device_type = "i2c"; |
313 | compatible = "mpc5200b-i2c\0mpc52xx-i2c"; | 335 | compatible = "mpc5200b-i2c\0mpc5200-i2c"; |
336 | cell-index = <1>; | ||
314 | reg = <3d40 40>; | 337 | reg = <3d40 40>; |
315 | interrupts = <2 10 0>; | 338 | interrupts = <2 10 0>; |
316 | interrupt-parent = <500>; | 339 | interrupt-parent = <500>; |
317 | }; | 340 | }; |
318 | sram@8000 { | 341 | sram@8000 { |
319 | device_type = "sram"; | 342 | device_type = "sram"; |
320 | compatible = "mpc5200b-sram\0mpc52xx-sram\0sram"; | 343 | compatible = "mpc5200b-sram\0mpc5200-sram\0sram"; |
321 | reg = <8000 4000>; | 344 | reg = <8000 4000>; |
322 | }; | 345 | }; |
323 | }; | 346 | }; |
diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts b/arch/powerpc/boot/dts/mpc8313erdb.dts new file mode 100644 index 000000000000..3d2f5a06df3f --- /dev/null +++ b/arch/powerpc/boot/dts/mpc8313erdb.dts | |||
@@ -0,0 +1,219 @@ | |||
1 | /* | ||
2 | * MPC8313E RDB Device Tree Source | ||
3 | * | ||
4 | * Copyright 2005, 2006, 2007 Freescale Semiconductor Inc. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License as published by the | ||
8 | * Free Software Foundation; either version 2 of the License, or (at your | ||
9 | * option) any later version. | ||
10 | */ | ||
11 | |||
12 | / { | ||
13 | model = "MPC8313ERDB"; | ||
14 | compatible = "MPC83xx"; | ||
15 | #address-cells = <1>; | ||
16 | #size-cells = <1>; | ||
17 | |||
18 | cpus { | ||
19 | #cpus = <1>; | ||
20 | #address-cells = <1>; | ||
21 | #size-cells = <0>; | ||
22 | |||
23 | PowerPC,8313@0 { | ||
24 | device_type = "cpu"; | ||
25 | reg = <0>; | ||
26 | d-cache-line-size = <20>; // 32 bytes | ||
27 | i-cache-line-size = <20>; // 32 bytes | ||
28 | d-cache-size = <4000>; // L1, 16K | ||
29 | i-cache-size = <4000>; // L1, 16K | ||
30 | timebase-frequency = <0>; // from bootloader | ||
31 | bus-frequency = <0>; // from bootloader | ||
32 | clock-frequency = <0>; // from bootloader | ||
33 | 32-bit; | ||
34 | }; | ||
35 | }; | ||
36 | |||
37 | memory { | ||
38 | device_type = "memory"; | ||
39 | reg = <00000000 08000000>; // 128MB at 0 | ||
40 | }; | ||
41 | |||
42 | soc8313@e0000000 { | ||
43 | #address-cells = <1>; | ||
44 | #size-cells = <1>; | ||
45 | #interrupt-cells = <2>; | ||
46 | device_type = "soc"; | ||
47 | ranges = <0 e0000000 00100000>; | ||
48 | reg = <e0000000 00000200>; | ||
49 | bus-frequency = <0>; | ||
50 | |||
51 | wdt@200 { | ||
52 | device_type = "watchdog"; | ||
53 | compatible = "mpc83xx_wdt"; | ||
54 | reg = <200 100>; | ||
55 | }; | ||
56 | |||
57 | i2c@3000 { | ||
58 | device_type = "i2c"; | ||
59 | compatible = "fsl-i2c"; | ||
60 | reg = <3000 100>; | ||
61 | interrupts = <e 8>; | ||
62 | interrupt-parent = <700>; | ||
63 | dfsrr; | ||
64 | }; | ||
65 | |||
66 | i2c@3100 { | ||
67 | device_type = "i2c"; | ||
68 | compatible = "fsl-i2c"; | ||
69 | reg = <3100 100>; | ||
70 | interrupts = <f 8>; | ||
71 | interrupt-parent = <700>; | ||
72 | dfsrr; | ||
73 | }; | ||
74 | |||
75 | spi@7000 { | ||
76 | device_type = "spi"; | ||
77 | compatible = "mpc83xx_spi"; | ||
78 | reg = <7000 1000>; | ||
79 | interrupts = <10 8>; | ||
80 | interrupt-parent = <700>; | ||
81 | mode = <0>; | ||
82 | }; | ||
83 | |||
84 | /* phy type (ULPI, UTMI, UTMI_WIDE, SERIAL) */ | ||
85 | usb@23000 { | ||
86 | device_type = "usb"; | ||
87 | compatible = "fsl-usb2-dr"; | ||
88 | reg = <23000 1000>; | ||
89 | #address-cells = <1>; | ||
90 | #size-cells = <0>; | ||
91 | interrupt-parent = <700>; | ||
92 | interrupts = <26 2>; | ||
93 | phy_type = "utmi_wide"; | ||
94 | }; | ||
95 | |||
96 | mdio@24520 { | ||
97 | device_type = "mdio"; | ||
98 | compatible = "gianfar"; | ||
99 | reg = <24520 20>; | ||
100 | #address-cells = <1>; | ||
101 | #size-cells = <0>; | ||
102 | linux,phandle = <24520>; | ||
103 | ethernet-phy@1 { | ||
104 | linux,phandle = <2452001>; | ||
105 | interrupt-parent = <700>; | ||
106 | interrupts = <13 2>; | ||
107 | reg = <1>; | ||
108 | device_type = "ethernet-phy"; | ||
109 | }; | ||
110 | ethernet-phy@4 { | ||
111 | linux,phandle = <2452004>; | ||
112 | interrupt-parent = <700>; | ||
113 | interrupts = <14 2>; | ||
114 | reg = <4>; | ||
115 | device_type = "ethernet-phy"; | ||
116 | }; | ||
117 | }; | ||
118 | |||
119 | ethernet@24000 { | ||
120 | device_type = "network"; | ||
121 | model = "eTSEC"; | ||
122 | compatible = "gianfar"; | ||
123 | reg = <24000 1000>; | ||
124 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
125 | interrupts = <25 8 24 8 23 8>; | ||
126 | interrupt-parent = <700>; | ||
127 | phy-handle = <2452001>; | ||
128 | }; | ||
129 | |||
130 | ethernet@25000 { | ||
131 | device_type = "network"; | ||
132 | model = "eTSEC"; | ||
133 | compatible = "gianfar"; | ||
134 | reg = <25000 1000>; | ||
135 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
136 | interrupts = <22 8 21 8 20 8>; | ||
137 | interrupt-parent = <700>; | ||
138 | phy-handle = <2452004>; | ||
139 | }; | ||
140 | |||
141 | serial@4500 { | ||
142 | device_type = "serial"; | ||
143 | compatible = "ns16550"; | ||
144 | reg = <4500 100>; | ||
145 | clock-frequency = <0>; | ||
146 | interrupts = <9 8>; | ||
147 | interrupt-parent = <700>; | ||
148 | }; | ||
149 | |||
150 | serial@4600 { | ||
151 | device_type = "serial"; | ||
152 | compatible = "ns16550"; | ||
153 | reg = <4600 100>; | ||
154 | clock-frequency = <0>; | ||
155 | interrupts = <a 8>; | ||
156 | interrupt-parent = <700>; | ||
157 | }; | ||
158 | |||
159 | pci@8500 { | ||
160 | interrupt-map-mask = <f800 0 0 7>; | ||
161 | interrupt-map = < | ||
162 | |||
163 | /* IDSEL 0x0E -mini PCI */ | ||
164 | 7000 0 0 1 700 12 8 | ||
165 | 7000 0 0 2 700 12 8 | ||
166 | 7000 0 0 3 700 12 8 | ||
167 | 7000 0 0 4 700 12 8 | ||
168 | |||
169 | /* IDSEL 0x0F - PCI slot */ | ||
170 | 7800 0 0 1 700 11 8 | ||
171 | 7800 0 0 2 700 12 8 | ||
172 | 7800 0 0 3 700 11 8 | ||
173 | 7800 0 0 4 700 12 8>; | ||
174 | interrupt-parent = <700>; | ||
175 | interrupts = <42 8>; | ||
176 | bus-range = <0 0>; | ||
177 | ranges = <02000000 0 90000000 90000000 0 10000000 | ||
178 | 42000000 0 80000000 80000000 0 10000000 | ||
179 | 01000000 0 00000000 e2000000 0 00100000>; | ||
180 | clock-frequency = <3f940aa>; | ||
181 | #interrupt-cells = <1>; | ||
182 | #size-cells = <2>; | ||
183 | #address-cells = <3>; | ||
184 | reg = <8500 100>; | ||
185 | compatible = "83xx"; | ||
186 | device_type = "pci"; | ||
187 | }; | ||
188 | |||
189 | crypto@30000 { | ||
190 | device_type = "crypto"; | ||
191 | model = "SEC2"; | ||
192 | compatible = "talitos"; | ||
193 | reg = <30000 7000>; | ||
194 | interrupts = <b 8>; | ||
195 | interrupt-parent = <700>; | ||
196 | /* Rev. 2.2 */ | ||
197 | num-channels = <1>; | ||
198 | channel-fifo-len = <18>; | ||
199 | exec-units-mask = <0000004c>; | ||
200 | descriptor-types-mask = <0122003f>; | ||
201 | }; | ||
202 | |||
203 | /* IPIC | ||
204 | * interrupts cell = <intr #, sense> | ||
205 | * sense values match linux IORESOURCE_IRQ_* defines: | ||
206 | * sense == 8: Level, low assertion | ||
207 | * sense == 2: Edge, high-to-low change | ||
208 | */ | ||
209 | pic@700 { | ||
210 | linux,phandle = <700>; | ||
211 | interrupt-controller; | ||
212 | #address-cells = <0>; | ||
213 | #interrupt-cells = <2>; | ||
214 | reg = <700 100>; | ||
215 | built-in; | ||
216 | device_type = "ipic"; | ||
217 | }; | ||
218 | }; | ||
219 | }; | ||
diff --git a/arch/powerpc/boot/dts/mpc8349emds.dts b/arch/powerpc/boot/dts/mpc834x_mds.dts index efceb3432653..dc121b3cb4a9 100644 --- a/arch/powerpc/boot/dts/mpc8349emds.dts +++ b/arch/powerpc/boot/dts/mpc834x_mds.dts | |||
@@ -39,6 +39,11 @@ | |||
39 | reg = <00000000 10000000>; // 256MB at 0 | 39 | reg = <00000000 10000000>; // 256MB at 0 |
40 | }; | 40 | }; |
41 | 41 | ||
42 | bcsr@e2400000 { | ||
43 | device_type = "board-control"; | ||
44 | reg = <e2400000 8000>; | ||
45 | }; | ||
46 | |||
42 | soc8349@e0000000 { | 47 | soc8349@e0000000 { |
43 | #address-cells = <1>; | 48 | #address-cells = <1>; |
44 | #size-cells = <1>; | 49 | #size-cells = <1>; |
@@ -103,6 +108,7 @@ | |||
103 | #size-cells = <0>; | 108 | #size-cells = <0>; |
104 | interrupt-parent = <700>; | 109 | interrupt-parent = <700>; |
105 | interrupts = <26 2>; | 110 | interrupts = <26 2>; |
111 | dr_mode = "otg"; | ||
106 | phy_type = "ulpi"; | 112 | phy_type = "ulpi"; |
107 | }; | 113 | }; |
108 | 114 | ||
diff --git a/arch/powerpc/configs/linkstation_defconfig b/arch/powerpc/configs/linkstation_defconfig index 405c1c908213..dde66a597a8d 100644 --- a/arch/powerpc/configs/linkstation_defconfig +++ b/arch/powerpc/configs/linkstation_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.20-rc5 | 3 | # Linux kernel version: 2.6.20-rc6 |
4 | # Mon Jan 22 22:17:58 2007 | 4 | # Sun Jan 28 23:13:56 2007 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | CONFIG_PPC32=y | 7 | CONFIG_PPC32=y |
@@ -58,7 +58,7 @@ CONFIG_INIT_ENV_ARG_LIMIT=32 | |||
58 | # | 58 | # |
59 | # General setup | 59 | # General setup |
60 | # | 60 | # |
61 | CONFIG_LOCALVERSION="-kuroboxHG" | 61 | CONFIG_LOCALVERSION="" |
62 | CONFIG_LOCALVERSION_AUTO=y | 62 | CONFIG_LOCALVERSION_AUTO=y |
63 | CONFIG_SWAP=y | 63 | CONFIG_SWAP=y |
64 | CONFIG_SYSVIPC=y | 64 | CONFIG_SYSVIPC=y |
@@ -206,7 +206,7 @@ CONFIG_SPLIT_PTLOCK_CPUS=4 | |||
206 | CONFIG_PROC_DEVICETREE=y | 206 | CONFIG_PROC_DEVICETREE=y |
207 | # CONFIG_CMDLINE_BOOL is not set | 207 | # CONFIG_CMDLINE_BOOL is not set |
208 | # CONFIG_PM is not set | 208 | # CONFIG_PM is not set |
209 | # CONFIG_SECCOMP is not set | 209 | CONFIG_SECCOMP=y |
210 | CONFIG_ISA_DMA_API=y | 210 | CONFIG_ISA_DMA_API=y |
211 | 211 | ||
212 | # | 212 | # |
@@ -312,39 +312,40 @@ CONFIG_NF_CONNTRACK=m | |||
312 | # CONFIG_NF_CT_ACCT is not set | 312 | # CONFIG_NF_CT_ACCT is not set |
313 | # CONFIG_NF_CONNTRACK_MARK is not set | 313 | # CONFIG_NF_CONNTRACK_MARK is not set |
314 | # CONFIG_NF_CONNTRACK_EVENTS is not set | 314 | # CONFIG_NF_CONNTRACK_EVENTS is not set |
315 | # CONFIG_NF_CT_PROTO_SCTP is not set | 315 | CONFIG_NF_CT_PROTO_GRE=m |
316 | # CONFIG_NF_CONNTRACK_AMANDA is not set | 316 | CONFIG_NF_CT_PROTO_SCTP=m |
317 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
317 | CONFIG_NF_CONNTRACK_FTP=m | 318 | CONFIG_NF_CONNTRACK_FTP=m |
318 | # CONFIG_NF_CONNTRACK_H323 is not set | 319 | CONFIG_NF_CONNTRACK_H323=m |
319 | CONFIG_NF_CONNTRACK_IRC=m | 320 | CONFIG_NF_CONNTRACK_IRC=m |
320 | # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set | 321 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m |
321 | # CONFIG_NF_CONNTRACK_PPTP is not set | 322 | CONFIG_NF_CONNTRACK_PPTP=m |
322 | # CONFIG_NF_CONNTRACK_SIP is not set | 323 | CONFIG_NF_CONNTRACK_SIP=m |
323 | CONFIG_NF_CONNTRACK_TFTP=m | 324 | CONFIG_NF_CONNTRACK_TFTP=m |
324 | CONFIG_NETFILTER_XTABLES=m | 325 | CONFIG_NETFILTER_XTABLES=m |
325 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | 326 | # CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set |
326 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set | 327 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set |
327 | CONFIG_NETFILTER_XT_TARGET_MARK=m | 328 | # CONFIG_NETFILTER_XT_TARGET_MARK is not set |
328 | # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set | 329 | # CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set |
329 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | 330 | # CONFIG_NETFILTER_XT_TARGET_NFLOG is not set |
330 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set | 331 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set |
331 | # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set | 332 | # CONFIG_NETFILTER_XT_MATCH_COMMENT is not set |
332 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | 333 | # CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set |
333 | # CONFIG_NETFILTER_XT_MATCH_DCCP is not set | 334 | # CONFIG_NETFILTER_XT_MATCH_DCCP is not set |
334 | # CONFIG_NETFILTER_XT_MATCH_DSCP is not set | 335 | # CONFIG_NETFILTER_XT_MATCH_DSCP is not set |
335 | CONFIG_NETFILTER_XT_MATCH_ESP=m | 336 | # CONFIG_NETFILTER_XT_MATCH_ESP is not set |
336 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | 337 | # CONFIG_NETFILTER_XT_MATCH_HELPER is not set |
337 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | 338 | # CONFIG_NETFILTER_XT_MATCH_LENGTH is not set |
338 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | 339 | # CONFIG_NETFILTER_XT_MATCH_LIMIT is not set |
339 | CONFIG_NETFILTER_XT_MATCH_MAC=m | 340 | CONFIG_NETFILTER_XT_MATCH_MAC=m |
340 | CONFIG_NETFILTER_XT_MATCH_MARK=m | 341 | # CONFIG_NETFILTER_XT_MATCH_MARK is not set |
341 | # CONFIG_NETFILTER_XT_MATCH_POLICY is not set | 342 | # CONFIG_NETFILTER_XT_MATCH_POLICY is not set |
342 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | 343 | # CONFIG_NETFILTER_XT_MATCH_MULTIPORT is not set |
343 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | 344 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m |
344 | # CONFIG_NETFILTER_XT_MATCH_QUOTA is not set | 345 | # CONFIG_NETFILTER_XT_MATCH_QUOTA is not set |
345 | # CONFIG_NETFILTER_XT_MATCH_REALM is not set | 346 | # CONFIG_NETFILTER_XT_MATCH_REALM is not set |
346 | # CONFIG_NETFILTER_XT_MATCH_SCTP is not set | 347 | # CONFIG_NETFILTER_XT_MATCH_SCTP is not set |
347 | # CONFIG_NETFILTER_XT_MATCH_STATE is not set | 348 | CONFIG_NETFILTER_XT_MATCH_STATE=m |
348 | # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set | 349 | # CONFIG_NETFILTER_XT_MATCH_STATISTIC is not set |
349 | # CONFIG_NETFILTER_XT_MATCH_STRING is not set | 350 | # CONFIG_NETFILTER_XT_MATCH_STRING is not set |
350 | # CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set | 351 | # CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set |
@@ -359,12 +360,12 @@ CONFIG_NF_CONNTRACK_PROC_COMPAT=y | |||
359 | CONFIG_IP_NF_IPTABLES=m | 360 | CONFIG_IP_NF_IPTABLES=m |
360 | CONFIG_IP_NF_MATCH_IPRANGE=m | 361 | CONFIG_IP_NF_MATCH_IPRANGE=m |
361 | # CONFIG_IP_NF_MATCH_TOS is not set | 362 | # CONFIG_IP_NF_MATCH_TOS is not set |
362 | # CONFIG_IP_NF_MATCH_RECENT is not set | 363 | CONFIG_IP_NF_MATCH_RECENT=m |
363 | # CONFIG_IP_NF_MATCH_ECN is not set | 364 | # CONFIG_IP_NF_MATCH_ECN is not set |
364 | # CONFIG_IP_NF_MATCH_AH is not set | 365 | # CONFIG_IP_NF_MATCH_AH is not set |
365 | # CONFIG_IP_NF_MATCH_TTL is not set | 366 | # CONFIG_IP_NF_MATCH_TTL is not set |
366 | # CONFIG_IP_NF_MATCH_OWNER is not set | 367 | CONFIG_IP_NF_MATCH_OWNER=m |
367 | # CONFIG_IP_NF_MATCH_ADDRTYPE is not set | 368 | CONFIG_IP_NF_MATCH_ADDRTYPE=m |
368 | CONFIG_IP_NF_FILTER=m | 369 | CONFIG_IP_NF_FILTER=m |
369 | CONFIG_IP_NF_TARGET_REJECT=m | 370 | CONFIG_IP_NF_TARGET_REJECT=m |
370 | # CONFIG_IP_NF_TARGET_LOG is not set | 371 | # CONFIG_IP_NF_TARGET_LOG is not set |
@@ -374,16 +375,17 @@ CONFIG_NF_NAT=m | |||
374 | CONFIG_NF_NAT_NEEDED=y | 375 | CONFIG_NF_NAT_NEEDED=y |
375 | CONFIG_IP_NF_TARGET_MASQUERADE=m | 376 | CONFIG_IP_NF_TARGET_MASQUERADE=m |
376 | CONFIG_IP_NF_TARGET_REDIRECT=m | 377 | CONFIG_IP_NF_TARGET_REDIRECT=m |
377 | CONFIG_IP_NF_TARGET_NETMAP=m | 378 | # CONFIG_IP_NF_TARGET_NETMAP is not set |
378 | CONFIG_IP_NF_TARGET_SAME=m | 379 | # CONFIG_IP_NF_TARGET_SAME is not set |
379 | # CONFIG_NF_NAT_SNMP_BASIC is not set | 380 | # CONFIG_NF_NAT_SNMP_BASIC is not set |
381 | CONFIG_NF_NAT_PROTO_GRE=m | ||
380 | CONFIG_NF_NAT_FTP=m | 382 | CONFIG_NF_NAT_FTP=m |
381 | CONFIG_NF_NAT_IRC=m | 383 | CONFIG_NF_NAT_IRC=m |
382 | CONFIG_NF_NAT_TFTP=m | 384 | CONFIG_NF_NAT_TFTP=m |
383 | # CONFIG_NF_NAT_AMANDA is not set | 385 | CONFIG_NF_NAT_AMANDA=m |
384 | # CONFIG_NF_NAT_PPTP is not set | 386 | CONFIG_NF_NAT_PPTP=m |
385 | # CONFIG_NF_NAT_H323 is not set | 387 | CONFIG_NF_NAT_H323=m |
386 | # CONFIG_NF_NAT_SIP is not set | 388 | CONFIG_NF_NAT_SIP=m |
387 | CONFIG_IP_NF_MANGLE=m | 389 | CONFIG_IP_NF_MANGLE=m |
388 | CONFIG_IP_NF_TARGET_TOS=m | 390 | CONFIG_IP_NF_TARGET_TOS=m |
389 | CONFIG_IP_NF_TARGET_ECN=m | 391 | CONFIG_IP_NF_TARGET_ECN=m |
@@ -472,6 +474,7 @@ CONFIG_MTD_PARTITIONS=y | |||
472 | # User Modules And Translation Layers | 474 | # User Modules And Translation Layers |
473 | # | 475 | # |
474 | CONFIG_MTD_CHAR=y | 476 | CONFIG_MTD_CHAR=y |
477 | CONFIG_MTD_BLKDEVS=y | ||
475 | CONFIG_MTD_BLOCK=y | 478 | CONFIG_MTD_BLOCK=y |
476 | # CONFIG_FTL is not set | 479 | # CONFIG_FTL is not set |
477 | # CONFIG_NFTL is not set | 480 | # CONFIG_NFTL is not set |
@@ -518,6 +521,7 @@ CONFIG_MTD_PHYSMAP=y | |||
518 | CONFIG_MTD_PHYSMAP_START=0xffc00000 | 521 | CONFIG_MTD_PHYSMAP_START=0xffc00000 |
519 | CONFIG_MTD_PHYSMAP_LEN=0x400000 | 522 | CONFIG_MTD_PHYSMAP_LEN=0x400000 |
520 | CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | 523 | CONFIG_MTD_PHYSMAP_BANKWIDTH=1 |
524 | # CONFIG_MTD_PHYSMAP_OF is not set | ||
521 | # CONFIG_MTD_PLATRAM is not set | 525 | # CONFIG_MTD_PLATRAM is not set |
522 | 526 | ||
523 | # | 527 | # |
@@ -540,6 +544,7 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
540 | # NAND Flash Device Drivers | 544 | # NAND Flash Device Drivers |
541 | # | 545 | # |
542 | # CONFIG_MTD_NAND is not set | 546 | # CONFIG_MTD_NAND is not set |
547 | # CONFIG_MTD_NAND_CAFE is not set | ||
543 | 548 | ||
544 | # | 549 | # |
545 | # OneNAND Flash Device Drivers | 550 | # OneNAND Flash Device Drivers |
@@ -696,7 +701,7 @@ CONFIG_ATA=y | |||
696 | # CONFIG_PATA_HPT37X is not set | 701 | # CONFIG_PATA_HPT37X is not set |
697 | # CONFIG_PATA_HPT3X2N is not set | 702 | # CONFIG_PATA_HPT3X2N is not set |
698 | # CONFIG_PATA_HPT3X3 is not set | 703 | # CONFIG_PATA_HPT3X3 is not set |
699 | # CONFIG_PATA_IT821X is not set | 704 | CONFIG_PATA_IT821X=y |
700 | # CONFIG_PATA_JMICRON is not set | 705 | # CONFIG_PATA_JMICRON is not set |
701 | # CONFIG_PATA_TRIFLEX is not set | 706 | # CONFIG_PATA_TRIFLEX is not set |
702 | # CONFIG_PATA_MARVELL is not set | 707 | # CONFIG_PATA_MARVELL is not set |
@@ -763,11 +768,33 @@ CONFIG_TUN=m | |||
763 | # | 768 | # |
764 | # PHY device support | 769 | # PHY device support |
765 | # | 770 | # |
771 | # CONFIG_PHYLIB is not set | ||
766 | 772 | ||
767 | # | 773 | # |
768 | # Ethernet (10 or 100Mbit) | 774 | # Ethernet (10 or 100Mbit) |
769 | # | 775 | # |
770 | # CONFIG_NET_ETHERNET is not set | 776 | CONFIG_NET_ETHERNET=y |
777 | # CONFIG_MII is not set | ||
778 | # CONFIG_HAPPYMEAL is not set | ||
779 | # CONFIG_SUNGEM is not set | ||
780 | # CONFIG_CASSINI is not set | ||
781 | # CONFIG_NET_VENDOR_3COM is not set | ||
782 | |||
783 | # | ||
784 | # Tulip family network device support | ||
785 | # | ||
786 | CONFIG_NET_TULIP=y | ||
787 | # CONFIG_DE2104X is not set | ||
788 | CONFIG_TULIP=y | ||
789 | # CONFIG_TULIP_MWI is not set | ||
790 | CONFIG_TULIP_MMIO=y | ||
791 | # CONFIG_TULIP_NAPI is not set | ||
792 | # CONFIG_DE4X5 is not set | ||
793 | # CONFIG_WINBOND_840 is not set | ||
794 | # CONFIG_DM9102 is not set | ||
795 | # CONFIG_ULI526X is not set | ||
796 | # CONFIG_HP100 is not set | ||
797 | # CONFIG_NET_PCI is not set | ||
771 | 798 | ||
772 | # | 799 | # |
773 | # Ethernet (1000 Mbit) | 800 | # Ethernet (1000 Mbit) |
@@ -829,7 +856,8 @@ CONFIG_NET_RADIO=y | |||
829 | # CONFIG_USB_ZD1201 is not set | 856 | # CONFIG_USB_ZD1201 is not set |
830 | # CONFIG_HOSTAP is not set | 857 | # CONFIG_HOSTAP is not set |
831 | # CONFIG_BCM43XX is not set | 858 | # CONFIG_BCM43XX is not set |
832 | # CONFIG_ZD1211RW is not set | 859 | CONFIG_ZD1211RW=m |
860 | # CONFIG_ZD1211RW_DEBUG is not set | ||
833 | CONFIG_NET_WIRELESS=y | 861 | CONFIG_NET_WIRELESS=y |
834 | 862 | ||
835 | # | 863 | # |
@@ -1098,7 +1126,7 @@ CONFIG_DUMMY_CONSOLE=y | |||
1098 | # | 1126 | # |
1099 | # HID Devices | 1127 | # HID Devices |
1100 | # | 1128 | # |
1101 | CONFIG_HID=y | 1129 | CONFIG_HID=m |
1102 | 1130 | ||
1103 | # | 1131 | # |
1104 | # USB support | 1132 | # USB support |
@@ -1115,7 +1143,6 @@ CONFIG_USB=y | |||
1115 | CONFIG_USB_DEVICEFS=y | 1143 | CONFIG_USB_DEVICEFS=y |
1116 | # CONFIG_USB_BANDWIDTH is not set | 1144 | # CONFIG_USB_BANDWIDTH is not set |
1117 | # CONFIG_USB_DYNAMIC_MINORS is not set | 1145 | # CONFIG_USB_DYNAMIC_MINORS is not set |
1118 | # CONFIG_USB_MULTITHREAD_PROBE is not set | ||
1119 | # CONFIG_USB_OTG is not set | 1146 | # CONFIG_USB_OTG is not set |
1120 | 1147 | ||
1121 | # | 1148 | # |
@@ -1136,7 +1163,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y | |||
1136 | # USB Device Class drivers | 1163 | # USB Device Class drivers |
1137 | # | 1164 | # |
1138 | # CONFIG_USB_ACM is not set | 1165 | # CONFIG_USB_ACM is not set |
1139 | # CONFIG_USB_PRINTER is not set | 1166 | CONFIG_USB_PRINTER=m |
1140 | 1167 | ||
1141 | # | 1168 | # |
1142 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | 1169 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' |
@@ -1371,7 +1398,11 @@ CONFIG_FS_MBCACHE=y | |||
1371 | # CONFIG_REISERFS_FS is not set | 1398 | # CONFIG_REISERFS_FS is not set |
1372 | # CONFIG_JFS_FS is not set | 1399 | # CONFIG_JFS_FS is not set |
1373 | CONFIG_FS_POSIX_ACL=y | 1400 | CONFIG_FS_POSIX_ACL=y |
1374 | # CONFIG_XFS_FS is not set | 1401 | CONFIG_XFS_FS=m |
1402 | # CONFIG_XFS_QUOTA is not set | ||
1403 | # CONFIG_XFS_SECURITY is not set | ||
1404 | # CONFIG_XFS_POSIX_ACL is not set | ||
1405 | # CONFIG_XFS_RT is not set | ||
1375 | # CONFIG_GFS2_FS is not set | 1406 | # CONFIG_GFS2_FS is not set |
1376 | # CONFIG_OCFS2_FS is not set | 1407 | # CONFIG_OCFS2_FS is not set |
1377 | # CONFIG_MINIX_FS is not set | 1408 | # CONFIG_MINIX_FS is not set |
@@ -1461,7 +1492,12 @@ CONFIG_SUNRPC_GSS=y | |||
1461 | CONFIG_RPCSEC_GSS_KRB5=y | 1492 | CONFIG_RPCSEC_GSS_KRB5=y |
1462 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1493 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
1463 | # CONFIG_SMB_FS is not set | 1494 | # CONFIG_SMB_FS is not set |
1464 | # CONFIG_CIFS is not set | 1495 | CONFIG_CIFS=m |
1496 | # CONFIG_CIFS_STATS is not set | ||
1497 | # CONFIG_CIFS_WEAK_PW_HASH is not set | ||
1498 | # CONFIG_CIFS_XATTR is not set | ||
1499 | # CONFIG_CIFS_DEBUG2 is not set | ||
1500 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1465 | # CONFIG_NCP_FS is not set | 1501 | # CONFIG_NCP_FS is not set |
1466 | # CONFIG_CODA_FS is not set | 1502 | # CONFIG_CODA_FS is not set |
1467 | # CONFIG_AFS_FS is not set | 1503 | # CONFIG_AFS_FS is not set |
@@ -1495,7 +1531,7 @@ CONFIG_NLS_CODEPAGE_437=m | |||
1495 | # CONFIG_NLS_CODEPAGE_869 is not set | 1531 | # CONFIG_NLS_CODEPAGE_869 is not set |
1496 | # CONFIG_NLS_CODEPAGE_936 is not set | 1532 | # CONFIG_NLS_CODEPAGE_936 is not set |
1497 | # CONFIG_NLS_CODEPAGE_950 is not set | 1533 | # CONFIG_NLS_CODEPAGE_950 is not set |
1498 | # CONFIG_NLS_CODEPAGE_932 is not set | 1534 | CONFIG_NLS_CODEPAGE_932=m |
1499 | # CONFIG_NLS_CODEPAGE_949 is not set | 1535 | # CONFIG_NLS_CODEPAGE_949 is not set |
1500 | # CONFIG_NLS_CODEPAGE_874 is not set | 1536 | # CONFIG_NLS_CODEPAGE_874 is not set |
1501 | # CONFIG_NLS_ISO8859_8 is not set | 1537 | # CONFIG_NLS_ISO8859_8 is not set |
@@ -1526,12 +1562,14 @@ CONFIG_NLS_UTF8=m | |||
1526 | # Library routines | 1562 | # Library routines |
1527 | # | 1563 | # |
1528 | CONFIG_BITREVERSE=y | 1564 | CONFIG_BITREVERSE=y |
1529 | # CONFIG_CRC_CCITT is not set | 1565 | CONFIG_CRC_CCITT=m |
1530 | # CONFIG_CRC16 is not set | 1566 | # CONFIG_CRC16 is not set |
1531 | CONFIG_CRC32=y | 1567 | CONFIG_CRC32=y |
1532 | CONFIG_LIBCRC32C=m | 1568 | CONFIG_LIBCRC32C=m |
1533 | CONFIG_ZLIB_INFLATE=m | 1569 | CONFIG_ZLIB_INFLATE=m |
1534 | CONFIG_ZLIB_DEFLATE=m | 1570 | CONFIG_ZLIB_DEFLATE=m |
1571 | CONFIG_TEXTSEARCH=y | ||
1572 | CONFIG_TEXTSEARCH_KMP=m | ||
1535 | CONFIG_PLIST=y | 1573 | CONFIG_PLIST=y |
1536 | CONFIG_IOMAP_COPY=y | 1574 | CONFIG_IOMAP_COPY=y |
1537 | 1575 | ||
diff --git a/arch/powerpc/configs/mpc8313_rdb_defconfig b/arch/powerpc/configs/mpc8313_rdb_defconfig new file mode 100644 index 000000000000..f87523716c44 --- /dev/null +++ b/arch/powerpc/configs/mpc8313_rdb_defconfig | |||
@@ -0,0 +1,1409 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.20 | ||
4 | # Wed Feb 7 22:08:04 2007 | ||
5 | # | ||
6 | # CONFIG_PPC64 is not set | ||
7 | CONFIG_PPC32=y | ||
8 | CONFIG_PPC_MERGE=y | ||
9 | CONFIG_MMU=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_IRQ_PER_CPU=y | ||
12 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
13 | CONFIG_ARCH_HAS_ILOG2_U32=y | ||
14 | CONFIG_GENERIC_HWEIGHT=y | ||
15 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
16 | CONFIG_GENERIC_FIND_NEXT_BIT=y | ||
17 | CONFIG_PPC=y | ||
18 | CONFIG_EARLY_PRINTK=y | ||
19 | CONFIG_GENERIC_NVRAM=y | ||
20 | CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y | ||
21 | CONFIG_ARCH_MAY_HAVE_PC_FDC=y | ||
22 | CONFIG_PPC_OF=y | ||
23 | CONFIG_PPC_UDBG_16550=y | ||
24 | # CONFIG_GENERIC_TBSYNC is not set | ||
25 | CONFIG_AUDIT_ARCH=y | ||
26 | CONFIG_GENERIC_BUG=y | ||
27 | CONFIG_DEFAULT_UIMAGE=y | ||
28 | |||
29 | # | ||
30 | # Processor support | ||
31 | # | ||
32 | # CONFIG_CLASSIC32 is not set | ||
33 | # CONFIG_PPC_82xx is not set | ||
34 | CONFIG_PPC_83xx=y | ||
35 | # CONFIG_PPC_85xx is not set | ||
36 | # CONFIG_PPC_86xx is not set | ||
37 | # CONFIG_PPC_8xx is not set | ||
38 | # CONFIG_40x is not set | ||
39 | # CONFIG_44x is not set | ||
40 | # CONFIG_E200 is not set | ||
41 | CONFIG_6xx=y | ||
42 | CONFIG_83xx=y | ||
43 | CONFIG_PPC_FPU=y | ||
44 | # CONFIG_PPC_DCR_NATIVE is not set | ||
45 | # CONFIG_PPC_DCR_MMIO is not set | ||
46 | CONFIG_PPC_STD_MMU=y | ||
47 | CONFIG_PPC_STD_MMU_32=y | ||
48 | # CONFIG_SMP is not set | ||
49 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
50 | |||
51 | # | ||
52 | # Code maturity level options | ||
53 | # | ||
54 | CONFIG_EXPERIMENTAL=y | ||
55 | CONFIG_BROKEN_ON_SMP=y | ||
56 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
57 | |||
58 | # | ||
59 | # General setup | ||
60 | # | ||
61 | CONFIG_LOCALVERSION="" | ||
62 | CONFIG_LOCALVERSION_AUTO=y | ||
63 | CONFIG_SWAP=y | ||
64 | CONFIG_SYSVIPC=y | ||
65 | # CONFIG_IPC_NS is not set | ||
66 | # CONFIG_POSIX_MQUEUE is not set | ||
67 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
68 | # CONFIG_TASKSTATS is not set | ||
69 | # CONFIG_UTS_NS is not set | ||
70 | # CONFIG_AUDIT is not set | ||
71 | # CONFIG_IKCONFIG is not set | ||
72 | CONFIG_SYSFS_DEPRECATED=y | ||
73 | # CONFIG_RELAY is not set | ||
74 | CONFIG_INITRAMFS_SOURCE="" | ||
75 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
76 | CONFIG_SYSCTL=y | ||
77 | CONFIG_EMBEDDED=y | ||
78 | CONFIG_SYSCTL_SYSCALL=y | ||
79 | # CONFIG_KALLSYMS is not set | ||
80 | CONFIG_HOTPLUG=y | ||
81 | CONFIG_PRINTK=y | ||
82 | CONFIG_BUG=y | ||
83 | CONFIG_ELF_CORE=y | ||
84 | CONFIG_BASE_FULL=y | ||
85 | CONFIG_FUTEX=y | ||
86 | # CONFIG_EPOLL is not set | ||
87 | CONFIG_SHMEM=y | ||
88 | CONFIG_SLAB=y | ||
89 | CONFIG_VM_EVENT_COUNTERS=y | ||
90 | CONFIG_RT_MUTEXES=y | ||
91 | # CONFIG_TINY_SHMEM is not set | ||
92 | CONFIG_BASE_SMALL=0 | ||
93 | # CONFIG_SLOB is not set | ||
94 | |||
95 | # | ||
96 | # Loadable module support | ||
97 | # | ||
98 | CONFIG_MODULES=y | ||
99 | CONFIG_MODULE_UNLOAD=y | ||
100 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
101 | # CONFIG_MODVERSIONS is not set | ||
102 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
103 | # CONFIG_KMOD is not set | ||
104 | |||
105 | # | ||
106 | # Block layer | ||
107 | # | ||
108 | CONFIG_BLOCK=y | ||
109 | # CONFIG_LBD is not set | ||
110 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
111 | # CONFIG_LSF is not set | ||
112 | |||
113 | # | ||
114 | # IO Schedulers | ||
115 | # | ||
116 | CONFIG_IOSCHED_NOOP=y | ||
117 | CONFIG_IOSCHED_AS=y | ||
118 | CONFIG_IOSCHED_DEADLINE=y | ||
119 | CONFIG_IOSCHED_CFQ=y | ||
120 | CONFIG_DEFAULT_AS=y | ||
121 | # CONFIG_DEFAULT_DEADLINE is not set | ||
122 | # CONFIG_DEFAULT_CFQ is not set | ||
123 | # CONFIG_DEFAULT_NOOP is not set | ||
124 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
125 | CONFIG_PPC_GEN550=y | ||
126 | # CONFIG_WANT_EARLY_SERIAL is not set | ||
127 | |||
128 | # | ||
129 | # Platform support | ||
130 | # | ||
131 | CONFIG_MPC8313_RDB=y | ||
132 | # CONFIG_MPC832x_MDS is not set | ||
133 | # CONFIG_MPC834x_SYS is not set | ||
134 | # CONFIG_MPC834x_ITX is not set | ||
135 | # CONFIG_MPC8360E_PB is not set | ||
136 | CONFIG_PPC_MPC831x=y | ||
137 | # CONFIG_MPIC is not set | ||
138 | |||
139 | # | ||
140 | # Kernel options | ||
141 | # | ||
142 | # CONFIG_HIGHMEM is not set | ||
143 | # CONFIG_HZ_100 is not set | ||
144 | CONFIG_HZ_250=y | ||
145 | # CONFIG_HZ_300 is not set | ||
146 | # CONFIG_HZ_1000 is not set | ||
147 | CONFIG_HZ=250 | ||
148 | CONFIG_PREEMPT_NONE=y | ||
149 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
150 | # CONFIG_PREEMPT is not set | ||
151 | CONFIG_BINFMT_ELF=y | ||
152 | # CONFIG_BINFMT_MISC is not set | ||
153 | CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y | ||
154 | CONFIG_ARCH_FLATMEM_ENABLE=y | ||
155 | CONFIG_ARCH_POPULATES_NODE_MAP=y | ||
156 | CONFIG_SELECT_MEMORY_MODEL=y | ||
157 | CONFIG_FLATMEM_MANUAL=y | ||
158 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
159 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
160 | CONFIG_FLATMEM=y | ||
161 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
162 | # CONFIG_SPARSEMEM_STATIC is not set | ||
163 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
164 | # CONFIG_RESOURCES_64BIT is not set | ||
165 | CONFIG_PROC_DEVICETREE=y | ||
166 | # CONFIG_CMDLINE_BOOL is not set | ||
167 | # CONFIG_PM is not set | ||
168 | CONFIG_SECCOMP=y | ||
169 | CONFIG_ISA_DMA_API=y | ||
170 | |||
171 | # | ||
172 | # Bus options | ||
173 | # | ||
174 | CONFIG_GENERIC_ISA_DMA=y | ||
175 | # CONFIG_MPIC_WEIRD is not set | ||
176 | # CONFIG_PPC_I8259 is not set | ||
177 | CONFIG_PPC_INDIRECT_PCI=y | ||
178 | CONFIG_FSL_SOC=y | ||
179 | CONFIG_PCI=y | ||
180 | CONFIG_PCI_DOMAINS=y | ||
181 | # CONFIG_PCIEPORTBUS is not set | ||
182 | # CONFIG_PCI_DEBUG is not set | ||
183 | |||
184 | # | ||
185 | # PCCARD (PCMCIA/CardBus) support | ||
186 | # | ||
187 | # CONFIG_PCCARD is not set | ||
188 | |||
189 | # | ||
190 | # PCI Hotplug Support | ||
191 | # | ||
192 | # CONFIG_HOTPLUG_PCI is not set | ||
193 | |||
194 | # | ||
195 | # Advanced setup | ||
196 | # | ||
197 | # CONFIG_ADVANCED_OPTIONS is not set | ||
198 | |||
199 | # | ||
200 | # Default settings for advanced configuration options are used | ||
201 | # | ||
202 | CONFIG_HIGHMEM_START=0xfe000000 | ||
203 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
204 | CONFIG_KERNEL_START=0xc0000000 | ||
205 | CONFIG_TASK_SIZE=0x80000000 | ||
206 | CONFIG_BOOT_LOAD=0x00800000 | ||
207 | |||
208 | # | ||
209 | # Networking | ||
210 | # | ||
211 | CONFIG_NET=y | ||
212 | |||
213 | # | ||
214 | # Networking options | ||
215 | # | ||
216 | # CONFIG_NETDEBUG is not set | ||
217 | CONFIG_PACKET=y | ||
218 | # CONFIG_PACKET_MMAP is not set | ||
219 | CONFIG_UNIX=y | ||
220 | CONFIG_XFRM=y | ||
221 | # CONFIG_XFRM_USER is not set | ||
222 | # CONFIG_XFRM_SUB_POLICY is not set | ||
223 | # CONFIG_NET_KEY is not set | ||
224 | CONFIG_INET=y | ||
225 | CONFIG_IP_MULTICAST=y | ||
226 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
227 | CONFIG_IP_FIB_HASH=y | ||
228 | CONFIG_IP_PNP=y | ||
229 | CONFIG_IP_PNP_DHCP=y | ||
230 | CONFIG_IP_PNP_BOOTP=y | ||
231 | # CONFIG_IP_PNP_RARP is not set | ||
232 | # CONFIG_NET_IPIP is not set | ||
233 | # CONFIG_NET_IPGRE is not set | ||
234 | # CONFIG_IP_MROUTE is not set | ||
235 | # CONFIG_ARPD is not set | ||
236 | CONFIG_SYN_COOKIES=y | ||
237 | # CONFIG_INET_AH is not set | ||
238 | # CONFIG_INET_ESP is not set | ||
239 | # CONFIG_INET_IPCOMP is not set | ||
240 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
241 | # CONFIG_INET_TUNNEL is not set | ||
242 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
243 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
244 | CONFIG_INET_XFRM_MODE_BEET=y | ||
245 | CONFIG_INET_DIAG=y | ||
246 | CONFIG_INET_TCP_DIAG=y | ||
247 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
248 | CONFIG_TCP_CONG_CUBIC=y | ||
249 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
250 | # CONFIG_TCP_MD5SIG is not set | ||
251 | # CONFIG_IPV6 is not set | ||
252 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
253 | # CONFIG_INET6_TUNNEL is not set | ||
254 | # CONFIG_NETWORK_SECMARK is not set | ||
255 | # CONFIG_NETFILTER is not set | ||
256 | |||
257 | # | ||
258 | # DCCP Configuration (EXPERIMENTAL) | ||
259 | # | ||
260 | # CONFIG_IP_DCCP is not set | ||
261 | |||
262 | # | ||
263 | # SCTP Configuration (EXPERIMENTAL) | ||
264 | # | ||
265 | # CONFIG_IP_SCTP is not set | ||
266 | |||
267 | # | ||
268 | # TIPC Configuration (EXPERIMENTAL) | ||
269 | # | ||
270 | # CONFIG_TIPC is not set | ||
271 | # CONFIG_ATM is not set | ||
272 | # CONFIG_BRIDGE is not set | ||
273 | # CONFIG_VLAN_8021Q is not set | ||
274 | # CONFIG_DECNET is not set | ||
275 | # CONFIG_LLC2 is not set | ||
276 | # CONFIG_IPX is not set | ||
277 | # CONFIG_ATALK is not set | ||
278 | # CONFIG_X25 is not set | ||
279 | # CONFIG_LAPB is not set | ||
280 | # CONFIG_ECONET is not set | ||
281 | # CONFIG_WAN_ROUTER is not set | ||
282 | |||
283 | # | ||
284 | # QoS and/or fair queueing | ||
285 | # | ||
286 | # CONFIG_NET_SCHED is not set | ||
287 | |||
288 | # | ||
289 | # Network testing | ||
290 | # | ||
291 | # CONFIG_NET_PKTGEN is not set | ||
292 | # CONFIG_HAMRADIO is not set | ||
293 | # CONFIG_IRDA is not set | ||
294 | # CONFIG_BT is not set | ||
295 | # CONFIG_IEEE80211 is not set | ||
296 | |||
297 | # | ||
298 | # Device Drivers | ||
299 | # | ||
300 | |||
301 | # | ||
302 | # Generic Driver Options | ||
303 | # | ||
304 | CONFIG_STANDALONE=y | ||
305 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
306 | # CONFIG_FW_LOADER is not set | ||
307 | # CONFIG_DEBUG_DRIVER is not set | ||
308 | # CONFIG_SYS_HYPERVISOR is not set | ||
309 | |||
310 | # | ||
311 | # Connector - unified userspace <-> kernelspace linker | ||
312 | # | ||
313 | # CONFIG_CONNECTOR is not set | ||
314 | |||
315 | # | ||
316 | # Memory Technology Devices (MTD) | ||
317 | # | ||
318 | CONFIG_MTD=y | ||
319 | # CONFIG_MTD_DEBUG is not set | ||
320 | # CONFIG_MTD_CONCAT is not set | ||
321 | # CONFIG_MTD_PARTITIONS is not set | ||
322 | |||
323 | # | ||
324 | # User Modules And Translation Layers | ||
325 | # | ||
326 | CONFIG_MTD_CHAR=y | ||
327 | # CONFIG_MTD_BLKDEVS is not set | ||
328 | # CONFIG_MTD_BLOCK is not set | ||
329 | # CONFIG_MTD_BLOCK_RO is not set | ||
330 | # CONFIG_FTL is not set | ||
331 | # CONFIG_NFTL is not set | ||
332 | # CONFIG_INFTL is not set | ||
333 | # CONFIG_RFD_FTL is not set | ||
334 | # CONFIG_SSFDC is not set | ||
335 | |||
336 | # | ||
337 | # RAM/ROM/Flash chip drivers | ||
338 | # | ||
339 | CONFIG_MTD_CFI=y | ||
340 | # CONFIG_MTD_JEDECPROBE is not set | ||
341 | CONFIG_MTD_GEN_PROBE=y | ||
342 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
343 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
344 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
345 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
346 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
347 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
348 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
349 | CONFIG_MTD_CFI_I1=y | ||
350 | CONFIG_MTD_CFI_I2=y | ||
351 | # CONFIG_MTD_CFI_I4 is not set | ||
352 | # CONFIG_MTD_CFI_I8 is not set | ||
353 | # CONFIG_MTD_CFI_INTELEXT is not set | ||
354 | CONFIG_MTD_CFI_AMDSTD=y | ||
355 | # CONFIG_MTD_CFI_STAA is not set | ||
356 | CONFIG_MTD_CFI_UTIL=y | ||
357 | # CONFIG_MTD_RAM is not set | ||
358 | # CONFIG_MTD_ROM is not set | ||
359 | # CONFIG_MTD_ABSENT is not set | ||
360 | # CONFIG_MTD_OBSOLETE_CHIPS is not set | ||
361 | |||
362 | # | ||
363 | # Mapping drivers for chip access | ||
364 | # | ||
365 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
366 | CONFIG_MTD_PHYSMAP=y | ||
367 | CONFIG_MTD_PHYSMAP_START=0xfe000000 | ||
368 | CONFIG_MTD_PHYSMAP_LEN=0x1000000 | ||
369 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
370 | # CONFIG_MTD_PHYSMAP_OF is not set | ||
371 | # CONFIG_MTD_PLATRAM is not set | ||
372 | |||
373 | # | ||
374 | # Self-contained MTD device drivers | ||
375 | # | ||
376 | # CONFIG_MTD_PMC551 is not set | ||
377 | # CONFIG_MTD_DATAFLASH is not set | ||
378 | # CONFIG_MTD_M25P80 is not set | ||
379 | # CONFIG_MTD_SLRAM is not set | ||
380 | # CONFIG_MTD_PHRAM is not set | ||
381 | # CONFIG_MTD_MTDRAM is not set | ||
382 | # CONFIG_MTD_BLOCK2MTD is not set | ||
383 | |||
384 | # | ||
385 | # Disk-On-Chip Device Drivers | ||
386 | # | ||
387 | # CONFIG_MTD_DOC2000 is not set | ||
388 | # CONFIG_MTD_DOC2001 is not set | ||
389 | # CONFIG_MTD_DOC2001PLUS is not set | ||
390 | |||
391 | # | ||
392 | # NAND Flash Device Drivers | ||
393 | # | ||
394 | # CONFIG_MTD_NAND is not set | ||
395 | # CONFIG_MTD_NAND_CAFE is not set | ||
396 | |||
397 | # | ||
398 | # OneNAND Flash Device Drivers | ||
399 | # | ||
400 | # CONFIG_MTD_ONENAND is not set | ||
401 | |||
402 | # | ||
403 | # Parallel port support | ||
404 | # | ||
405 | # CONFIG_PARPORT is not set | ||
406 | |||
407 | # | ||
408 | # Plug and Play support | ||
409 | # | ||
410 | |||
411 | # | ||
412 | # Block devices | ||
413 | # | ||
414 | # CONFIG_BLK_DEV_FD is not set | ||
415 | # CONFIG_BLK_CPQ_DA is not set | ||
416 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
417 | # CONFIG_BLK_DEV_DAC960 is not set | ||
418 | # CONFIG_BLK_DEV_UMEM is not set | ||
419 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
420 | CONFIG_BLK_DEV_LOOP=y | ||
421 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
422 | # CONFIG_BLK_DEV_NBD is not set | ||
423 | # CONFIG_BLK_DEV_SX8 is not set | ||
424 | # CONFIG_BLK_DEV_UB is not set | ||
425 | CONFIG_BLK_DEV_RAM=y | ||
426 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
427 | CONFIG_BLK_DEV_RAM_SIZE=32768 | ||
428 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
429 | CONFIG_BLK_DEV_INITRD=y | ||
430 | # CONFIG_CDROM_PKTCDVD is not set | ||
431 | # CONFIG_ATA_OVER_ETH is not set | ||
432 | |||
433 | # | ||
434 | # Misc devices | ||
435 | # | ||
436 | # CONFIG_SGI_IOC4 is not set | ||
437 | # CONFIG_TIFM_CORE is not set | ||
438 | |||
439 | # | ||
440 | # ATA/ATAPI/MFM/RLL support | ||
441 | # | ||
442 | # CONFIG_IDE is not set | ||
443 | |||
444 | # | ||
445 | # SCSI device support | ||
446 | # | ||
447 | # CONFIG_RAID_ATTRS is not set | ||
448 | CONFIG_SCSI=y | ||
449 | # CONFIG_SCSI_TGT is not set | ||
450 | # CONFIG_SCSI_NETLINK is not set | ||
451 | CONFIG_SCSI_PROC_FS=y | ||
452 | |||
453 | # | ||
454 | # SCSI support type (disk, tape, CD-ROM) | ||
455 | # | ||
456 | # CONFIG_BLK_DEV_SD is not set | ||
457 | # CONFIG_CHR_DEV_ST is not set | ||
458 | # CONFIG_CHR_DEV_OSST is not set | ||
459 | # CONFIG_BLK_DEV_SR is not set | ||
460 | CONFIG_CHR_DEV_SG=y | ||
461 | # CONFIG_CHR_DEV_SCH is not set | ||
462 | |||
463 | # | ||
464 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
465 | # | ||
466 | # CONFIG_SCSI_MULTI_LUN is not set | ||
467 | # CONFIG_SCSI_CONSTANTS is not set | ||
468 | # CONFIG_SCSI_LOGGING is not set | ||
469 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
470 | |||
471 | # | ||
472 | # SCSI Transports | ||
473 | # | ||
474 | CONFIG_SCSI_SPI_ATTRS=y | ||
475 | # CONFIG_SCSI_FC_ATTRS is not set | ||
476 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
477 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
478 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
479 | |||
480 | # | ||
481 | # SCSI low-level drivers | ||
482 | # | ||
483 | # CONFIG_ISCSI_TCP is not set | ||
484 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | ||
485 | # CONFIG_SCSI_3W_9XXX is not set | ||
486 | # CONFIG_SCSI_ACARD is not set | ||
487 | # CONFIG_SCSI_AACRAID is not set | ||
488 | # CONFIG_SCSI_AIC7XXX is not set | ||
489 | # CONFIG_SCSI_AIC7XXX_OLD is not set | ||
490 | # CONFIG_SCSI_AIC79XX is not set | ||
491 | # CONFIG_SCSI_AIC94XX is not set | ||
492 | # CONFIG_SCSI_DPT_I2O is not set | ||
493 | # CONFIG_SCSI_ARCMSR is not set | ||
494 | # CONFIG_MEGARAID_NEWGEN is not set | ||
495 | # CONFIG_MEGARAID_LEGACY is not set | ||
496 | # CONFIG_MEGARAID_SAS is not set | ||
497 | # CONFIG_SCSI_HPTIOP is not set | ||
498 | # CONFIG_SCSI_BUSLOGIC is not set | ||
499 | # CONFIG_SCSI_DMX3191D is not set | ||
500 | # CONFIG_SCSI_EATA is not set | ||
501 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | ||
502 | # CONFIG_SCSI_GDTH is not set | ||
503 | # CONFIG_SCSI_IPS is not set | ||
504 | # CONFIG_SCSI_INITIO is not set | ||
505 | # CONFIG_SCSI_INIA100 is not set | ||
506 | # CONFIG_SCSI_STEX is not set | ||
507 | # CONFIG_SCSI_SYM53C8XX_2 is not set | ||
508 | # CONFIG_SCSI_QLOGIC_1280 is not set | ||
509 | # CONFIG_SCSI_QLA_FC is not set | ||
510 | # CONFIG_SCSI_QLA_ISCSI is not set | ||
511 | # CONFIG_SCSI_LPFC is not set | ||
512 | # CONFIG_SCSI_DC395x is not set | ||
513 | # CONFIG_SCSI_DC390T is not set | ||
514 | # CONFIG_SCSI_NSP32 is not set | ||
515 | # CONFIG_SCSI_DEBUG is not set | ||
516 | # CONFIG_SCSI_SRP is not set | ||
517 | |||
518 | # | ||
519 | # Serial ATA (prod) and Parallel ATA (experimental) drivers | ||
520 | # | ||
521 | # CONFIG_ATA is not set | ||
522 | |||
523 | # | ||
524 | # Multi-device support (RAID and LVM) | ||
525 | # | ||
526 | CONFIG_MD=y | ||
527 | CONFIG_BLK_DEV_MD=y | ||
528 | CONFIG_MD_LINEAR=y | ||
529 | CONFIG_MD_RAID0=y | ||
530 | CONFIG_MD_RAID1=y | ||
531 | # CONFIG_MD_RAID10 is not set | ||
532 | # CONFIG_MD_RAID456 is not set | ||
533 | # CONFIG_MD_MULTIPATH is not set | ||
534 | # CONFIG_MD_FAULTY is not set | ||
535 | # CONFIG_BLK_DEV_DM is not set | ||
536 | |||
537 | # | ||
538 | # Fusion MPT device support | ||
539 | # | ||
540 | # CONFIG_FUSION is not set | ||
541 | # CONFIG_FUSION_SPI is not set | ||
542 | # CONFIG_FUSION_FC is not set | ||
543 | # CONFIG_FUSION_SAS is not set | ||
544 | |||
545 | # | ||
546 | # IEEE 1394 (FireWire) support | ||
547 | # | ||
548 | # CONFIG_IEEE1394 is not set | ||
549 | |||
550 | # | ||
551 | # I2O device support | ||
552 | # | ||
553 | # CONFIG_I2O is not set | ||
554 | |||
555 | # | ||
556 | # Macintosh device drivers | ||
557 | # | ||
558 | # CONFIG_MAC_EMUMOUSEBTN is not set | ||
559 | # CONFIG_WINDFARM is not set | ||
560 | |||
561 | # | ||
562 | # Network device support | ||
563 | # | ||
564 | CONFIG_NETDEVICES=y | ||
565 | # CONFIG_DUMMY is not set | ||
566 | # CONFIG_BONDING is not set | ||
567 | # CONFIG_EQUALIZER is not set | ||
568 | # CONFIG_TUN is not set | ||
569 | |||
570 | # | ||
571 | # ARCnet devices | ||
572 | # | ||
573 | # CONFIG_ARCNET is not set | ||
574 | |||
575 | # | ||
576 | # PHY device support | ||
577 | # | ||
578 | CONFIG_PHYLIB=y | ||
579 | |||
580 | # | ||
581 | # MII PHY device drivers | ||
582 | # | ||
583 | # CONFIG_MARVELL_PHY is not set | ||
584 | # CONFIG_DAVICOM_PHY is not set | ||
585 | # CONFIG_QSEMI_PHY is not set | ||
586 | # CONFIG_LXT_PHY is not set | ||
587 | CONFIG_CICADA_PHY=y | ||
588 | # CONFIG_VITESSE_PHY is not set | ||
589 | # CONFIG_SMSC_PHY is not set | ||
590 | # CONFIG_BROADCOM_PHY is not set | ||
591 | # CONFIG_FIXED_PHY is not set | ||
592 | |||
593 | # | ||
594 | # Ethernet (10 or 100Mbit) | ||
595 | # | ||
596 | CONFIG_NET_ETHERNET=y | ||
597 | CONFIG_MII=y | ||
598 | # CONFIG_HAPPYMEAL is not set | ||
599 | # CONFIG_SUNGEM is not set | ||
600 | # CONFIG_CASSINI is not set | ||
601 | # CONFIG_NET_VENDOR_3COM is not set | ||
602 | |||
603 | # | ||
604 | # Tulip family network device support | ||
605 | # | ||
606 | # CONFIG_NET_TULIP is not set | ||
607 | # CONFIG_HP100 is not set | ||
608 | CONFIG_NET_PCI=y | ||
609 | # CONFIG_PCNET32 is not set | ||
610 | # CONFIG_AMD8111_ETH is not set | ||
611 | # CONFIG_ADAPTEC_STARFIRE is not set | ||
612 | # CONFIG_B44 is not set | ||
613 | # CONFIG_FORCEDETH is not set | ||
614 | # CONFIG_DGRS is not set | ||
615 | # CONFIG_EEPRO100 is not set | ||
616 | CONFIG_E100=y | ||
617 | # CONFIG_FEALNX is not set | ||
618 | # CONFIG_NATSEMI is not set | ||
619 | # CONFIG_NE2K_PCI is not set | ||
620 | # CONFIG_8139CP is not set | ||
621 | # CONFIG_8139TOO is not set | ||
622 | # CONFIG_SIS900 is not set | ||
623 | # CONFIG_EPIC100 is not set | ||
624 | # CONFIG_SUNDANCE is not set | ||
625 | # CONFIG_TLAN is not set | ||
626 | # CONFIG_VIA_RHINE is not set | ||
627 | |||
628 | # | ||
629 | # Ethernet (1000 Mbit) | ||
630 | # | ||
631 | # CONFIG_ACENIC is not set | ||
632 | # CONFIG_DL2K is not set | ||
633 | # CONFIG_E1000 is not set | ||
634 | # CONFIG_NS83820 is not set | ||
635 | # CONFIG_HAMACHI is not set | ||
636 | # CONFIG_YELLOWFIN is not set | ||
637 | # CONFIG_R8169 is not set | ||
638 | # CONFIG_SIS190 is not set | ||
639 | # CONFIG_SKGE is not set | ||
640 | # CONFIG_SKY2 is not set | ||
641 | # CONFIG_SK98LIN is not set | ||
642 | # CONFIG_VIA_VELOCITY is not set | ||
643 | # CONFIG_TIGON3 is not set | ||
644 | # CONFIG_BNX2 is not set | ||
645 | CONFIG_GIANFAR=y | ||
646 | CONFIG_GFAR_NAPI=y | ||
647 | # CONFIG_QLA3XXX is not set | ||
648 | |||
649 | # | ||
650 | # Ethernet (10000 Mbit) | ||
651 | # | ||
652 | # CONFIG_CHELSIO_T1 is not set | ||
653 | # CONFIG_IXGB is not set | ||
654 | # CONFIG_S2IO is not set | ||
655 | # CONFIG_MYRI10GE is not set | ||
656 | # CONFIG_NETXEN_NIC is not set | ||
657 | |||
658 | # | ||
659 | # Token Ring devices | ||
660 | # | ||
661 | # CONFIG_TR is not set | ||
662 | |||
663 | # | ||
664 | # Wireless LAN (non-hamradio) | ||
665 | # | ||
666 | # CONFIG_NET_RADIO is not set | ||
667 | |||
668 | # | ||
669 | # Wan interfaces | ||
670 | # | ||
671 | # CONFIG_WAN is not set | ||
672 | # CONFIG_FDDI is not set | ||
673 | # CONFIG_HIPPI is not set | ||
674 | # CONFIG_PPP is not set | ||
675 | # CONFIG_SLIP is not set | ||
676 | # CONFIG_NET_FC is not set | ||
677 | # CONFIG_SHAPER is not set | ||
678 | # CONFIG_NETCONSOLE is not set | ||
679 | # CONFIG_NETPOLL is not set | ||
680 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
681 | |||
682 | # | ||
683 | # ISDN subsystem | ||
684 | # | ||
685 | # CONFIG_ISDN is not set | ||
686 | |||
687 | # | ||
688 | # Telephony Support | ||
689 | # | ||
690 | # CONFIG_PHONE is not set | ||
691 | |||
692 | # | ||
693 | # Input device support | ||
694 | # | ||
695 | CONFIG_INPUT=y | ||
696 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
697 | |||
698 | # | ||
699 | # Userland interfaces | ||
700 | # | ||
701 | # CONFIG_INPUT_MOUSEDEV is not set | ||
702 | # CONFIG_INPUT_JOYDEV is not set | ||
703 | # CONFIG_INPUT_TSDEV is not set | ||
704 | # CONFIG_INPUT_EVDEV is not set | ||
705 | # CONFIG_INPUT_EVBUG is not set | ||
706 | |||
707 | # | ||
708 | # Input Device Drivers | ||
709 | # | ||
710 | # CONFIG_INPUT_KEYBOARD is not set | ||
711 | # CONFIG_INPUT_MOUSE is not set | ||
712 | # CONFIG_INPUT_JOYSTICK is not set | ||
713 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
714 | # CONFIG_INPUT_MISC is not set | ||
715 | |||
716 | # | ||
717 | # Hardware I/O ports | ||
718 | # | ||
719 | # CONFIG_SERIO is not set | ||
720 | # CONFIG_GAMEPORT is not set | ||
721 | |||
722 | # | ||
723 | # Character devices | ||
724 | # | ||
725 | # CONFIG_VT is not set | ||
726 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
727 | |||
728 | # | ||
729 | # Serial drivers | ||
730 | # | ||
731 | CONFIG_SERIAL_8250=y | ||
732 | CONFIG_SERIAL_8250_CONSOLE=y | ||
733 | CONFIG_SERIAL_8250_PCI=y | ||
734 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
735 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 | ||
736 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
737 | |||
738 | # | ||
739 | # Non-8250 serial port support | ||
740 | # | ||
741 | # CONFIG_SERIAL_UARTLITE is not set | ||
742 | CONFIG_SERIAL_CORE=y | ||
743 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
744 | # CONFIG_SERIAL_JSM is not set | ||
745 | CONFIG_UNIX98_PTYS=y | ||
746 | CONFIG_LEGACY_PTYS=y | ||
747 | CONFIG_LEGACY_PTY_COUNT=256 | ||
748 | |||
749 | # | ||
750 | # IPMI | ||
751 | # | ||
752 | # CONFIG_IPMI_HANDLER is not set | ||
753 | |||
754 | # | ||
755 | # Watchdog Cards | ||
756 | # | ||
757 | CONFIG_WATCHDOG=y | ||
758 | # CONFIG_WATCHDOG_NOWAYOUT is not set | ||
759 | |||
760 | # | ||
761 | # Watchdog Device Drivers | ||
762 | # | ||
763 | # CONFIG_SOFT_WATCHDOG is not set | ||
764 | CONFIG_83xx_WDT=y | ||
765 | |||
766 | # | ||
767 | # PCI-based Watchdog Cards | ||
768 | # | ||
769 | # CONFIG_PCIPCWATCHDOG is not set | ||
770 | # CONFIG_WDTPCI is not set | ||
771 | |||
772 | # | ||
773 | # USB-based Watchdog Cards | ||
774 | # | ||
775 | # CONFIG_USBPCWATCHDOG is not set | ||
776 | CONFIG_HW_RANDOM=y | ||
777 | # CONFIG_NVRAM is not set | ||
778 | # CONFIG_GEN_RTC is not set | ||
779 | # CONFIG_DTLK is not set | ||
780 | # CONFIG_R3964 is not set | ||
781 | # CONFIG_APPLICOM is not set | ||
782 | # CONFIG_AGP is not set | ||
783 | # CONFIG_DRM is not set | ||
784 | # CONFIG_RAW_DRIVER is not set | ||
785 | |||
786 | # | ||
787 | # TPM devices | ||
788 | # | ||
789 | # CONFIG_TCG_TPM is not set | ||
790 | |||
791 | # | ||
792 | # I2C support | ||
793 | # | ||
794 | CONFIG_I2C=y | ||
795 | CONFIG_I2C_CHARDEV=y | ||
796 | |||
797 | # | ||
798 | # I2C Algorithms | ||
799 | # | ||
800 | # CONFIG_I2C_ALGOBIT is not set | ||
801 | # CONFIG_I2C_ALGOPCF is not set | ||
802 | # CONFIG_I2C_ALGOPCA is not set | ||
803 | |||
804 | # | ||
805 | # I2C Hardware Bus support | ||
806 | # | ||
807 | # CONFIG_I2C_ALI1535 is not set | ||
808 | # CONFIG_I2C_ALI1563 is not set | ||
809 | # CONFIG_I2C_ALI15X3 is not set | ||
810 | # CONFIG_I2C_AMD756 is not set | ||
811 | # CONFIG_I2C_AMD8111 is not set | ||
812 | # CONFIG_I2C_I801 is not set | ||
813 | # CONFIG_I2C_I810 is not set | ||
814 | # CONFIG_I2C_PIIX4 is not set | ||
815 | CONFIG_I2C_MPC=y | ||
816 | # CONFIG_I2C_NFORCE2 is not set | ||
817 | # CONFIG_I2C_OCORES is not set | ||
818 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
819 | # CONFIG_I2C_PROSAVAGE is not set | ||
820 | # CONFIG_I2C_SAVAGE4 is not set | ||
821 | # CONFIG_I2C_SIS5595 is not set | ||
822 | # CONFIG_I2C_SIS630 is not set | ||
823 | # CONFIG_I2C_SIS96X is not set | ||
824 | # CONFIG_I2C_STUB is not set | ||
825 | # CONFIG_I2C_VIA is not set | ||
826 | # CONFIG_I2C_VIAPRO is not set | ||
827 | # CONFIG_I2C_VOODOO3 is not set | ||
828 | # CONFIG_I2C_PCA_ISA is not set | ||
829 | |||
830 | # | ||
831 | # Miscellaneous I2C Chip support | ||
832 | # | ||
833 | # CONFIG_SENSORS_DS1337 is not set | ||
834 | # CONFIG_SENSORS_DS1374 is not set | ||
835 | # CONFIG_SENSORS_EEPROM is not set | ||
836 | # CONFIG_SENSORS_PCF8574 is not set | ||
837 | # CONFIG_SENSORS_PCA9539 is not set | ||
838 | # CONFIG_SENSORS_PCF8591 is not set | ||
839 | # CONFIG_SENSORS_M41T00 is not set | ||
840 | # CONFIG_SENSORS_MAX6875 is not set | ||
841 | # CONFIG_I2C_DEBUG_CORE is not set | ||
842 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
843 | # CONFIG_I2C_DEBUG_BUS is not set | ||
844 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
845 | |||
846 | # | ||
847 | # SPI support | ||
848 | # | ||
849 | CONFIG_SPI=y | ||
850 | # CONFIG_SPI_DEBUG is not set | ||
851 | CONFIG_SPI_MASTER=y | ||
852 | |||
853 | # | ||
854 | # SPI Master Controller Drivers | ||
855 | # | ||
856 | CONFIG_SPI_BITBANG=y | ||
857 | CONFIG_SPI_MPC83xx=y | ||
858 | |||
859 | # | ||
860 | # SPI Protocol Masters | ||
861 | # | ||
862 | |||
863 | # | ||
864 | # Dallas's 1-wire bus | ||
865 | # | ||
866 | # CONFIG_W1 is not set | ||
867 | |||
868 | # | ||
869 | # Hardware Monitoring support | ||
870 | # | ||
871 | CONFIG_HWMON=y | ||
872 | # CONFIG_HWMON_VID is not set | ||
873 | # CONFIG_SENSORS_ABITUGURU is not set | ||
874 | # CONFIG_SENSORS_ADM1021 is not set | ||
875 | # CONFIG_SENSORS_ADM1025 is not set | ||
876 | # CONFIG_SENSORS_ADM1026 is not set | ||
877 | # CONFIG_SENSORS_ADM1031 is not set | ||
878 | # CONFIG_SENSORS_ADM9240 is not set | ||
879 | # CONFIG_SENSORS_ASB100 is not set | ||
880 | # CONFIG_SENSORS_ATXP1 is not set | ||
881 | # CONFIG_SENSORS_DS1621 is not set | ||
882 | # CONFIG_SENSORS_F71805F is not set | ||
883 | # CONFIG_SENSORS_FSCHER is not set | ||
884 | # CONFIG_SENSORS_FSCPOS is not set | ||
885 | # CONFIG_SENSORS_GL518SM is not set | ||
886 | # CONFIG_SENSORS_GL520SM is not set | ||
887 | # CONFIG_SENSORS_IT87 is not set | ||
888 | # CONFIG_SENSORS_LM63 is not set | ||
889 | # CONFIG_SENSORS_LM70 is not set | ||
890 | # CONFIG_SENSORS_LM75 is not set | ||
891 | # CONFIG_SENSORS_LM77 is not set | ||
892 | # CONFIG_SENSORS_LM78 is not set | ||
893 | # CONFIG_SENSORS_LM80 is not set | ||
894 | # CONFIG_SENSORS_LM83 is not set | ||
895 | # CONFIG_SENSORS_LM85 is not set | ||
896 | # CONFIG_SENSORS_LM87 is not set | ||
897 | # CONFIG_SENSORS_LM90 is not set | ||
898 | # CONFIG_SENSORS_LM92 is not set | ||
899 | # CONFIG_SENSORS_MAX1619 is not set | ||
900 | # CONFIG_SENSORS_PC87360 is not set | ||
901 | # CONFIG_SENSORS_PC87427 is not set | ||
902 | # CONFIG_SENSORS_SIS5595 is not set | ||
903 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
904 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
905 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
906 | # CONFIG_SENSORS_VIA686A is not set | ||
907 | # CONFIG_SENSORS_VT1211 is not set | ||
908 | # CONFIG_SENSORS_VT8231 is not set | ||
909 | # CONFIG_SENSORS_W83781D is not set | ||
910 | # CONFIG_SENSORS_W83791D is not set | ||
911 | # CONFIG_SENSORS_W83792D is not set | ||
912 | # CONFIG_SENSORS_W83793 is not set | ||
913 | # CONFIG_SENSORS_W83L785TS is not set | ||
914 | # CONFIG_SENSORS_W83627HF is not set | ||
915 | # CONFIG_SENSORS_W83627EHF is not set | ||
916 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
917 | |||
918 | # | ||
919 | # Multimedia devices | ||
920 | # | ||
921 | # CONFIG_VIDEO_DEV is not set | ||
922 | |||
923 | # | ||
924 | # Digital Video Broadcasting Devices | ||
925 | # | ||
926 | # CONFIG_DVB is not set | ||
927 | # CONFIG_USB_DABUSB is not set | ||
928 | |||
929 | # | ||
930 | # Graphics support | ||
931 | # | ||
932 | CONFIG_FIRMWARE_EDID=y | ||
933 | # CONFIG_FB is not set | ||
934 | # CONFIG_FB_IBM_GXT4500 is not set | ||
935 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
936 | |||
937 | # | ||
938 | # Sound | ||
939 | # | ||
940 | # CONFIG_SOUND is not set | ||
941 | |||
942 | # | ||
943 | # HID Devices | ||
944 | # | ||
945 | CONFIG_HID=y | ||
946 | |||
947 | # | ||
948 | # USB support | ||
949 | # | ||
950 | CONFIG_USB_ARCH_HAS_HCD=y | ||
951 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
952 | CONFIG_USB_ARCH_HAS_EHCI=y | ||
953 | CONFIG_USB=y | ||
954 | # CONFIG_USB_DEBUG is not set | ||
955 | |||
956 | # | ||
957 | # Miscellaneous USB options | ||
958 | # | ||
959 | CONFIG_USB_DEVICEFS=y | ||
960 | # CONFIG_USB_BANDWIDTH is not set | ||
961 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
962 | # CONFIG_USB_OTG is not set | ||
963 | |||
964 | # | ||
965 | # USB Host Controller Drivers | ||
966 | # | ||
967 | CONFIG_USB_EHCI_HCD=y | ||
968 | # CONFIG_USB_EHCI_SPLIT_ISO is not set | ||
969 | # CONFIG_USB_EHCI_ROOT_HUB_TT is not set | ||
970 | # CONFIG_USB_EHCI_TT_NEWSCHED is not set | ||
971 | # CONFIG_USB_ISP116X_HCD is not set | ||
972 | CONFIG_USB_OHCI_HCD=y | ||
973 | # CONFIG_USB_OHCI_BIG_ENDIAN is not set | ||
974 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
975 | CONFIG_USB_UHCI_HCD=y | ||
976 | # CONFIG_USB_SL811_HCD is not set | ||
977 | |||
978 | # | ||
979 | # USB Device Class drivers | ||
980 | # | ||
981 | # CONFIG_USB_ACM is not set | ||
982 | # CONFIG_USB_PRINTER is not set | ||
983 | |||
984 | # | ||
985 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
986 | # | ||
987 | |||
988 | # | ||
989 | # may also be needed; see USB_STORAGE Help for more information | ||
990 | # | ||
991 | CONFIG_USB_STORAGE=y | ||
992 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
993 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
994 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
995 | # CONFIG_USB_STORAGE_DPCM is not set | ||
996 | # CONFIG_USB_STORAGE_USBAT is not set | ||
997 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
998 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
999 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
1000 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1001 | # CONFIG_USB_STORAGE_KARMA is not set | ||
1002 | # CONFIG_USB_LIBUSUAL is not set | ||
1003 | |||
1004 | # | ||
1005 | # USB Input Devices | ||
1006 | # | ||
1007 | # CONFIG_USB_HID is not set | ||
1008 | |||
1009 | # | ||
1010 | # USB HID Boot Protocol drivers | ||
1011 | # | ||
1012 | # CONFIG_USB_KBD is not set | ||
1013 | # CONFIG_USB_MOUSE is not set | ||
1014 | # CONFIG_USB_AIPTEK is not set | ||
1015 | # CONFIG_USB_WACOM is not set | ||
1016 | # CONFIG_USB_ACECAD is not set | ||
1017 | # CONFIG_USB_KBTAB is not set | ||
1018 | # CONFIG_USB_POWERMATE is not set | ||
1019 | # CONFIG_USB_TOUCHSCREEN is not set | ||
1020 | # CONFIG_USB_YEALINK is not set | ||
1021 | # CONFIG_USB_XPAD is not set | ||
1022 | # CONFIG_USB_ATI_REMOTE is not set | ||
1023 | # CONFIG_USB_ATI_REMOTE2 is not set | ||
1024 | # CONFIG_USB_KEYSPAN_REMOTE is not set | ||
1025 | # CONFIG_USB_APPLETOUCH is not set | ||
1026 | |||
1027 | # | ||
1028 | # USB Imaging devices | ||
1029 | # | ||
1030 | # CONFIG_USB_MDC800 is not set | ||
1031 | # CONFIG_USB_MICROTEK is not set | ||
1032 | |||
1033 | # | ||
1034 | # USB Network Adapters | ||
1035 | # | ||
1036 | # CONFIG_USB_CATC is not set | ||
1037 | # CONFIG_USB_KAWETH is not set | ||
1038 | # CONFIG_USB_PEGASUS is not set | ||
1039 | # CONFIG_USB_RTL8150 is not set | ||
1040 | # CONFIG_USB_USBNET_MII is not set | ||
1041 | # CONFIG_USB_USBNET is not set | ||
1042 | CONFIG_USB_MON=y | ||
1043 | |||
1044 | # | ||
1045 | # USB port drivers | ||
1046 | # | ||
1047 | |||
1048 | # | ||
1049 | # USB Serial Converter support | ||
1050 | # | ||
1051 | # CONFIG_USB_SERIAL is not set | ||
1052 | |||
1053 | # | ||
1054 | # USB Miscellaneous drivers | ||
1055 | # | ||
1056 | # CONFIG_USB_EMI62 is not set | ||
1057 | # CONFIG_USB_EMI26 is not set | ||
1058 | # CONFIG_USB_ADUTUX is not set | ||
1059 | # CONFIG_USB_AUERSWALD is not set | ||
1060 | # CONFIG_USB_RIO500 is not set | ||
1061 | # CONFIG_USB_LEGOTOWER is not set | ||
1062 | # CONFIG_USB_LCD is not set | ||
1063 | # CONFIG_USB_LED is not set | ||
1064 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1065 | # CONFIG_USB_CYTHERM is not set | ||
1066 | # CONFIG_USB_PHIDGET is not set | ||
1067 | # CONFIG_USB_IDMOUSE is not set | ||
1068 | # CONFIG_USB_FTDI_ELAN is not set | ||
1069 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1070 | # CONFIG_USB_SISUSBVGA is not set | ||
1071 | # CONFIG_USB_LD is not set | ||
1072 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1073 | # CONFIG_USB_TEST is not set | ||
1074 | |||
1075 | # | ||
1076 | # USB DSL modem support | ||
1077 | # | ||
1078 | |||
1079 | # | ||
1080 | # USB Gadget Support | ||
1081 | # | ||
1082 | CONFIG_USB_GADGET=y | ||
1083 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1084 | CONFIG_USB_GADGET_SELECTED=y | ||
1085 | CONFIG_USB_GADGET_NET2280=y | ||
1086 | CONFIG_USB_NET2280=y | ||
1087 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1088 | # CONFIG_USB_GADGET_GOKU is not set | ||
1089 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1090 | # CONFIG_USB_GADGET_OMAP is not set | ||
1091 | # CONFIG_USB_GADGET_AT91 is not set | ||
1092 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1093 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1094 | # CONFIG_USB_ZERO is not set | ||
1095 | CONFIG_USB_ETH=y | ||
1096 | CONFIG_USB_ETH_RNDIS=y | ||
1097 | # CONFIG_USB_GADGETFS is not set | ||
1098 | # CONFIG_USB_FILE_STORAGE is not set | ||
1099 | # CONFIG_USB_G_SERIAL is not set | ||
1100 | # CONFIG_USB_MIDI_GADGET is not set | ||
1101 | |||
1102 | # | ||
1103 | # MMC/SD Card support | ||
1104 | # | ||
1105 | # CONFIG_MMC is not set | ||
1106 | |||
1107 | # | ||
1108 | # LED devices | ||
1109 | # | ||
1110 | # CONFIG_NEW_LEDS is not set | ||
1111 | |||
1112 | # | ||
1113 | # LED drivers | ||
1114 | # | ||
1115 | |||
1116 | # | ||
1117 | # LED Triggers | ||
1118 | # | ||
1119 | |||
1120 | # | ||
1121 | # InfiniBand support | ||
1122 | # | ||
1123 | # CONFIG_INFINIBAND is not set | ||
1124 | |||
1125 | # | ||
1126 | # EDAC - error detection and reporting (RAS) (EXPERIMENTAL) | ||
1127 | # | ||
1128 | |||
1129 | # | ||
1130 | # Real Time Clock | ||
1131 | # | ||
1132 | CONFIG_RTC_LIB=y | ||
1133 | CONFIG_RTC_CLASS=y | ||
1134 | CONFIG_RTC_HCTOSYS=y | ||
1135 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1136 | # CONFIG_RTC_DEBUG is not set | ||
1137 | |||
1138 | # | ||
1139 | # RTC interfaces | ||
1140 | # | ||
1141 | CONFIG_RTC_INTF_SYSFS=y | ||
1142 | CONFIG_RTC_INTF_PROC=y | ||
1143 | CONFIG_RTC_INTF_DEV=y | ||
1144 | CONFIG_RTC_INTF_DEV_UIE_EMUL=y | ||
1145 | |||
1146 | # | ||
1147 | # RTC drivers | ||
1148 | # | ||
1149 | # CONFIG_RTC_DRV_X1205 is not set | ||
1150 | CONFIG_RTC_DRV_DS1307=y | ||
1151 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1152 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1153 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1154 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1155 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1156 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1157 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
1158 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1159 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1160 | # CONFIG_RTC_DRV_TEST is not set | ||
1161 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
1162 | # CONFIG_RTC_DRV_V3020 is not set | ||
1163 | |||
1164 | # | ||
1165 | # DMA Engine support | ||
1166 | # | ||
1167 | CONFIG_DMA_ENGINE=y | ||
1168 | |||
1169 | # | ||
1170 | # DMA Clients | ||
1171 | # | ||
1172 | CONFIG_NET_DMA=y | ||
1173 | |||
1174 | # | ||
1175 | # DMA Devices | ||
1176 | # | ||
1177 | CONFIG_INTEL_IOATDMA=y | ||
1178 | |||
1179 | # | ||
1180 | # Virtualization | ||
1181 | # | ||
1182 | |||
1183 | # | ||
1184 | # File systems | ||
1185 | # | ||
1186 | CONFIG_EXT2_FS=y | ||
1187 | # CONFIG_EXT2_FS_XATTR is not set | ||
1188 | # CONFIG_EXT2_FS_XIP is not set | ||
1189 | CONFIG_EXT3_FS=y | ||
1190 | CONFIG_EXT3_FS_XATTR=y | ||
1191 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1192 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1193 | # CONFIG_EXT4DEV_FS is not set | ||
1194 | CONFIG_JBD=y | ||
1195 | # CONFIG_JBD_DEBUG is not set | ||
1196 | CONFIG_FS_MBCACHE=y | ||
1197 | # CONFIG_REISERFS_FS is not set | ||
1198 | # CONFIG_JFS_FS is not set | ||
1199 | # CONFIG_FS_POSIX_ACL is not set | ||
1200 | # CONFIG_XFS_FS is not set | ||
1201 | # CONFIG_GFS2_FS is not set | ||
1202 | # CONFIG_OCFS2_FS is not set | ||
1203 | # CONFIG_MINIX_FS is not set | ||
1204 | # CONFIG_ROMFS_FS is not set | ||
1205 | CONFIG_INOTIFY=y | ||
1206 | CONFIG_INOTIFY_USER=y | ||
1207 | # CONFIG_QUOTA is not set | ||
1208 | CONFIG_DNOTIFY=y | ||
1209 | # CONFIG_AUTOFS_FS is not set | ||
1210 | # CONFIG_AUTOFS4_FS is not set | ||
1211 | # CONFIG_FUSE_FS is not set | ||
1212 | |||
1213 | # | ||
1214 | # CD-ROM/DVD Filesystems | ||
1215 | # | ||
1216 | # CONFIG_ISO9660_FS is not set | ||
1217 | # CONFIG_UDF_FS is not set | ||
1218 | |||
1219 | # | ||
1220 | # DOS/FAT/NT Filesystems | ||
1221 | # | ||
1222 | # CONFIG_MSDOS_FS is not set | ||
1223 | # CONFIG_VFAT_FS is not set | ||
1224 | # CONFIG_NTFS_FS is not set | ||
1225 | |||
1226 | # | ||
1227 | # Pseudo filesystems | ||
1228 | # | ||
1229 | CONFIG_PROC_FS=y | ||
1230 | CONFIG_PROC_KCORE=y | ||
1231 | CONFIG_PROC_SYSCTL=y | ||
1232 | CONFIG_SYSFS=y | ||
1233 | CONFIG_TMPFS=y | ||
1234 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1235 | # CONFIG_HUGETLB_PAGE is not set | ||
1236 | CONFIG_RAMFS=y | ||
1237 | # CONFIG_CONFIGFS_FS is not set | ||
1238 | |||
1239 | # | ||
1240 | # Miscellaneous filesystems | ||
1241 | # | ||
1242 | # CONFIG_ADFS_FS is not set | ||
1243 | # CONFIG_AFFS_FS is not set | ||
1244 | # CONFIG_HFS_FS is not set | ||
1245 | # CONFIG_HFSPLUS_FS is not set | ||
1246 | # CONFIG_BEFS_FS is not set | ||
1247 | # CONFIG_BFS_FS is not set | ||
1248 | # CONFIG_EFS_FS is not set | ||
1249 | # CONFIG_JFFS2_FS is not set | ||
1250 | # CONFIG_CRAMFS is not set | ||
1251 | # CONFIG_VXFS_FS is not set | ||
1252 | # CONFIG_HPFS_FS is not set | ||
1253 | # CONFIG_QNX4FS_FS is not set | ||
1254 | # CONFIG_SYSV_FS is not set | ||
1255 | # CONFIG_UFS_FS is not set | ||
1256 | |||
1257 | # | ||
1258 | # Network File Systems | ||
1259 | # | ||
1260 | CONFIG_NFS_FS=y | ||
1261 | CONFIG_NFS_V3=y | ||
1262 | # CONFIG_NFS_V3_ACL is not set | ||
1263 | CONFIG_NFS_V4=y | ||
1264 | # CONFIG_NFS_DIRECTIO is not set | ||
1265 | # CONFIG_NFSD is not set | ||
1266 | CONFIG_ROOT_NFS=y | ||
1267 | CONFIG_LOCKD=y | ||
1268 | CONFIG_LOCKD_V4=y | ||
1269 | CONFIG_NFS_COMMON=y | ||
1270 | CONFIG_SUNRPC=y | ||
1271 | CONFIG_SUNRPC_GSS=y | ||
1272 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1273 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1274 | # CONFIG_SMB_FS is not set | ||
1275 | # CONFIG_CIFS is not set | ||
1276 | # CONFIG_NCP_FS is not set | ||
1277 | # CONFIG_CODA_FS is not set | ||
1278 | # CONFIG_AFS_FS is not set | ||
1279 | # CONFIG_9P_FS is not set | ||
1280 | |||
1281 | # | ||
1282 | # Partition Types | ||
1283 | # | ||
1284 | CONFIG_PARTITION_ADVANCED=y | ||
1285 | # CONFIG_ACORN_PARTITION is not set | ||
1286 | # CONFIG_OSF_PARTITION is not set | ||
1287 | # CONFIG_AMIGA_PARTITION is not set | ||
1288 | # CONFIG_ATARI_PARTITION is not set | ||
1289 | # CONFIG_MAC_PARTITION is not set | ||
1290 | CONFIG_MSDOS_PARTITION=y | ||
1291 | # CONFIG_BSD_DISKLABEL is not set | ||
1292 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1293 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1294 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1295 | # CONFIG_LDM_PARTITION is not set | ||
1296 | # CONFIG_SGI_PARTITION is not set | ||
1297 | # CONFIG_ULTRIX_PARTITION is not set | ||
1298 | # CONFIG_SUN_PARTITION is not set | ||
1299 | # CONFIG_KARMA_PARTITION is not set | ||
1300 | # CONFIG_EFI_PARTITION is not set | ||
1301 | |||
1302 | # | ||
1303 | # Native Language Support | ||
1304 | # | ||
1305 | # CONFIG_NLS is not set | ||
1306 | |||
1307 | # | ||
1308 | # Distributed Lock Manager | ||
1309 | # | ||
1310 | # CONFIG_DLM is not set | ||
1311 | |||
1312 | # | ||
1313 | # Library routines | ||
1314 | # | ||
1315 | CONFIG_BITREVERSE=y | ||
1316 | # CONFIG_CRC_CCITT is not set | ||
1317 | # CONFIG_CRC16 is not set | ||
1318 | CONFIG_CRC32=y | ||
1319 | # CONFIG_LIBCRC32C is not set | ||
1320 | CONFIG_PLIST=y | ||
1321 | CONFIG_IOMAP_COPY=y | ||
1322 | |||
1323 | # | ||
1324 | # Instrumentation Support | ||
1325 | # | ||
1326 | # CONFIG_PROFILING is not set | ||
1327 | |||
1328 | # | ||
1329 | # Kernel hacking | ||
1330 | # | ||
1331 | # CONFIG_PRINTK_TIME is not set | ||
1332 | CONFIG_ENABLE_MUST_CHECK=y | ||
1333 | # CONFIG_MAGIC_SYSRQ is not set | ||
1334 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1335 | # CONFIG_DEBUG_FS is not set | ||
1336 | # CONFIG_HEADERS_CHECK is not set | ||
1337 | CONFIG_DEBUG_KERNEL=y | ||
1338 | CONFIG_LOG_BUF_SHIFT=14 | ||
1339 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1340 | # CONFIG_SCHEDSTATS is not set | ||
1341 | # CONFIG_DEBUG_SLAB is not set | ||
1342 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1343 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1344 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1345 | # CONFIG_DEBUG_MUTEXES is not set | ||
1346 | # CONFIG_DEBUG_RWSEMS is not set | ||
1347 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1348 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1349 | # CONFIG_DEBUG_KOBJECT is not set | ||
1350 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1351 | # CONFIG_DEBUG_INFO is not set | ||
1352 | # CONFIG_DEBUG_VM is not set | ||
1353 | # CONFIG_DEBUG_LIST is not set | ||
1354 | CONFIG_FORCED_INLINING=y | ||
1355 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1356 | # CONFIG_DEBUG_STACKOVERFLOW is not set | ||
1357 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1358 | # CONFIG_DEBUGGER is not set | ||
1359 | # CONFIG_BDI_SWITCH is not set | ||
1360 | # CONFIG_BOOTX_TEXT is not set | ||
1361 | # CONFIG_SERIAL_TEXT_DEBUG is not set | ||
1362 | # CONFIG_PPC_EARLY_DEBUG is not set | ||
1363 | |||
1364 | # | ||
1365 | # Security options | ||
1366 | # | ||
1367 | # CONFIG_KEYS is not set | ||
1368 | # CONFIG_SECURITY is not set | ||
1369 | |||
1370 | # | ||
1371 | # Cryptographic options | ||
1372 | # | ||
1373 | CONFIG_CRYPTO=y | ||
1374 | CONFIG_CRYPTO_ALGAPI=y | ||
1375 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1376 | CONFIG_CRYPTO_MANAGER=y | ||
1377 | # CONFIG_CRYPTO_HMAC is not set | ||
1378 | # CONFIG_CRYPTO_XCBC is not set | ||
1379 | # CONFIG_CRYPTO_NULL is not set | ||
1380 | # CONFIG_CRYPTO_MD4 is not set | ||
1381 | CONFIG_CRYPTO_MD5=y | ||
1382 | # CONFIG_CRYPTO_SHA1 is not set | ||
1383 | # CONFIG_CRYPTO_SHA256 is not set | ||
1384 | # CONFIG_CRYPTO_SHA512 is not set | ||
1385 | # CONFIG_CRYPTO_WP512 is not set | ||
1386 | # CONFIG_CRYPTO_TGR192 is not set | ||
1387 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1388 | # CONFIG_CRYPTO_ECB is not set | ||
1389 | CONFIG_CRYPTO_CBC=y | ||
1390 | # CONFIG_CRYPTO_LRW is not set | ||
1391 | CONFIG_CRYPTO_DES=y | ||
1392 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1393 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1394 | # CONFIG_CRYPTO_SERPENT is not set | ||
1395 | # CONFIG_CRYPTO_AES is not set | ||
1396 | # CONFIG_CRYPTO_CAST5 is not set | ||
1397 | # CONFIG_CRYPTO_CAST6 is not set | ||
1398 | # CONFIG_CRYPTO_TEA is not set | ||
1399 | # CONFIG_CRYPTO_ARC4 is not set | ||
1400 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1401 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1402 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1403 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1404 | # CONFIG_CRYPTO_CRC32C is not set | ||
1405 | # CONFIG_CRYPTO_TEST is not set | ||
1406 | |||
1407 | # | ||
1408 | # Hardware crypto devices | ||
1409 | # | ||
diff --git a/arch/powerpc/configs/mpc834x_mds_defconfig b/arch/powerpc/configs/mpc834x_mds_defconfig index 9eaed3a36983..2e3f8efb6ab1 100644 --- a/arch/powerpc/configs/mpc834x_mds_defconfig +++ b/arch/powerpc/configs/mpc834x_mds_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.20-rc5 | 3 | # Linux kernel version: 2.6.20 |
4 | # Fri Jan 26 00:19:27 2007 | 4 | # Thu Feb 8 01:00:48 2007 |
5 | # | 5 | # |
6 | # CONFIG_PPC64 is not set | 6 | # CONFIG_PPC64 is not set |
7 | CONFIG_PPC32=y | 7 | CONFIG_PPC32=y |
@@ -34,9 +34,9 @@ CONFIG_DEFAULT_UIMAGE=y | |||
34 | CONFIG_PPC_83xx=y | 34 | CONFIG_PPC_83xx=y |
35 | # CONFIG_PPC_85xx is not set | 35 | # CONFIG_PPC_85xx is not set |
36 | # CONFIG_PPC_86xx is not set | 36 | # CONFIG_PPC_86xx is not set |
37 | # CONFIG_PPC_8xx is not set | ||
37 | # CONFIG_40x is not set | 38 | # CONFIG_40x is not set |
38 | # CONFIG_44x is not set | 39 | # CONFIG_44x is not set |
39 | # CONFIG_8xx is not set | ||
40 | # CONFIG_E200 is not set | 40 | # CONFIG_E200 is not set |
41 | CONFIG_6xx=y | 41 | CONFIG_6xx=y |
42 | CONFIG_83xx=y | 42 | CONFIG_83xx=y |
@@ -128,8 +128,9 @@ CONFIG_PPC_GEN550=y | |||
128 | # | 128 | # |
129 | # Platform support | 129 | # Platform support |
130 | # | 130 | # |
131 | # CONFIG_MPC8313_RDB is not set | ||
131 | # CONFIG_MPC832x_MDS is not set | 132 | # CONFIG_MPC832x_MDS is not set |
132 | CONFIG_MPC834x_SYS=y | 133 | CONFIG_MPC834x_MDS=y |
133 | # CONFIG_MPC834x_ITX is not set | 134 | # CONFIG_MPC834x_ITX is not set |
134 | # CONFIG_MPC8360E_PB is not set | 135 | # CONFIG_MPC8360E_PB is not set |
135 | CONFIG_MPC834x=y | 136 | CONFIG_MPC834x=y |
diff --git a/arch/powerpc/configs/ps3_defconfig b/arch/powerpc/configs/ps3_defconfig index ec644b34a082..0345a2ceec59 100644 --- a/arch/powerpc/configs/ps3_defconfig +++ b/arch/powerpc/configs/ps3_defconfig | |||
@@ -163,6 +163,7 @@ CONFIG_PS3_HTAB_SIZE=20 | |||
163 | # CONFIG_PS3_DYNAMIC_DMA is not set | 163 | # CONFIG_PS3_DYNAMIC_DMA is not set |
164 | CONFIG_PS3_USE_LPAR_ADDR=y | 164 | CONFIG_PS3_USE_LPAR_ADDR=y |
165 | CONFIG_PS3_VUART=y | 165 | CONFIG_PS3_VUART=y |
166 | CONFIG_PS3_PS3AV=y | ||
166 | 167 | ||
167 | # | 168 | # |
168 | # Kernel options | 169 | # Kernel options |
@@ -611,14 +612,40 @@ CONFIG_GEN_RTC=y | |||
611 | # Graphics support | 612 | # Graphics support |
612 | # | 613 | # |
613 | # CONFIG_FIRMWARE_EDID is not set | 614 | # CONFIG_FIRMWARE_EDID is not set |
614 | # CONFIG_FB is not set | 615 | CONFIG_FB=y |
616 | CONFIG_FB_CFB_FILLRECT=y | ||
617 | CONFIG_FB_CFB_COPYAREA=y | ||
618 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
619 | # CONFIG_FB_MACMODES is not set | ||
620 | # CONFIG_FB_BACKLIGHT is not set | ||
621 | # CONFIG_FB_MODE_HELPERS is not set | ||
622 | # CONFIG_FB_TILEBLITTING is not set | ||
623 | # CONFIG_FB_OF is not set | ||
624 | # CONFIG_FB_VGA16 is not set | ||
625 | # CONFIG_FB_S1D13XXX is not set | ||
615 | # CONFIG_FB_IBM_GXT4500 is not set | 626 | # CONFIG_FB_IBM_GXT4500 is not set |
627 | CONFIG_FB_PS3=y | ||
628 | CONFIG_FB_PS3_DEFAULT_SIZE_M=18 | ||
629 | # CONFIG_FB_VIRTUAL is not set | ||
616 | 630 | ||
617 | # | 631 | # |
618 | # Console display driver support | 632 | # Console display driver support |
619 | # | 633 | # |
620 | # CONFIG_VGA_CONSOLE is not set | 634 | # CONFIG_VGA_CONSOLE is not set |
621 | CONFIG_DUMMY_CONSOLE=y | 635 | CONFIG_DUMMY_CONSOLE=y |
636 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
637 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
638 | # CONFIG_FONTS is not set | ||
639 | CONFIG_FONT_8x8=y | ||
640 | CONFIG_FONT_8x16=y | ||
641 | |||
642 | # | ||
643 | # Logo configuration | ||
644 | # | ||
645 | CONFIG_LOGO=y | ||
646 | # CONFIG_LOGO_LINUX_MONO is not set | ||
647 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
648 | CONFIG_LOGO_LINUX_CLUT224=y | ||
622 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | 649 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set |
623 | 650 | ||
624 | # | 651 | # |
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index dd17dffbf058..7ec4ac77c0fa 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -44,7 +44,7 @@ extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | |||
44 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); | 44 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
45 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); | 45 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); |
46 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); | 46 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); |
47 | extern void __restore_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); | 47 | extern void __restore_cpu_pa6t(void); |
48 | extern void __restore_cpu_ppc970(void); | 48 | extern void __restore_cpu_ppc970(void); |
49 | #endif /* CONFIG_PPC64 */ | 49 | #endif /* CONFIG_PPC64 */ |
50 | 50 | ||
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index accb39d49911..a15d4b8cce48 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -32,8 +32,6 @@ | |||
32 | #include <asm/page.h> | 32 | #include <asm/page.h> |
33 | #include <asm/mmu.h> | 33 | #include <asm/mmu.h> |
34 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
35 | #include <asm/ibm4xx.h> | ||
36 | #include <asm/ibm44x.h> | ||
37 | #include <asm/cputable.h> | 35 | #include <asm/cputable.h> |
38 | #include <asm/thread_info.h> | 36 | #include <asm/thread_info.h> |
39 | #include <asm/ppc_asm.h> | 37 | #include <asm/ppc_asm.h> |
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index 5e6ddfa474c0..89f46f377922 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c | |||
@@ -498,7 +498,7 @@ static int __init check_legacy_serial_console(void) | |||
498 | DBG(" -> check_legacy_serial_console()\n"); | 498 | DBG(" -> check_legacy_serial_console()\n"); |
499 | 499 | ||
500 | /* The user has requested a console so this is already set up. */ | 500 | /* The user has requested a console so this is already set up. */ |
501 | if (strstr(saved_command_line, "console=")) { | 501 | if (strstr(boot_command_line, "console=")) { |
502 | DBG(" console was specified !\n"); | 502 | DBG(" console was specified !\n"); |
503 | return -EBUSY; | 503 | return -EBUSY; |
504 | } | 504 | } |
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 0de5a08cf9b0..89486b631284 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -571,7 +571,7 @@ static int lparcfg_open(struct inode *inode, struct file *file) | |||
571 | return single_open(file, lparcfg_data, NULL); | 571 | return single_open(file, lparcfg_data, NULL); |
572 | } | 572 | } |
573 | 573 | ||
574 | struct file_operations lparcfg_fops = { | 574 | const struct file_operations lparcfg_fops = { |
575 | .owner = THIS_MODULE, | 575 | .owner = THIS_MODULE, |
576 | .read = seq_read, | 576 | .read = seq_read, |
577 | .write = lparcfg_write, | 577 | .write = lparcfg_write, |
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c index 869cebbba967..f9676f52c6d8 100644 --- a/arch/powerpc/kernel/nvram_64.c +++ b/arch/powerpc/kernel/nvram_64.c | |||
@@ -179,7 +179,7 @@ static int dev_nvram_ioctl(struct inode *inode, struct file *file, | |||
179 | } | 179 | } |
180 | } | 180 | } |
181 | 181 | ||
182 | struct file_operations nvram_fops = { | 182 | const struct file_operations nvram_fops = { |
183 | .owner = THIS_MODULE, | 183 | .owner = THIS_MODULE, |
184 | .llseek = dev_nvram_llseek, | 184 | .llseek = dev_nvram_llseek, |
185 | .read = dev_nvram_read, | 185 | .read = dev_nvram_read, |
diff --git a/arch/powerpc/kernel/proc_ppc64.c b/arch/powerpc/kernel/proc_ppc64.c index dd7001cacf75..f78dfce1b771 100644 --- a/arch/powerpc/kernel/proc_ppc64.c +++ b/arch/powerpc/kernel/proc_ppc64.c | |||
@@ -33,7 +33,7 @@ static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes | |||
33 | loff_t *ppos); | 33 | loff_t *ppos); |
34 | static int page_map_mmap( struct file *file, struct vm_area_struct *vma ); | 34 | static int page_map_mmap( struct file *file, struct vm_area_struct *vma ); |
35 | 35 | ||
36 | static struct file_operations page_map_fops = { | 36 | static const struct file_operations page_map_fops = { |
37 | .llseek = page_map_seek, | 37 | .llseek = page_map_seek, |
38 | .read = page_map_read, | 38 | .read = page_map_read, |
39 | .mmap = page_map_mmap | 39 | .mmap = page_map_mmap |
@@ -71,7 +71,6 @@ static int __init proc_ppc64_init(void) | |||
71 | pde = create_proc_entry("ppc64/systemcfg", S_IFREG|S_IRUGO, NULL); | 71 | pde = create_proc_entry("ppc64/systemcfg", S_IFREG|S_IRUGO, NULL); |
72 | if (!pde) | 72 | if (!pde) |
73 | return 1; | 73 | return 1; |
74 | pde->nlink = 1; | ||
75 | pde->data = vdso_data; | 74 | pde->data = vdso_data; |
76 | pde->size = PAGE_SIZE; | 75 | pde->size = PAGE_SIZE; |
77 | pde->proc_fops = &page_map_fops; | 76 | pde->proc_fops = &page_map_fops; |
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 3be52d693eca..3e86e6e0f778 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -991,7 +991,7 @@ void __init early_init_devtree(void *params) | |||
991 | of_scan_flat_dt(early_init_dt_scan_memory, NULL); | 991 | of_scan_flat_dt(early_init_dt_scan_memory, NULL); |
992 | 992 | ||
993 | /* Save command line for /proc/cmdline and then parse parameters */ | 993 | /* Save command line for /proc/cmdline and then parse parameters */ |
994 | strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE); | 994 | strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE); |
995 | parse_early_param(); | 995 | parse_early_param(); |
996 | 996 | ||
997 | /* Reserve LMB regions used by kernel, initrd, dt, etc... */ | 997 | /* Reserve LMB regions used by kernel, initrd, dt, etc... */ |
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c index 520ef42f642e..4fb5938ce6d3 100644 --- a/arch/powerpc/kernel/prom_init.c +++ b/arch/powerpc/kernel/prom_init.c | |||
@@ -2117,11 +2117,92 @@ static void __init fixup_device_tree_pmac(void) | |||
2117 | #define fixup_device_tree_pmac() | 2117 | #define fixup_device_tree_pmac() |
2118 | #endif | 2118 | #endif |
2119 | 2119 | ||
2120 | #ifdef CONFIG_PPC_EFIKA | ||
2121 | /* The current fw of the Efika has a device tree needs quite a few | ||
2122 | * fixups to be compliant with the mpc52xx bindings. It's currently | ||
2123 | * unknown if it will ever be compliant (come on bPlan ...) so we do fixups. | ||
2124 | * NOTE that we (barely) tolerate it because the EFIKA was out before | ||
2125 | * the bindings were finished, for any new boards -> RTFM ! */ | ||
2126 | |||
2127 | struct subst_entry { | ||
2128 | char *path; | ||
2129 | char *property; | ||
2130 | void *value; | ||
2131 | int value_len; | ||
2132 | }; | ||
2133 | |||
2134 | static void __init fixup_device_tree_efika(void) | ||
2135 | { | ||
2136 | /* Substitution table */ | ||
2137 | #define prop_cstr(x) x, sizeof(x) | ||
2138 | int prop_sound_irq[3] = { 2, 2, 0 }; | ||
2139 | int prop_bcomm_irq[3*16] = { 3,0,0, 3,1,0, 3,2,0, 3,3,0, | ||
2140 | 3,4,0, 3,5,0, 3,6,0, 3,7,0, | ||
2141 | 3,8,0, 3,9,0, 3,10,0, 3,11,0, | ||
2142 | 3,12,0, 3,13,0, 3,14,0, 3,15,0 }; | ||
2143 | struct subst_entry efika_subst_table[] = { | ||
2144 | { "/", "device_type", prop_cstr("efika") }, | ||
2145 | { "/builtin", "compatible", prop_cstr("soc") }, | ||
2146 | { "/builtin/ata", "compatible", prop_cstr("mpc5200b-ata\0mpc5200-ata"), }, | ||
2147 | { "/builtin/bestcomm", "compatible", prop_cstr("mpc5200b-bestcomm\0mpc5200-bestcomm") }, | ||
2148 | { "/builtin/bestcomm", "interrupts", prop_bcomm_irq, sizeof(prop_bcomm_irq) }, | ||
2149 | { "/builtin/ethernet", "compatible", prop_cstr("mpc5200b-fec\0mpc5200-fec") }, | ||
2150 | { "/builtin/pic", "compatible", prop_cstr("mpc5200b-pic\0mpc5200-pic") }, | ||
2151 | { "/builtin/serial", "compatible", prop_cstr("mpc5200b-psc-uart\0mpc5200-psc-uart") }, | ||
2152 | { "/builtin/sound", "compatible", prop_cstr("mpc5200b-psc-ac97\0mpc5200-psc-ac97") }, | ||
2153 | { "/builtin/sound", "interrupts", prop_sound_irq, sizeof(prop_sound_irq) }, | ||
2154 | { "/builtin/sram", "compatible", prop_cstr("mpc5200b-sram\0mpc5200-sram") }, | ||
2155 | { "/builtin/sram", "device_type", prop_cstr("sram") }, | ||
2156 | {} | ||
2157 | }; | ||
2158 | #undef prop_cstr | ||
2159 | |||
2160 | /* Vars */ | ||
2161 | u32 node; | ||
2162 | char prop[64]; | ||
2163 | int rv, i; | ||
2164 | |||
2165 | /* Check if we're really running on a EFIKA */ | ||
2166 | node = call_prom("finddevice", 1, 1, ADDR("/")); | ||
2167 | if (!PHANDLE_VALID(node)) | ||
2168 | return; | ||
2169 | |||
2170 | rv = prom_getprop(node, "model", prop, sizeof(prop)); | ||
2171 | if (rv == PROM_ERROR) | ||
2172 | return; | ||
2173 | if (strcmp(prop, "EFIKA5K2")) | ||
2174 | return; | ||
2175 | |||
2176 | prom_printf("Applying EFIKA device tree fixups\n"); | ||
2177 | |||
2178 | /* Process substitution table */ | ||
2179 | for (i=0; efika_subst_table[i].path; i++) { | ||
2180 | struct subst_entry *se = &efika_subst_table[i]; | ||
2181 | |||
2182 | node = call_prom("finddevice", 1, 1, ADDR(se->path)); | ||
2183 | if (!PHANDLE_VALID(node)) { | ||
2184 | prom_printf("fixup_device_tree_efika: ", | ||
2185 | "skipped entry %x - not found\n", i); | ||
2186 | continue; | ||
2187 | } | ||
2188 | |||
2189 | rv = prom_setprop(node, se->path, se->property, | ||
2190 | se->value, se->value_len ); | ||
2191 | if (rv == PROM_ERROR) | ||
2192 | prom_printf("fixup_device_tree_efika: ", | ||
2193 | "skipped entry %x - setprop error\n", i); | ||
2194 | } | ||
2195 | } | ||
2196 | #else | ||
2197 | #define fixup_device_tree_efika() | ||
2198 | #endif | ||
2199 | |||
2120 | static void __init fixup_device_tree(void) | 2200 | static void __init fixup_device_tree(void) |
2121 | { | 2201 | { |
2122 | fixup_device_tree_maple(); | 2202 | fixup_device_tree_maple(); |
2123 | fixup_device_tree_chrp(); | 2203 | fixup_device_tree_chrp(); |
2124 | fixup_device_tree_pmac(); | 2204 | fixup_device_tree_pmac(); |
2205 | fixup_device_tree_efika(); | ||
2125 | } | 2206 | } |
2126 | 2207 | ||
2127 | static void __init prom_find_boot_cpu(void) | 2208 | static void __init prom_find_boot_cpu(void) |
diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c index 2fe82abf1c52..6cbf2ae5d7aa 100644 --- a/arch/powerpc/kernel/rtas-proc.c +++ b/arch/powerpc/kernel/rtas-proc.c | |||
@@ -160,7 +160,7 @@ static int sensors_open(struct inode *inode, struct file *file) | |||
160 | return single_open(file, ppc_rtas_sensors_show, NULL); | 160 | return single_open(file, ppc_rtas_sensors_show, NULL); |
161 | } | 161 | } |
162 | 162 | ||
163 | struct file_operations ppc_rtas_sensors_operations = { | 163 | const struct file_operations ppc_rtas_sensors_operations = { |
164 | .open = sensors_open, | 164 | .open = sensors_open, |
165 | .read = seq_read, | 165 | .read = seq_read, |
166 | .llseek = seq_lseek, | 166 | .llseek = seq_lseek, |
@@ -172,7 +172,7 @@ static int poweron_open(struct inode *inode, struct file *file) | |||
172 | return single_open(file, ppc_rtas_poweron_show, NULL); | 172 | return single_open(file, ppc_rtas_poweron_show, NULL); |
173 | } | 173 | } |
174 | 174 | ||
175 | struct file_operations ppc_rtas_poweron_operations = { | 175 | const struct file_operations ppc_rtas_poweron_operations = { |
176 | .open = poweron_open, | 176 | .open = poweron_open, |
177 | .read = seq_read, | 177 | .read = seq_read, |
178 | .llseek = seq_lseek, | 178 | .llseek = seq_lseek, |
@@ -185,7 +185,7 @@ static int progress_open(struct inode *inode, struct file *file) | |||
185 | return single_open(file, ppc_rtas_progress_show, NULL); | 185 | return single_open(file, ppc_rtas_progress_show, NULL); |
186 | } | 186 | } |
187 | 187 | ||
188 | struct file_operations ppc_rtas_progress_operations = { | 188 | const struct file_operations ppc_rtas_progress_operations = { |
189 | .open = progress_open, | 189 | .open = progress_open, |
190 | .read = seq_read, | 190 | .read = seq_read, |
191 | .llseek = seq_lseek, | 191 | .llseek = seq_lseek, |
@@ -198,7 +198,7 @@ static int clock_open(struct inode *inode, struct file *file) | |||
198 | return single_open(file, ppc_rtas_clock_show, NULL); | 198 | return single_open(file, ppc_rtas_clock_show, NULL); |
199 | } | 199 | } |
200 | 200 | ||
201 | struct file_operations ppc_rtas_clock_operations = { | 201 | const struct file_operations ppc_rtas_clock_operations = { |
202 | .open = clock_open, | 202 | .open = clock_open, |
203 | .read = seq_read, | 203 | .read = seq_read, |
204 | .llseek = seq_lseek, | 204 | .llseek = seq_lseek, |
@@ -211,7 +211,7 @@ static int tone_freq_open(struct inode *inode, struct file *file) | |||
211 | return single_open(file, ppc_rtas_tone_freq_show, NULL); | 211 | return single_open(file, ppc_rtas_tone_freq_show, NULL); |
212 | } | 212 | } |
213 | 213 | ||
214 | struct file_operations ppc_rtas_tone_freq_operations = { | 214 | const struct file_operations ppc_rtas_tone_freq_operations = { |
215 | .open = tone_freq_open, | 215 | .open = tone_freq_open, |
216 | .read = seq_read, | 216 | .read = seq_read, |
217 | .llseek = seq_lseek, | 217 | .llseek = seq_lseek, |
@@ -224,7 +224,7 @@ static int tone_volume_open(struct inode *inode, struct file *file) | |||
224 | return single_open(file, ppc_rtas_tone_volume_show, NULL); | 224 | return single_open(file, ppc_rtas_tone_volume_show, NULL); |
225 | } | 225 | } |
226 | 226 | ||
227 | struct file_operations ppc_rtas_tone_volume_operations = { | 227 | const struct file_operations ppc_rtas_tone_volume_operations = { |
228 | .open = tone_volume_open, | 228 | .open = tone_volume_open, |
229 | .read = seq_read, | 229 | .read = seq_read, |
230 | .llseek = seq_lseek, | 230 | .llseek = seq_lseek, |
@@ -237,7 +237,7 @@ static int rmo_buf_open(struct inode *inode, struct file *file) | |||
237 | return single_open(file, ppc_rtas_rmo_buf_show, NULL); | 237 | return single_open(file, ppc_rtas_rmo_buf_show, NULL); |
238 | } | 238 | } |
239 | 239 | ||
240 | struct file_operations ppc_rtas_rmo_buf_ops = { | 240 | const struct file_operations ppc_rtas_rmo_buf_ops = { |
241 | .open = rmo_buf_open, | 241 | .open = rmo_buf_open, |
242 | .read = seq_read, | 242 | .read = seq_read, |
243 | .llseek = seq_lseek, | 243 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index 0c4fcd34bfe5..f72118c0844f 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
@@ -702,13 +702,12 @@ static int initialize_flash_pde_data(const char *rtas_call_name, | |||
702 | } | 702 | } |
703 | 703 | ||
704 | static struct proc_dir_entry *create_flash_pde(const char *filename, | 704 | static struct proc_dir_entry *create_flash_pde(const char *filename, |
705 | struct file_operations *fops) | 705 | const struct file_operations *fops) |
706 | { | 706 | { |
707 | struct proc_dir_entry *ent = NULL; | 707 | struct proc_dir_entry *ent = NULL; |
708 | 708 | ||
709 | ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL); | 709 | ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL); |
710 | if (ent != NULL) { | 710 | if (ent != NULL) { |
711 | ent->nlink = 1; | ||
712 | ent->proc_fops = fops; | 711 | ent->proc_fops = fops; |
713 | ent->owner = THIS_MODULE; | 712 | ent->owner = THIS_MODULE; |
714 | } | 713 | } |
@@ -716,21 +715,21 @@ static struct proc_dir_entry *create_flash_pde(const char *filename, | |||
716 | return ent; | 715 | return ent; |
717 | } | 716 | } |
718 | 717 | ||
719 | static struct file_operations rtas_flash_operations = { | 718 | static const struct file_operations rtas_flash_operations = { |
720 | .read = rtas_flash_read, | 719 | .read = rtas_flash_read, |
721 | .write = rtas_flash_write, | 720 | .write = rtas_flash_write, |
722 | .open = rtas_excl_open, | 721 | .open = rtas_excl_open, |
723 | .release = rtas_flash_release, | 722 | .release = rtas_flash_release, |
724 | }; | 723 | }; |
725 | 724 | ||
726 | static struct file_operations manage_flash_operations = { | 725 | static const struct file_operations manage_flash_operations = { |
727 | .read = manage_flash_read, | 726 | .read = manage_flash_read, |
728 | .write = manage_flash_write, | 727 | .write = manage_flash_write, |
729 | .open = rtas_excl_open, | 728 | .open = rtas_excl_open, |
730 | .release = rtas_excl_release, | 729 | .release = rtas_excl_release, |
731 | }; | 730 | }; |
732 | 731 | ||
733 | static struct file_operations validate_flash_operations = { | 732 | static const struct file_operations validate_flash_operations = { |
734 | .read = validate_flash_read, | 733 | .read = validate_flash_read, |
735 | .write = validate_flash_write, | 734 | .write = validate_flash_write, |
736 | .open = rtas_excl_open, | 735 | .open = rtas_excl_open, |
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c index 03a2a2f30d66..673e8d9df7f5 100644 --- a/arch/powerpc/kernel/sys_ppc32.c +++ b/arch/powerpc/kernel/sys_ppc32.c | |||
@@ -198,73 +198,6 @@ static inline long put_tv32(struct compat_timeval __user *o, struct timeval *i) | |||
198 | __put_user(i->tv_usec, &o->tv_usec))); | 198 | __put_user(i->tv_usec, &o->tv_usec))); |
199 | } | 199 | } |
200 | 200 | ||
201 | struct sysinfo32 { | ||
202 | s32 uptime; | ||
203 | u32 loads[3]; | ||
204 | u32 totalram; | ||
205 | u32 freeram; | ||
206 | u32 sharedram; | ||
207 | u32 bufferram; | ||
208 | u32 totalswap; | ||
209 | u32 freeswap; | ||
210 | unsigned short procs; | ||
211 | unsigned short pad; | ||
212 | u32 totalhigh; | ||
213 | u32 freehigh; | ||
214 | u32 mem_unit; | ||
215 | char _f[20-2*sizeof(int)-sizeof(int)]; | ||
216 | }; | ||
217 | |||
218 | asmlinkage long compat_sys_sysinfo(struct sysinfo32 __user *info) | ||
219 | { | ||
220 | struct sysinfo s; | ||
221 | int ret, err; | ||
222 | int bitcount=0; | ||
223 | mm_segment_t old_fs = get_fs (); | ||
224 | |||
225 | /* The __user cast is valid due to set_fs() */ | ||
226 | set_fs (KERNEL_DS); | ||
227 | ret = sys_sysinfo((struct sysinfo __user *)&s); | ||
228 | set_fs (old_fs); | ||
229 | |||
230 | /* Check to see if any memory value is too large for 32-bit and | ||
231 | * scale down if needed. | ||
232 | */ | ||
233 | if ((s.totalram >> 32) || (s.totalswap >> 32)) { | ||
234 | while (s.mem_unit < PAGE_SIZE) { | ||
235 | s.mem_unit <<= 1; | ||
236 | bitcount++; | ||
237 | } | ||
238 | s.totalram >>=bitcount; | ||
239 | s.freeram >>= bitcount; | ||
240 | s.sharedram >>= bitcount; | ||
241 | s.bufferram >>= bitcount; | ||
242 | s.totalswap >>= bitcount; | ||
243 | s.freeswap >>= bitcount; | ||
244 | s.totalhigh >>= bitcount; | ||
245 | s.freehigh >>= bitcount; | ||
246 | } | ||
247 | |||
248 | err = put_user (s.uptime, &info->uptime); | ||
249 | err |= __put_user (s.loads[0], &info->loads[0]); | ||
250 | err |= __put_user (s.loads[1], &info->loads[1]); | ||
251 | err |= __put_user (s.loads[2], &info->loads[2]); | ||
252 | err |= __put_user (s.totalram, &info->totalram); | ||
253 | err |= __put_user (s.freeram, &info->freeram); | ||
254 | err |= __put_user (s.sharedram, &info->sharedram); | ||
255 | err |= __put_user (s.bufferram, &info->bufferram); | ||
256 | err |= __put_user (s.totalswap, &info->totalswap); | ||
257 | err |= __put_user (s.freeswap, &info->freeswap); | ||
258 | err |= __put_user (s.procs, &info->procs); | ||
259 | err |= __put_user (s.totalhigh, &info->totalhigh); | ||
260 | err |= __put_user (s.freehigh, &info->freehigh); | ||
261 | err |= __put_user (s.mem_unit, &info->mem_unit); | ||
262 | if (err) | ||
263 | return -EFAULT; | ||
264 | |||
265 | return ret; | ||
266 | } | ||
267 | |||
268 | 201 | ||
269 | 202 | ||
270 | 203 | ||
diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 8f5afdbad0d5..194a93eeb3e7 100644 --- a/arch/powerpc/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c | |||
@@ -150,7 +150,7 @@ void __init disable_early_printk(void) | |||
150 | { | 150 | { |
151 | if (!early_console_initialized) | 151 | if (!early_console_initialized) |
152 | return; | 152 | return; |
153 | if (strstr(saved_command_line, "udbg-immortal")) { | 153 | if (strstr(boot_command_line, "udbg-immortal")) { |
154 | printk(KERN_INFO "early console immortal !\n"); | 154 | printk(KERN_INFO "early console immortal !\n"); |
155 | return; | 155 | return; |
156 | } | 156 | } |
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index ae0ede19879d..e46c31b36641 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c | |||
@@ -51,17 +51,21 @@ | |||
51 | 51 | ||
52 | extern char vdso32_start, vdso32_end; | 52 | extern char vdso32_start, vdso32_end; |
53 | static void *vdso32_kbase = &vdso32_start; | 53 | static void *vdso32_kbase = &vdso32_start; |
54 | unsigned int vdso32_pages; | 54 | static unsigned int vdso32_pages; |
55 | static struct page **vdso32_pagelist; | ||
55 | unsigned long vdso32_sigtramp; | 56 | unsigned long vdso32_sigtramp; |
56 | unsigned long vdso32_rt_sigtramp; | 57 | unsigned long vdso32_rt_sigtramp; |
57 | 58 | ||
58 | #ifdef CONFIG_PPC64 | 59 | #ifdef CONFIG_PPC64 |
59 | extern char vdso64_start, vdso64_end; | 60 | extern char vdso64_start, vdso64_end; |
60 | static void *vdso64_kbase = &vdso64_start; | 61 | static void *vdso64_kbase = &vdso64_start; |
61 | unsigned int vdso64_pages; | 62 | static unsigned int vdso64_pages; |
63 | static struct page **vdso64_pagelist; | ||
62 | unsigned long vdso64_rt_sigtramp; | 64 | unsigned long vdso64_rt_sigtramp; |
63 | #endif /* CONFIG_PPC64 */ | 65 | #endif /* CONFIG_PPC64 */ |
64 | 66 | ||
67 | static int vdso_ready; | ||
68 | |||
65 | /* | 69 | /* |
66 | * The vdso data page (aka. systemcfg for old ppc64 fans) is here. | 70 | * The vdso data page (aka. systemcfg for old ppc64 fans) is here. |
67 | * Once the early boot kernel code no longer needs to muck around | 71 | * Once the early boot kernel code no longer needs to muck around |
@@ -165,55 +169,6 @@ static void dump_vdso_pages(struct vm_area_struct * vma) | |||
165 | #endif /* DEBUG */ | 169 | #endif /* DEBUG */ |
166 | 170 | ||
167 | /* | 171 | /* |
168 | * Keep a dummy vma_close for now, it will prevent VMA merging. | ||
169 | */ | ||
170 | static void vdso_vma_close(struct vm_area_struct * vma) | ||
171 | { | ||
172 | } | ||
173 | |||
174 | /* | ||
175 | * Our nopage() function, maps in the actual vDSO kernel pages, they will | ||
176 | * be mapped read-only by do_no_page(), and eventually COW'ed, either | ||
177 | * right away for an initial write access, or by do_wp_page(). | ||
178 | */ | ||
179 | static struct page * vdso_vma_nopage(struct vm_area_struct * vma, | ||
180 | unsigned long address, int *type) | ||
181 | { | ||
182 | unsigned long offset = address - vma->vm_start; | ||
183 | struct page *pg; | ||
184 | #ifdef CONFIG_PPC64 | ||
185 | void *vbase = (vma->vm_mm->task_size > TASK_SIZE_USER32) ? | ||
186 | vdso64_kbase : vdso32_kbase; | ||
187 | #else | ||
188 | void *vbase = vdso32_kbase; | ||
189 | #endif | ||
190 | |||
191 | DBG("vdso_vma_nopage(current: %s, address: %016lx, off: %lx)\n", | ||
192 | current->comm, address, offset); | ||
193 | |||
194 | if (address < vma->vm_start || address > vma->vm_end) | ||
195 | return NOPAGE_SIGBUS; | ||
196 | |||
197 | /* | ||
198 | * Last page is systemcfg. | ||
199 | */ | ||
200 | if ((vma->vm_end - address) <= PAGE_SIZE) | ||
201 | pg = virt_to_page(vdso_data); | ||
202 | else | ||
203 | pg = virt_to_page(vbase + offset); | ||
204 | |||
205 | get_page(pg); | ||
206 | DBG(" ->page count: %d\n", page_count(pg)); | ||
207 | |||
208 | return pg; | ||
209 | } | ||
210 | |||
211 | static struct vm_operations_struct vdso_vmops = { | ||
212 | .close = vdso_vma_close, | ||
213 | .nopage = vdso_vma_nopage, | ||
214 | }; | ||
215 | |||
216 | /* | ||
217 | * This is called from binfmt_elf, we create the special vma for the | 172 | * This is called from binfmt_elf, we create the special vma for the |
218 | * vDSO and insert it into the mm struct tree | 173 | * vDSO and insert it into the mm struct tree |
219 | */ | 174 | */ |
@@ -221,20 +176,26 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
221 | int executable_stack) | 176 | int executable_stack) |
222 | { | 177 | { |
223 | struct mm_struct *mm = current->mm; | 178 | struct mm_struct *mm = current->mm; |
224 | struct vm_area_struct *vma; | 179 | struct page **vdso_pagelist; |
225 | unsigned long vdso_pages; | 180 | unsigned long vdso_pages; |
226 | unsigned long vdso_base; | 181 | unsigned long vdso_base; |
227 | int rc; | 182 | int rc; |
228 | 183 | ||
184 | if (!vdso_ready) | ||
185 | return 0; | ||
186 | |||
229 | #ifdef CONFIG_PPC64 | 187 | #ifdef CONFIG_PPC64 |
230 | if (test_thread_flag(TIF_32BIT)) { | 188 | if (test_thread_flag(TIF_32BIT)) { |
189 | vdso_pagelist = vdso32_pagelist; | ||
231 | vdso_pages = vdso32_pages; | 190 | vdso_pages = vdso32_pages; |
232 | vdso_base = VDSO32_MBASE; | 191 | vdso_base = VDSO32_MBASE; |
233 | } else { | 192 | } else { |
193 | vdso_pagelist = vdso64_pagelist; | ||
234 | vdso_pages = vdso64_pages; | 194 | vdso_pages = vdso64_pages; |
235 | vdso_base = VDSO64_MBASE; | 195 | vdso_base = VDSO64_MBASE; |
236 | } | 196 | } |
237 | #else | 197 | #else |
198 | vdso_pagelist = vdso32_pagelist; | ||
238 | vdso_pages = vdso32_pages; | 199 | vdso_pages = vdso32_pages; |
239 | vdso_base = VDSO32_MBASE; | 200 | vdso_base = VDSO32_MBASE; |
240 | #endif | 201 | #endif |
@@ -262,17 +223,6 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
262 | goto fail_mmapsem; | 223 | goto fail_mmapsem; |
263 | } | 224 | } |
264 | 225 | ||
265 | |||
266 | /* Allocate a VMA structure and fill it up */ | ||
267 | vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); | ||
268 | if (vma == NULL) { | ||
269 | rc = -ENOMEM; | ||
270 | goto fail_mmapsem; | ||
271 | } | ||
272 | vma->vm_mm = mm; | ||
273 | vma->vm_start = vdso_base; | ||
274 | vma->vm_end = vma->vm_start + (vdso_pages << PAGE_SHIFT); | ||
275 | |||
276 | /* | 226 | /* |
277 | * our vma flags don't have VM_WRITE so by default, the process isn't | 227 | * our vma flags don't have VM_WRITE so by default, the process isn't |
278 | * allowed to write those pages. | 228 | * allowed to write those pages. |
@@ -282,32 +232,26 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
282 | * and your nice userland gettimeofday will be totally dead. | 232 | * and your nice userland gettimeofday will be totally dead. |
283 | * It's fine to use that for setting breakpoints in the vDSO code | 233 | * It's fine to use that for setting breakpoints in the vDSO code |
284 | * pages though | 234 | * pages though |
285 | */ | 235 | * |
286 | vma->vm_flags = VM_READ|VM_EXEC|VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC; | ||
287 | /* | ||
288 | * Make sure the vDSO gets into every core dump. | 236 | * Make sure the vDSO gets into every core dump. |
289 | * Dumping its contents makes post-mortem fully interpretable later | 237 | * Dumping its contents makes post-mortem fully interpretable later |
290 | * without matching up the same kernel and hardware config to see | 238 | * without matching up the same kernel and hardware config to see |
291 | * what PC values meant. | 239 | * what PC values meant. |
292 | */ | 240 | */ |
293 | vma->vm_flags |= VM_ALWAYSDUMP; | 241 | rc = install_special_mapping(mm, vdso_base, vdso_pages << PAGE_SHIFT, |
294 | vma->vm_flags |= mm->def_flags; | 242 | VM_READ|VM_EXEC| |
295 | vma->vm_page_prot = protection_map[vma->vm_flags & 0x7]; | 243 | VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC| |
296 | vma->vm_ops = &vdso_vmops; | 244 | VM_ALWAYSDUMP, |
297 | 245 | vdso_pagelist); | |
298 | /* Insert new VMA */ | ||
299 | rc = insert_vm_struct(mm, vma); | ||
300 | if (rc) | 246 | if (rc) |
301 | goto fail_vma; | 247 | goto fail_mmapsem; |
302 | 248 | ||
303 | /* Put vDSO base into mm struct and account for memory usage */ | 249 | /* Put vDSO base into mm struct */ |
304 | current->mm->context.vdso_base = vdso_base; | 250 | current->mm->context.vdso_base = vdso_base; |
305 | mm->total_vm += (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; | 251 | |
306 | up_write(&mm->mmap_sem); | 252 | up_write(&mm->mmap_sem); |
307 | return 0; | 253 | return 0; |
308 | 254 | ||
309 | fail_vma: | ||
310 | kmem_cache_free(vm_area_cachep, vma); | ||
311 | fail_mmapsem: | 255 | fail_mmapsem: |
312 | up_write(&mm->mmap_sem); | 256 | up_write(&mm->mmap_sem); |
313 | return rc; | 257 | return rc; |
@@ -719,7 +663,7 @@ static void __init vdso_setup_syscall_map(void) | |||
719 | } | 663 | } |
720 | 664 | ||
721 | 665 | ||
722 | void __init vdso_init(void) | 666 | static int __init vdso_init(void) |
723 | { | 667 | { |
724 | int i; | 668 | int i; |
725 | 669 | ||
@@ -774,26 +718,44 @@ void __init vdso_init(void) | |||
774 | #ifdef CONFIG_PPC64 | 718 | #ifdef CONFIG_PPC64 |
775 | vdso64_pages = 0; | 719 | vdso64_pages = 0; |
776 | #endif | 720 | #endif |
777 | return; | 721 | return 0; |
778 | } | 722 | } |
779 | 723 | ||
780 | /* Make sure pages are in the correct state */ | 724 | /* Make sure pages are in the correct state */ |
725 | vdso32_pagelist = kzalloc(sizeof(struct page *) * (vdso32_pages + 2), | ||
726 | GFP_KERNEL); | ||
727 | BUG_ON(vdso32_pagelist == NULL); | ||
781 | for (i = 0; i < vdso32_pages; i++) { | 728 | for (i = 0; i < vdso32_pages; i++) { |
782 | struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); | 729 | struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); |
783 | ClearPageReserved(pg); | 730 | ClearPageReserved(pg); |
784 | get_page(pg); | 731 | get_page(pg); |
785 | 732 | vdso32_pagelist[i] = pg; | |
786 | } | 733 | } |
734 | vdso32_pagelist[i++] = virt_to_page(vdso_data); | ||
735 | vdso32_pagelist[i] = NULL; | ||
736 | |||
787 | #ifdef CONFIG_PPC64 | 737 | #ifdef CONFIG_PPC64 |
738 | vdso64_pagelist = kzalloc(sizeof(struct page *) * (vdso64_pages + 2), | ||
739 | GFP_KERNEL); | ||
740 | BUG_ON(vdso64_pagelist == NULL); | ||
788 | for (i = 0; i < vdso64_pages; i++) { | 741 | for (i = 0; i < vdso64_pages; i++) { |
789 | struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); | 742 | struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); |
790 | ClearPageReserved(pg); | 743 | ClearPageReserved(pg); |
791 | get_page(pg); | 744 | get_page(pg); |
745 | vdso64_pagelist[i] = pg; | ||
792 | } | 746 | } |
747 | vdso64_pagelist[i++] = virt_to_page(vdso_data); | ||
748 | vdso64_pagelist[i] = NULL; | ||
793 | #endif /* CONFIG_PPC64 */ | 749 | #endif /* CONFIG_PPC64 */ |
794 | 750 | ||
795 | get_page(virt_to_page(vdso_data)); | 751 | get_page(virt_to_page(vdso_data)); |
752 | |||
753 | smp_wmb(); | ||
754 | vdso_ready = 1; | ||
755 | |||
756 | return 0; | ||
796 | } | 757 | } |
758 | arch_initcall(vdso_init); | ||
797 | 759 | ||
798 | int in_gate_area_no_task(unsigned long addr) | 760 | int in_gate_area_no_task(unsigned long addr) |
799 | { | 761 | { |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 04b8e71bf5b0..7eefeb4a30e7 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -131,14 +131,14 @@ SECTIONS | |||
131 | __stop___fw_ftr_fixup = .; | 131 | __stop___fw_ftr_fixup = .; |
132 | } | 132 | } |
133 | #endif | 133 | #endif |
134 | 134 | #ifdef CONFIG_BLK_DEV_INITRD | |
135 | . = ALIGN(PAGE_SIZE); | 135 | . = ALIGN(PAGE_SIZE); |
136 | .init.ramfs : { | 136 | .init.ramfs : { |
137 | __initramfs_start = .; | 137 | __initramfs_start = .; |
138 | *(.init.ramfs) | 138 | *(.init.ramfs) |
139 | __initramfs_end = .; | 139 | __initramfs_end = .; |
140 | } | 140 | } |
141 | 141 | #endif | |
142 | #ifdef CONFIG_PPC32 | 142 | #ifdef CONFIG_PPC32 |
143 | . = ALIGN(32); | 143 | . = ALIGN(32); |
144 | #else | 144 | #else |
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 77b4637097e9..52f397c108a7 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -384,9 +384,6 @@ void __init mem_init(void) | |||
384 | initsize >> 10); | 384 | initsize >> 10); |
385 | 385 | ||
386 | mem_init_done = 1; | 386 | mem_init_done = 1; |
387 | |||
388 | /* Initialize the vDSO */ | ||
389 | vdso_init(); | ||
390 | } | 387 | } |
391 | 388 | ||
392 | /* | 389 | /* |
diff --git a/arch/powerpc/platforms/52xx/Makefile b/arch/powerpc/platforms/52xx/Makefile index 795b713ec9ee..07cdbcacf156 100644 --- a/arch/powerpc/platforms/52xx/Makefile +++ b/arch/powerpc/platforms/52xx/Makefile | |||
@@ -6,5 +6,5 @@ obj-y += mpc52xx_pic.o mpc52xx_common.o | |||
6 | obj-$(CONFIG_PCI) += mpc52xx_pci.o | 6 | obj-$(CONFIG_PCI) += mpc52xx_pci.o |
7 | endif | 7 | endif |
8 | 8 | ||
9 | obj-$(CONFIG_PPC_EFIKA) += efika-setup.o efika-pci.o | 9 | obj-$(CONFIG_PPC_EFIKA) += efika.o |
10 | obj-$(CONFIG_PPC_LITE5200) += lite5200.o | 10 | obj-$(CONFIG_PPC_LITE5200) += lite5200.o |
diff --git a/arch/powerpc/platforms/52xx/efika-pci.c b/arch/powerpc/platforms/52xx/efika-pci.c deleted file mode 100644 index 62e05b2a9227..000000000000 --- a/arch/powerpc/platforms/52xx/efika-pci.c +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | |||
2 | #include <linux/kernel.h> | ||
3 | #include <linux/pci.h> | ||
4 | #include <linux/string.h> | ||
5 | #include <linux/init.h> | ||
6 | |||
7 | #include <asm/io.h> | ||
8 | #include <asm/irq.h> | ||
9 | #include <asm/prom.h> | ||
10 | #include <asm/machdep.h> | ||
11 | #include <asm/sections.h> | ||
12 | #include <asm/pci-bridge.h> | ||
13 | #include <asm/rtas.h> | ||
14 | |||
15 | #include "efika.h" | ||
16 | |||
17 | #ifdef CONFIG_PCI | ||
18 | /* | ||
19 | * Access functions for PCI config space using RTAS calls. | ||
20 | */ | ||
21 | static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | ||
22 | int len, u32 * val) | ||
23 | { | ||
24 | struct pci_controller *hose = bus->sysdata; | ||
25 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
26 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
27 | | (hose->index << 24); | ||
28 | int ret = -1; | ||
29 | int rval; | ||
30 | |||
31 | rval = rtas_call(rtas_token("read-pci-config"), 2, 2, &ret, addr, len); | ||
32 | *val = ret; | ||
33 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
34 | } | ||
35 | |||
36 | static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, | ||
37 | int offset, int len, u32 val) | ||
38 | { | ||
39 | struct pci_controller *hose = bus->sysdata; | ||
40 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
41 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
42 | | (hose->index << 24); | ||
43 | int rval; | ||
44 | |||
45 | rval = rtas_call(rtas_token("write-pci-config"), 3, 1, NULL, | ||
46 | addr, len, val); | ||
47 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
48 | } | ||
49 | |||
50 | static struct pci_ops rtas_pci_ops = { | ||
51 | rtas_read_config, | ||
52 | rtas_write_config | ||
53 | }; | ||
54 | |||
55 | void __init efika_pcisetup(void) | ||
56 | { | ||
57 | const int *bus_range; | ||
58 | int len; | ||
59 | struct pci_controller *hose; | ||
60 | struct device_node *root; | ||
61 | struct device_node *pcictrl; | ||
62 | |||
63 | root = of_find_node_by_path("/"); | ||
64 | if (root == NULL) { | ||
65 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
66 | ": Unable to find the root node\n"); | ||
67 | return; | ||
68 | } | ||
69 | |||
70 | for (pcictrl = NULL;;) { | ||
71 | pcictrl = of_get_next_child(root, pcictrl); | ||
72 | if ((pcictrl == NULL) || (strcmp(pcictrl->name, "pci") == 0)) | ||
73 | break; | ||
74 | } | ||
75 | |||
76 | of_node_put(root); | ||
77 | |||
78 | if (pcictrl == NULL) { | ||
79 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
80 | ": Unable to find the PCI bridge node\n"); | ||
81 | return; | ||
82 | } | ||
83 | |||
84 | bus_range = get_property(pcictrl, "bus-range", &len); | ||
85 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
86 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
87 | ": Can't get bus-range for %s\n", pcictrl->full_name); | ||
88 | return; | ||
89 | } | ||
90 | |||
91 | if (bus_range[1] == bus_range[0]) | ||
92 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI bus %d", | ||
93 | bus_range[0]); | ||
94 | else | ||
95 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI buses %d..%d", | ||
96 | bus_range[0], bus_range[1]); | ||
97 | printk(" controlled by %s\n", pcictrl->full_name); | ||
98 | printk("\n"); | ||
99 | |||
100 | hose = pcibios_alloc_controller(); | ||
101 | if (!hose) { | ||
102 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
103 | ": Can't allocate PCI controller structure for %s\n", | ||
104 | pcictrl->full_name); | ||
105 | return; | ||
106 | } | ||
107 | |||
108 | hose->arch_data = of_node_get(pcictrl); | ||
109 | hose->first_busno = bus_range[0]; | ||
110 | hose->last_busno = bus_range[1]; | ||
111 | hose->ops = &rtas_pci_ops; | ||
112 | |||
113 | pci_process_bridge_OF_ranges(hose, pcictrl, 0); | ||
114 | } | ||
115 | |||
116 | #else | ||
117 | void __init efika_pcisetup(void) | ||
118 | {} | ||
119 | #endif | ||
diff --git a/arch/powerpc/platforms/52xx/efika-setup.c b/arch/powerpc/platforms/52xx/efika-setup.c deleted file mode 100644 index 110c980ed1e0..000000000000 --- a/arch/powerpc/platforms/52xx/efika-setup.c +++ /dev/null | |||
@@ -1,150 +0,0 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Efika 5K2 platform setup | ||
4 | * Some code really inspired from the lite5200b platform. | ||
5 | * | ||
6 | * Copyright (C) 2006 bplan GmbH | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public License | ||
9 | * version 2. This program is licensed "as is" without any warranty of any | ||
10 | * kind, whether express or implied. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/errno.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/slab.h> | ||
17 | #include <linux/reboot.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/utsrelease.h> | ||
20 | #include <linux/seq_file.h> | ||
21 | #include <linux/root_dev.h> | ||
22 | #include <linux/initrd.h> | ||
23 | #include <linux/timer.h> | ||
24 | #include <linux/pci.h> | ||
25 | |||
26 | #include <asm/pgtable.h> | ||
27 | #include <asm/prom.h> | ||
28 | #include <asm/time.h> | ||
29 | #include <asm/machdep.h> | ||
30 | #include <asm/rtas.h> | ||
31 | #include <asm/of_device.h> | ||
32 | #include <asm/of_platform.h> | ||
33 | #include <asm/mpc52xx.h> | ||
34 | |||
35 | #include "efika.h" | ||
36 | |||
37 | static void efika_show_cpuinfo(struct seq_file *m) | ||
38 | { | ||
39 | struct device_node *root; | ||
40 | const char *revision = NULL; | ||
41 | const char *codegendescription = NULL; | ||
42 | const char *codegenvendor = NULL; | ||
43 | |||
44 | root = of_find_node_by_path("/"); | ||
45 | if (root) { | ||
46 | revision = get_property(root, "revision", NULL); | ||
47 | codegendescription = | ||
48 | get_property(root, "CODEGEN,description", NULL); | ||
49 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
50 | |||
51 | of_node_put(root); | ||
52 | } | ||
53 | |||
54 | if (codegendescription) | ||
55 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | ||
56 | else | ||
57 | seq_printf(m, "machine\t\t: Efika\n"); | ||
58 | |||
59 | if (revision) | ||
60 | seq_printf(m, "revision\t: %s\n", revision); | ||
61 | |||
62 | if (codegenvendor) | ||
63 | seq_printf(m, "vendor\t\t: %s\n", codegenvendor); | ||
64 | |||
65 | of_node_put(root); | ||
66 | } | ||
67 | |||
68 | static void __init efika_setup_arch(void) | ||
69 | { | ||
70 | rtas_initialize(); | ||
71 | |||
72 | #ifdef CONFIG_BLK_DEV_INITRD | ||
73 | initrd_below_start_ok = 1; | ||
74 | |||
75 | if (initrd_start) | ||
76 | ROOT_DEV = Root_RAM0; | ||
77 | else | ||
78 | #endif | ||
79 | ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */ | ||
80 | |||
81 | efika_pcisetup(); | ||
82 | |||
83 | if (ppc_md.progress) | ||
84 | ppc_md.progress("Linux/PPC " UTS_RELEASE " runnung on Efika ;-)\n", 0x0); | ||
85 | } | ||
86 | |||
87 | static void __init efika_init(void) | ||
88 | { | ||
89 | struct device_node *np; | ||
90 | struct device_node *cnp = NULL; | ||
91 | const u32 *base; | ||
92 | |||
93 | /* Find every child of the SOC node and add it to of_platform */ | ||
94 | np = of_find_node_by_name(NULL, "builtin"); | ||
95 | if (np) { | ||
96 | char name[BUS_ID_SIZE]; | ||
97 | while ((cnp = of_get_next_child(np, cnp))) { | ||
98 | strcpy(name, cnp->name); | ||
99 | |||
100 | base = get_property(cnp, "reg", NULL); | ||
101 | if (base == NULL) | ||
102 | continue; | ||
103 | |||
104 | snprintf(name+strlen(name), BUS_ID_SIZE, "@%x", *base); | ||
105 | of_platform_device_create(cnp, name, NULL); | ||
106 | |||
107 | printk(KERN_INFO EFIKA_PLATFORM_NAME" : Added %s (type '%s' at '%s') to the known devices\n", name, cnp->type, cnp->full_name); | ||
108 | } | ||
109 | } | ||
110 | |||
111 | if (ppc_md.progress) | ||
112 | ppc_md.progress(" Have fun with your Efika! ", 0x7777); | ||
113 | } | ||
114 | |||
115 | static int __init efika_probe(void) | ||
116 | { | ||
117 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
118 | "model", NULL); | ||
119 | |||
120 | if (model == NULL) | ||
121 | return 0; | ||
122 | if (strcmp(model, "EFIKA5K2")) | ||
123 | return 0; | ||
124 | |||
125 | ISA_DMA_THRESHOLD = ~0L; | ||
126 | DMA_MODE_READ = 0x44; | ||
127 | DMA_MODE_WRITE = 0x48; | ||
128 | |||
129 | return 1; | ||
130 | } | ||
131 | |||
132 | define_machine(efika) | ||
133 | { | ||
134 | .name = EFIKA_PLATFORM_NAME, | ||
135 | .probe = efika_probe, | ||
136 | .setup_arch = efika_setup_arch, | ||
137 | .init = efika_init, | ||
138 | .show_cpuinfo = efika_show_cpuinfo, | ||
139 | .init_IRQ = mpc52xx_init_irq, | ||
140 | .get_irq = mpc52xx_get_irq, | ||
141 | .restart = rtas_restart, | ||
142 | .power_off = rtas_power_off, | ||
143 | .halt = rtas_halt, | ||
144 | .set_rtc_time = rtas_set_rtc_time, | ||
145 | .get_rtc_time = rtas_get_rtc_time, | ||
146 | .progress = rtas_progress, | ||
147 | .get_boot_time = rtas_get_boot_time, | ||
148 | .calibrate_decr = generic_calibrate_decr, | ||
149 | .phys_mem_access_prot = pci_phys_mem_access_prot, | ||
150 | }; | ||
diff --git a/arch/powerpc/platforms/52xx/efika.c b/arch/powerpc/platforms/52xx/efika.c new file mode 100644 index 000000000000..8de034116681 --- /dev/null +++ b/arch/powerpc/platforms/52xx/efika.c | |||
@@ -0,0 +1,243 @@ | |||
1 | /* | ||
2 | * Efika 5K2 platform code | ||
3 | * Some code really inspired from the lite5200b platform. | ||
4 | * | ||
5 | * Copyright (C) 2006 bplan GmbH | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #include <linux/errno.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/slab.h> | ||
15 | #include <linux/reboot.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/utsrelease.h> | ||
18 | #include <linux/seq_file.h> | ||
19 | #include <linux/string.h> | ||
20 | #include <linux/root_dev.h> | ||
21 | #include <linux/initrd.h> | ||
22 | #include <linux/timer.h> | ||
23 | #include <linux/pci.h> | ||
24 | |||
25 | #include <asm/io.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/sections.h> | ||
28 | #include <asm/pci-bridge.h> | ||
29 | #include <asm/pgtable.h> | ||
30 | #include <asm/prom.h> | ||
31 | #include <asm/time.h> | ||
32 | #include <asm/machdep.h> | ||
33 | #include <asm/rtas.h> | ||
34 | #include <asm/of_device.h> | ||
35 | #include <asm/of_platform.h> | ||
36 | #include <asm/mpc52xx.h> | ||
37 | |||
38 | |||
39 | #define EFIKA_PLATFORM_NAME "Efika" | ||
40 | |||
41 | |||
42 | /* ------------------------------------------------------------------------ */ | ||
43 | /* PCI accesses thru RTAS */ | ||
44 | /* ------------------------------------------------------------------------ */ | ||
45 | |||
46 | #ifdef CONFIG_PCI | ||
47 | |||
48 | /* | ||
49 | * Access functions for PCI config space using RTAS calls. | ||
50 | */ | ||
51 | static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | ||
52 | int len, u32 * val) | ||
53 | { | ||
54 | struct pci_controller *hose = bus->sysdata; | ||
55 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
56 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
57 | | (hose->index << 24); | ||
58 | int ret = -1; | ||
59 | int rval; | ||
60 | |||
61 | rval = rtas_call(rtas_token("read-pci-config"), 2, 2, &ret, addr, len); | ||
62 | *val = ret; | ||
63 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
64 | } | ||
65 | |||
66 | static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, | ||
67 | int offset, int len, u32 val) | ||
68 | { | ||
69 | struct pci_controller *hose = bus->sysdata; | ||
70 | unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8) | ||
71 | | (((bus->number - hose->first_busno) & 0xff) << 16) | ||
72 | | (hose->index << 24); | ||
73 | int rval; | ||
74 | |||
75 | rval = rtas_call(rtas_token("write-pci-config"), 3, 1, NULL, | ||
76 | addr, len, val); | ||
77 | return rval ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; | ||
78 | } | ||
79 | |||
80 | static struct pci_ops rtas_pci_ops = { | ||
81 | rtas_read_config, | ||
82 | rtas_write_config | ||
83 | }; | ||
84 | |||
85 | |||
86 | void __init efika_pcisetup(void) | ||
87 | { | ||
88 | const int *bus_range; | ||
89 | int len; | ||
90 | struct pci_controller *hose; | ||
91 | struct device_node *root; | ||
92 | struct device_node *pcictrl; | ||
93 | |||
94 | root = of_find_node_by_path("/"); | ||
95 | if (root == NULL) { | ||
96 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
97 | ": Unable to find the root node\n"); | ||
98 | return; | ||
99 | } | ||
100 | |||
101 | for (pcictrl = NULL;;) { | ||
102 | pcictrl = of_get_next_child(root, pcictrl); | ||
103 | if ((pcictrl == NULL) || (strcmp(pcictrl->name, "pci") == 0)) | ||
104 | break; | ||
105 | } | ||
106 | |||
107 | of_node_put(root); | ||
108 | |||
109 | if (pcictrl == NULL) { | ||
110 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
111 | ": Unable to find the PCI bridge node\n"); | ||
112 | return; | ||
113 | } | ||
114 | |||
115 | bus_range = get_property(pcictrl, "bus-range", &len); | ||
116 | if (bus_range == NULL || len < 2 * sizeof(int)) { | ||
117 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
118 | ": Can't get bus-range for %s\n", pcictrl->full_name); | ||
119 | return; | ||
120 | } | ||
121 | |||
122 | if (bus_range[1] == bus_range[0]) | ||
123 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI bus %d", | ||
124 | bus_range[0]); | ||
125 | else | ||
126 | printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI buses %d..%d", | ||
127 | bus_range[0], bus_range[1]); | ||
128 | printk(" controlled by %s\n", pcictrl->full_name); | ||
129 | printk("\n"); | ||
130 | |||
131 | hose = pcibios_alloc_controller(); | ||
132 | if (!hose) { | ||
133 | printk(KERN_WARNING EFIKA_PLATFORM_NAME | ||
134 | ": Can't allocate PCI controller structure for %s\n", | ||
135 | pcictrl->full_name); | ||
136 | return; | ||
137 | } | ||
138 | |||
139 | hose->arch_data = of_node_get(pcictrl); | ||
140 | hose->first_busno = bus_range[0]; | ||
141 | hose->last_busno = bus_range[1]; | ||
142 | hose->ops = &rtas_pci_ops; | ||
143 | |||
144 | pci_process_bridge_OF_ranges(hose, pcictrl, 0); | ||
145 | } | ||
146 | |||
147 | #else | ||
148 | void __init efika_pcisetup(void) | ||
149 | {} | ||
150 | #endif | ||
151 | |||
152 | |||
153 | |||
154 | /* ------------------------------------------------------------------------ */ | ||
155 | /* Platform setup */ | ||
156 | /* ------------------------------------------------------------------------ */ | ||
157 | |||
158 | static void efika_show_cpuinfo(struct seq_file *m) | ||
159 | { | ||
160 | struct device_node *root; | ||
161 | const char *revision = NULL; | ||
162 | const char *codegendescription = NULL; | ||
163 | const char *codegenvendor = NULL; | ||
164 | |||
165 | root = of_find_node_by_path("/"); | ||
166 | if (!root) | ||
167 | return; | ||
168 | |||
169 | revision = get_property(root, "revision", NULL); | ||
170 | codegendescription = | ||
171 | get_property(root, "CODEGEN,description", NULL); | ||
172 | codegenvendor = get_property(root, "CODEGEN,vendor", NULL); | ||
173 | |||
174 | if (codegendescription) | ||
175 | seq_printf(m, "machine\t\t: %s\n", codegendescription); | ||
176 | else | ||
177 | seq_printf(m, "machine\t\t: Efika\n"); | ||
178 | |||
179 | if (revision) | ||
180 | seq_printf(m, "revision\t: %s\n", revision); | ||
181 | |||
182 | if (codegenvendor) | ||
183 | seq_printf(m, "vendor\t\t: %s\n", codegenvendor); | ||
184 | |||
185 | of_node_put(root); | ||
186 | } | ||
187 | |||
188 | static void __init efika_setup_arch(void) | ||
189 | { | ||
190 | rtas_initialize(); | ||
191 | |||
192 | #ifdef CONFIG_BLK_DEV_INITRD | ||
193 | initrd_below_start_ok = 1; | ||
194 | |||
195 | if (initrd_start) | ||
196 | ROOT_DEV = Root_RAM0; | ||
197 | else | ||
198 | #endif | ||
199 | ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel) */ | ||
200 | |||
201 | efika_pcisetup(); | ||
202 | |||
203 | if (ppc_md.progress) | ||
204 | ppc_md.progress("Linux/PPC " UTS_RELEASE " running on Efika ;-)\n", 0x0); | ||
205 | } | ||
206 | |||
207 | static int __init efika_probe(void) | ||
208 | { | ||
209 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
210 | "model", NULL); | ||
211 | |||
212 | if (model == NULL) | ||
213 | return 0; | ||
214 | if (strcmp(model, "EFIKA5K2")) | ||
215 | return 0; | ||
216 | |||
217 | ISA_DMA_THRESHOLD = ~0L; | ||
218 | DMA_MODE_READ = 0x44; | ||
219 | DMA_MODE_WRITE = 0x48; | ||
220 | |||
221 | return 1; | ||
222 | } | ||
223 | |||
224 | define_machine(efika) | ||
225 | { | ||
226 | .name = EFIKA_PLATFORM_NAME, | ||
227 | .probe = efika_probe, | ||
228 | .setup_arch = efika_setup_arch, | ||
229 | .init = mpc52xx_declare_of_platform_devices, | ||
230 | .show_cpuinfo = efika_show_cpuinfo, | ||
231 | .init_IRQ = mpc52xx_init_irq, | ||
232 | .get_irq = mpc52xx_get_irq, | ||
233 | .restart = rtas_restart, | ||
234 | .power_off = rtas_power_off, | ||
235 | .halt = rtas_halt, | ||
236 | .set_rtc_time = rtas_set_rtc_time, | ||
237 | .get_rtc_time = rtas_get_rtc_time, | ||
238 | .progress = rtas_progress, | ||
239 | .get_boot_time = rtas_get_boot_time, | ||
240 | .calibrate_decr = generic_calibrate_decr, | ||
241 | .phys_mem_access_prot = pci_phys_mem_access_prot, | ||
242 | }; | ||
243 | |||
diff --git a/arch/powerpc/platforms/52xx/efika.h b/arch/powerpc/platforms/52xx/efika.h deleted file mode 100644 index 2f060fd097d7..000000000000 --- a/arch/powerpc/platforms/52xx/efika.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * Efika 5K2 platform setup - Header file | ||
3 | * | ||
4 | * Copyright (C) 2006 bplan GmbH | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #ifndef __ARCH_POWERPC_EFIKA__ | ||
13 | #define __ARCH_POWERPC_EFIKA__ | ||
14 | |||
15 | #define EFIKA_PLATFORM_NAME "Efika" | ||
16 | |||
17 | extern void __init efika_pcisetup(void); | ||
18 | |||
19 | #endif | ||
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index cdb16bfa6ca6..cc3b40de21dd 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -51,13 +51,13 @@ | |||
51 | */ | 51 | */ |
52 | 52 | ||
53 | static void __init | 53 | static void __init |
54 | lite52xx_setup_cpu(void) | 54 | lite5200_setup_cpu(void) |
55 | { | 55 | { |
56 | struct mpc52xx_gpio __iomem *gpio; | 56 | struct mpc52xx_gpio __iomem *gpio; |
57 | u32 port_config; | 57 | u32 port_config; |
58 | 58 | ||
59 | /* Map zones */ | 59 | /* Map zones */ |
60 | gpio = mpc52xx_find_and_map("mpc52xx-gpio"); | 60 | gpio = mpc52xx_find_and_map("mpc5200-gpio"); |
61 | if (!gpio) { | 61 | if (!gpio) { |
62 | printk(KERN_ERR __FILE__ ": " | 62 | printk(KERN_ERR __FILE__ ": " |
63 | "Error while mapping GPIO register for port config. " | 63 | "Error while mapping GPIO register for port config. " |
@@ -85,12 +85,12 @@ error: | |||
85 | iounmap(gpio); | 85 | iounmap(gpio); |
86 | } | 86 | } |
87 | 87 | ||
88 | static void __init lite52xx_setup_arch(void) | 88 | static void __init lite5200_setup_arch(void) |
89 | { | 89 | { |
90 | struct device_node *np; | 90 | struct device_node *np; |
91 | 91 | ||
92 | if (ppc_md.progress) | 92 | if (ppc_md.progress) |
93 | ppc_md.progress("lite52xx_setup_arch()", 0); | 93 | ppc_md.progress("lite5200_setup_arch()", 0); |
94 | 94 | ||
95 | np = of_find_node_by_type(NULL, "cpu"); | 95 | np = of_find_node_by_type(NULL, "cpu"); |
96 | if (np) { | 96 | if (np) { |
@@ -105,7 +105,7 @@ static void __init lite52xx_setup_arch(void) | |||
105 | 105 | ||
106 | /* CPU & Port mux setup */ | 106 | /* CPU & Port mux setup */ |
107 | mpc52xx_setup_cpu(); /* Generic */ | 107 | mpc52xx_setup_cpu(); /* Generic */ |
108 | lite52xx_setup_cpu(); /* Platorm specific */ | 108 | lite5200_setup_cpu(); /* Platorm specific */ |
109 | 109 | ||
110 | #ifdef CONFIG_PCI | 110 | #ifdef CONFIG_PCI |
111 | np = of_find_node_by_type(np, "pci"); | 111 | np = of_find_node_by_type(np, "pci"); |
@@ -126,7 +126,7 @@ static void __init lite52xx_setup_arch(void) | |||
126 | 126 | ||
127 | } | 127 | } |
128 | 128 | ||
129 | void lite52xx_show_cpuinfo(struct seq_file *m) | 129 | void lite5200_show_cpuinfo(struct seq_file *m) |
130 | { | 130 | { |
131 | struct device_node* np = of_find_all_nodes(NULL); | 131 | struct device_node* np = of_find_all_nodes(NULL); |
132 | const char *model = NULL; | 132 | const char *model = NULL; |
@@ -143,25 +143,26 @@ void lite52xx_show_cpuinfo(struct seq_file *m) | |||
143 | /* | 143 | /* |
144 | * Called very early, MMU is off, device-tree isn't unflattened | 144 | * Called very early, MMU is off, device-tree isn't unflattened |
145 | */ | 145 | */ |
146 | static int __init lite52xx_probe(void) | 146 | static int __init lite5200_probe(void) |
147 | { | 147 | { |
148 | unsigned long node = of_get_flat_dt_root(); | 148 | unsigned long node = of_get_flat_dt_root(); |
149 | const char *model = of_get_flat_dt_prop(node, "model", NULL); | 149 | const char *model = of_get_flat_dt_prop(node, "model", NULL); |
150 | 150 | ||
151 | if (!of_flat_dt_is_compatible(node, "lite52xx")) | 151 | if (!of_flat_dt_is_compatible(node, "fsl,lite5200") && |
152 | !of_flat_dt_is_compatible(node, "fsl,lite5200b")) | ||
152 | return 0; | 153 | return 0; |
153 | pr_debug("%s board w/ mpc52xx found\n", model ? model : "unknown"); | 154 | pr_debug("%s board found\n", model ? model : "unknown"); |
154 | 155 | ||
155 | return 1; | 156 | return 1; |
156 | } | 157 | } |
157 | 158 | ||
158 | define_machine(lite52xx) { | 159 | define_machine(lite5200) { |
159 | .name = "lite52xx", | 160 | .name = "lite5200", |
160 | .probe = lite52xx_probe, | 161 | .probe = lite5200_probe, |
161 | .setup_arch = lite52xx_setup_arch, | 162 | .setup_arch = lite5200_setup_arch, |
162 | .init = mpc52xx_declare_of_platform_devices, | 163 | .init = mpc52xx_declare_of_platform_devices, |
163 | .init_IRQ = mpc52xx_init_irq, | 164 | .init_IRQ = mpc52xx_init_irq, |
164 | .get_irq = mpc52xx_get_irq, | 165 | .get_irq = mpc52xx_get_irq, |
165 | .show_cpuinfo = lite52xx_show_cpuinfo, | 166 | .show_cpuinfo = lite5200_show_cpuinfo, |
166 | .calibrate_decr = generic_calibrate_decr, | 167 | .calibrate_decr = generic_calibrate_decr, |
167 | }; | 168 | }; |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c index cc40889074bd..ed0cb694aea8 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_common.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c | |||
@@ -83,8 +83,8 @@ mpc52xx_setup_cpu(void) | |||
83 | struct mpc52xx_xlb __iomem *xlb; | 83 | struct mpc52xx_xlb __iomem *xlb; |
84 | 84 | ||
85 | /* Map zones */ | 85 | /* Map zones */ |
86 | cdm = mpc52xx_find_and_map("mpc52xx-cdm"); | 86 | cdm = mpc52xx_find_and_map("mpc5200-cdm"); |
87 | xlb = mpc52xx_find_and_map("mpc52xx-xlb"); | 87 | xlb = mpc52xx_find_and_map("mpc5200-xlb"); |
88 | 88 | ||
89 | if (!cdm || !xlb) { | 89 | if (!cdm || !xlb) { |
90 | printk(KERN_ERR __FILE__ ": " | 90 | printk(KERN_ERR __FILE__ ": " |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index cd91a6c3aafa..c75192567e55 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -383,16 +383,16 @@ void __init mpc52xx_init_irq(void) | |||
383 | struct device_node *picnode; | 383 | struct device_node *picnode; |
384 | 384 | ||
385 | /* Remap the necessary zones */ | 385 | /* Remap the necessary zones */ |
386 | picnode = of_find_compatible_node(NULL, NULL, "mpc52xx-pic"); | 386 | picnode = of_find_compatible_node(NULL, NULL, "mpc5200-pic"); |
387 | 387 | ||
388 | intr = mpc52xx_find_and_map("mpc52xx-pic"); | 388 | intr = mpc52xx_find_and_map("mpc5200-pic"); |
389 | if (!intr) | 389 | if (!intr) |
390 | panic(__FILE__ ": find_and_map failed on 'mpc52xx-pic'. " | 390 | panic(__FILE__ ": find_and_map failed on 'mpc5200-pic'. " |
391 | "Check node !"); | 391 | "Check node !"); |
392 | 392 | ||
393 | sdma = mpc52xx_find_and_map("mpc52xx-bestcomm"); | 393 | sdma = mpc52xx_find_and_map("mpc5200-bestcomm"); |
394 | if (!sdma) | 394 | if (!sdma) |
395 | panic(__FILE__ ": find_and_map failed on 'mpc52xx-bestcomm'. " | 395 | panic(__FILE__ ": find_and_map failed on 'mpc5200-bestcomm'. " |
396 | "Check node !"); | 396 | "Check node !"); |
397 | 397 | ||
398 | /* Disable all interrupt sources. */ | 398 | /* Disable all interrupt sources. */ |
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig index edcd5b875b66..1aea1e69ff31 100644 --- a/arch/powerpc/platforms/83xx/Kconfig +++ b/arch/powerpc/platforms/83xx/Kconfig | |||
@@ -3,7 +3,13 @@ menu "Platform support" | |||
3 | 3 | ||
4 | choice | 4 | choice |
5 | prompt "Machine Type" | 5 | prompt "Machine Type" |
6 | default MPC834x_SYS | 6 | default MPC834x_MDS |
7 | |||
8 | config MPC8313_RDB | ||
9 | bool "Freescale MPC8313 RDB" | ||
10 | select DEFAULT_UIMAGE | ||
11 | help | ||
12 | This option enables support for the MPC8313 RDB board. | ||
7 | 13 | ||
8 | config MPC832x_MDS | 14 | config MPC832x_MDS |
9 | bool "Freescale MPC832x MDS" | 15 | bool "Freescale MPC832x MDS" |
@@ -12,13 +18,13 @@ config MPC832x_MDS | |||
12 | help | 18 | help |
13 | This option enables support for the MPC832x MDS evaluation board. | 19 | This option enables support for the MPC832x MDS evaluation board. |
14 | 20 | ||
15 | config MPC834x_SYS | 21 | config MPC834x_MDS |
16 | bool "Freescale MPC834x SYS" | 22 | bool "Freescale MPC834x MDS" |
17 | select DEFAULT_UIMAGE | 23 | select DEFAULT_UIMAGE |
18 | help | 24 | help |
19 | This option enables support for the MPC 834x SYS evaluation board. | 25 | This option enables support for the MPC 834x MDS evaluation board. |
20 | 26 | ||
21 | Be aware that PCI buses can only function when SYS board is plugged | 27 | Be aware that PCI buses can only function when MDS board is plugged |
22 | into the PIB (Platform IO Board) board from Freescale which provide | 28 | into the PIB (Platform IO Board) board from Freescale which provide |
23 | 3 PCI slots. The PIBs PCI initialization is the bootloader's | 29 | 3 PCI slots. The PIBs PCI initialization is the bootloader's |
24 | responsibility. | 30 | responsibility. |
@@ -41,6 +47,12 @@ config MPC8360E_PB | |||
41 | 47 | ||
42 | endchoice | 48 | endchoice |
43 | 49 | ||
50 | config PPC_MPC831x | ||
51 | bool | ||
52 | select PPC_UDBG_16550 | ||
53 | select PPC_INDIRECT_PCI | ||
54 | default y if MPC8313_RDB | ||
55 | |||
44 | config PPC_MPC832x | 56 | config PPC_MPC832x |
45 | bool | 57 | bool |
46 | select PPC_UDBG_16550 | 58 | select PPC_UDBG_16550 |
@@ -51,7 +63,7 @@ config MPC834x | |||
51 | bool | 63 | bool |
52 | select PPC_UDBG_16550 | 64 | select PPC_UDBG_16550 |
53 | select PPC_INDIRECT_PCI | 65 | select PPC_INDIRECT_PCI |
54 | default y if MPC834x_SYS || MPC834x_ITX | 66 | default y if MPC834x_MDS || MPC834x_ITX |
55 | 67 | ||
56 | config PPC_MPC836x | 68 | config PPC_MPC836x |
57 | bool | 69 | bool |
diff --git a/arch/powerpc/platforms/83xx/Makefile b/arch/powerpc/platforms/83xx/Makefile index f1aa7e24a938..6c8199c4c382 100644 --- a/arch/powerpc/platforms/83xx/Makefile +++ b/arch/powerpc/platforms/83xx/Makefile | |||
@@ -3,7 +3,8 @@ | |||
3 | # | 3 | # |
4 | obj-y := misc.o | 4 | obj-y := misc.o |
5 | obj-$(CONFIG_PCI) += pci.o | 5 | obj-$(CONFIG_PCI) += pci.o |
6 | obj-$(CONFIG_MPC834x_SYS) += mpc834x_sys.o | 6 | obj-$(CONFIG_MPC8313_RDB) += mpc8313_rdb.o |
7 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o | ||
7 | obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o | 8 | obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o |
8 | obj-$(CONFIG_MPC8360E_PB) += mpc8360e_pb.o | 9 | obj-$(CONFIG_MPC8360E_PB) += mpc8360e_pb.o |
9 | obj-$(CONFIG_MPC832x_MDS) += mpc832x_mds.o | 10 | obj-$(CONFIG_MPC832x_MDS) += mpc832x_mds.o |
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c new file mode 100644 index 000000000000..c3b98c34eb6b --- /dev/null +++ b/arch/powerpc/platforms/83xx/mpc8313_rdb.c | |||
@@ -0,0 +1,99 @@ | |||
1 | /* | ||
2 | * arch/powerpc/platforms/83xx/mpc8313_rdb.c | ||
3 | * | ||
4 | * Description: MPC8313x RDB board specific routines. | ||
5 | * This file is based on mpc834x_sys.c | ||
6 | * Author: Lo Wlison <r43300@freescale.com> | ||
7 | * | ||
8 | * Copyright (C) Freescale Semiconductor, Inc. 2006. All rights reserved. | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | */ | ||
15 | |||
16 | #include <linux/pci.h> | ||
17 | |||
18 | #include <asm/time.h> | ||
19 | #include <asm/ipic.h> | ||
20 | #include <asm/udbg.h> | ||
21 | |||
22 | #include "mpc83xx.h" | ||
23 | |||
24 | #undef DEBUG | ||
25 | #ifdef DEBUG | ||
26 | #define DBG(fmt...) udbg_printf(fmt) | ||
27 | #else | ||
28 | #define DBG(fmt...) | ||
29 | #endif | ||
30 | |||
31 | #ifndef CONFIG_PCI | ||
32 | unsigned long isa_io_base = 0; | ||
33 | unsigned long isa_mem_base = 0; | ||
34 | #endif | ||
35 | |||
36 | /* ************************************************************************ | ||
37 | * | ||
38 | * Setup the architecture | ||
39 | * | ||
40 | */ | ||
41 | static void __init mpc8313_rdb_setup_arch(void) | ||
42 | { | ||
43 | struct device_node *np; | ||
44 | |||
45 | if (ppc_md.progress) | ||
46 | ppc_md.progress("mpc8313_rdb_setup_arch()", 0); | ||
47 | |||
48 | #ifdef CONFIG_PCI | ||
49 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | ||
50 | add_bridge(np); | ||
51 | |||
52 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; | ||
53 | #endif | ||
54 | } | ||
55 | |||
56 | void __init mpc8313_rdb_init_IRQ(void) | ||
57 | { | ||
58 | struct device_node *np; | ||
59 | |||
60 | np = of_find_node_by_type(NULL, "ipic"); | ||
61 | if (!np) | ||
62 | return; | ||
63 | |||
64 | ipic_init(np, 0); | ||
65 | |||
66 | /* Initialize the default interrupt mapping priorities, | ||
67 | * in case the boot rom changed something on us. | ||
68 | */ | ||
69 | ipic_set_default_priority(); | ||
70 | } | ||
71 | |||
72 | /* | ||
73 | * Called very early, MMU is off, device-tree isn't unflattened | ||
74 | */ | ||
75 | static int __init mpc8313_rdb_probe(void) | ||
76 | { | ||
77 | char *model = of_get_flat_dt_prop(of_get_flat_dt_root(), | ||
78 | "model", NULL); | ||
79 | if (model == NULL) | ||
80 | return 0; | ||
81 | if (strcmp(model, "MPC8313ERDB")) | ||
82 | return 0; | ||
83 | |||
84 | DBG("MPC8313 RDB found\n"); | ||
85 | |||
86 | return 1; | ||
87 | } | ||
88 | |||
89 | define_machine(mpc8313_rdb) { | ||
90 | .name = "MPC8313 RDB", | ||
91 | .probe = mpc8313_rdb_probe, | ||
92 | .setup_arch = mpc8313_rdb_setup_arch, | ||
93 | .init_IRQ = mpc8313_rdb_init_IRQ, | ||
94 | .get_irq = ipic_get_irq, | ||
95 | .restart = mpc83xx_restart, | ||
96 | .time_init = mpc83xx_time_init, | ||
97 | .calibrate_decr = generic_calibrate_decr, | ||
98 | .progress = udbg_progress, | ||
99 | }; | ||
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 2446dea9407e..443a3172f370 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -38,8 +38,6 @@ | |||
38 | 38 | ||
39 | #include "mpc83xx.h" | 39 | #include "mpc83xx.h" |
40 | 40 | ||
41 | #include <platforms/83xx/mpc834x_sys.h> | ||
42 | |||
43 | #ifndef CONFIG_PCI | 41 | #ifndef CONFIG_PCI |
44 | unsigned long isa_io_base = 0; | 42 | unsigned long isa_io_base = 0; |
45 | unsigned long isa_mem_base = 0; | 43 | unsigned long isa_mem_base = 0; |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_sys.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index f30393f0b832..d2736da76c46 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_sys.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/powerpc/platforms/83xx/mpc834x_sys.c | 2 | * arch/powerpc/platforms/83xx/mpc834x_mds.c |
3 | * | 3 | * |
4 | * MPC834x SYS board specific routines | 4 | * MPC834x MDS board specific routines |
5 | * | 5 | * |
6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> | 6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> |
7 | * | 7 | * |
@@ -43,17 +43,87 @@ unsigned long isa_io_base = 0; | |||
43 | unsigned long isa_mem_base = 0; | 43 | unsigned long isa_mem_base = 0; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #define BCSR5_INT_USB 0x02 | ||
47 | /* Note: This is only for PB, not for PB+PIB | ||
48 | * On PB only port0 is connected using ULPI */ | ||
49 | static int mpc834x_usb_cfg(void) | ||
50 | { | ||
51 | unsigned long sccr, sicrl; | ||
52 | void __iomem *immap; | ||
53 | void __iomem *bcsr_regs = NULL; | ||
54 | u8 bcsr5; | ||
55 | struct device_node *np = NULL; | ||
56 | int port0_is_dr = 0; | ||
57 | |||
58 | if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-dr")) != NULL) | ||
59 | port0_is_dr = 1; | ||
60 | if ((np = of_find_compatible_node(np, "usb", "fsl-usb2-mph")) != NULL){ | ||
61 | if (port0_is_dr) { | ||
62 | printk(KERN_WARNING | ||
63 | "There is only one USB port on PB board! \n"); | ||
64 | return -1; | ||
65 | } else if (!port0_is_dr) | ||
66 | /* No usb port enabled */ | ||
67 | return -1; | ||
68 | } | ||
69 | |||
70 | immap = ioremap(get_immrbase(), 0x1000); | ||
71 | if (!immap) | ||
72 | return -1; | ||
73 | |||
74 | /* Configure clock */ | ||
75 | sccr = in_be32(immap + MPC83XX_SCCR_OFFS); | ||
76 | if (port0_is_dr) | ||
77 | sccr |= MPC83XX_SCCR_USB_DRCM_11; /* 1:3 */ | ||
78 | else | ||
79 | sccr |= MPC83XX_SCCR_USB_MPHCM_11; /* 1:3 */ | ||
80 | out_be32(immap + MPC83XX_SCCR_OFFS, sccr); | ||
81 | |||
82 | /* Configure Pin */ | ||
83 | sicrl = in_be32(immap + MPC83XX_SICRL_OFFS); | ||
84 | /* set port0 only */ | ||
85 | if (port0_is_dr) | ||
86 | sicrl |= MPC83XX_SICRL_USB0; | ||
87 | else | ||
88 | sicrl &= ~(MPC83XX_SICRL_USB0); | ||
89 | out_be32(immap + MPC83XX_SICRL_OFFS, sicrl); | ||
90 | |||
91 | iounmap(immap); | ||
92 | |||
93 | /* Map BCSR area */ | ||
94 | np = of_find_node_by_name(NULL, "bcsr"); | ||
95 | if (np != 0) { | ||
96 | struct resource res; | ||
97 | |||
98 | of_address_to_resource(np, 0, &res); | ||
99 | bcsr_regs = ioremap(res.start, res.end - res.start + 1); | ||
100 | of_node_put(np); | ||
101 | } | ||
102 | if (!bcsr_regs) | ||
103 | return -1; | ||
104 | |||
105 | /* | ||
106 | * if MDS board is plug into PIB board, | ||
107 | * force to use the PHY on MDS board | ||
108 | */ | ||
109 | bcsr5 = in_8(bcsr_regs + 5); | ||
110 | if (!(bcsr5 & BCSR5_INT_USB)) | ||
111 | out_8(bcsr_regs + 5, (bcsr5 | BCSR5_INT_USB)); | ||
112 | iounmap(bcsr_regs); | ||
113 | return 0; | ||
114 | } | ||
115 | |||
46 | /* ************************************************************************ | 116 | /* ************************************************************************ |
47 | * | 117 | * |
48 | * Setup the architecture | 118 | * Setup the architecture |
49 | * | 119 | * |
50 | */ | 120 | */ |
51 | static void __init mpc834x_sys_setup_arch(void) | 121 | static void __init mpc834x_mds_setup_arch(void) |
52 | { | 122 | { |
53 | struct device_node *np; | 123 | struct device_node *np; |
54 | 124 | ||
55 | if (ppc_md.progress) | 125 | if (ppc_md.progress) |
56 | ppc_md.progress("mpc834x_sys_setup_arch()", 0); | 126 | ppc_md.progress("mpc834x_mds_setup_arch()", 0); |
57 | 127 | ||
58 | np = of_find_node_by_type(NULL, "cpu"); | 128 | np = of_find_node_by_type(NULL, "cpu"); |
59 | if (np != 0) { | 129 | if (np != 0) { |
@@ -65,6 +135,7 @@ static void __init mpc834x_sys_setup_arch(void) | |||
65 | loops_per_jiffy = 50000000 / HZ; | 135 | loops_per_jiffy = 50000000 / HZ; |
66 | of_node_put(np); | 136 | of_node_put(np); |
67 | } | 137 | } |
138 | |||
68 | #ifdef CONFIG_PCI | 139 | #ifdef CONFIG_PCI |
69 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 140 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
70 | add_bridge(np); | 141 | add_bridge(np); |
@@ -72,6 +143,8 @@ static void __init mpc834x_sys_setup_arch(void) | |||
72 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; | 143 | ppc_md.pci_exclude_device = mpc83xx_exclude_device; |
73 | #endif | 144 | #endif |
74 | 145 | ||
146 | mpc834x_usb_cfg(); | ||
147 | |||
75 | #ifdef CONFIG_ROOT_NFS | 148 | #ifdef CONFIG_ROOT_NFS |
76 | ROOT_DEV = Root_NFS; | 149 | ROOT_DEV = Root_NFS; |
77 | #else | 150 | #else |
@@ -79,7 +152,7 @@ static void __init mpc834x_sys_setup_arch(void) | |||
79 | #endif | 152 | #endif |
80 | } | 153 | } |
81 | 154 | ||
82 | static void __init mpc834x_sys_init_IRQ(void) | 155 | static void __init mpc834x_mds_init_IRQ(void) |
83 | { | 156 | { |
84 | struct device_node *np; | 157 | struct device_node *np; |
85 | 158 | ||
@@ -119,7 +192,7 @@ late_initcall(mpc834x_rtc_hookup); | |||
119 | /* | 192 | /* |
120 | * Called very early, MMU is off, device-tree isn't unflattened | 193 | * Called very early, MMU is off, device-tree isn't unflattened |
121 | */ | 194 | */ |
122 | static int __init mpc834x_sys_probe(void) | 195 | static int __init mpc834x_mds_probe(void) |
123 | { | 196 | { |
124 | /* We always match for now, eventually we should look at the flat | 197 | /* We always match for now, eventually we should look at the flat |
125 | dev tree to ensure this is the board we are suppose to run on | 198 | dev tree to ensure this is the board we are suppose to run on |
@@ -127,11 +200,11 @@ static int __init mpc834x_sys_probe(void) | |||
127 | return 1; | 200 | return 1; |
128 | } | 201 | } |
129 | 202 | ||
130 | define_machine(mpc834x_sys) { | 203 | define_machine(mpc834x_mds) { |
131 | .name = "MPC834x SYS", | 204 | .name = "MPC834x MDS", |
132 | .probe = mpc834x_sys_probe, | 205 | .probe = mpc834x_mds_probe, |
133 | .setup_arch = mpc834x_sys_setup_arch, | 206 | .setup_arch = mpc834x_mds_setup_arch, |
134 | .init_IRQ = mpc834x_sys_init_IRQ, | 207 | .init_IRQ = mpc834x_mds_init_IRQ, |
135 | .get_irq = ipic_get_irq, | 208 | .get_irq = ipic_get_irq, |
136 | .restart = mpc83xx_restart, | 209 | .restart = mpc83xx_restart, |
137 | .time_init = mpc83xx_time_init, | 210 | .time_init = mpc83xx_time_init, |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_sys.h b/arch/powerpc/platforms/83xx/mpc834x_sys.h deleted file mode 100644 index 7d5bbef084e7..000000000000 --- a/arch/powerpc/platforms/83xx/mpc834x_sys.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | /* | ||
2 | * arch/powerpc/platforms/83xx/mpc834x_sys.h | ||
3 | * | ||
4 | * MPC834X SYS common board definitions | ||
5 | * | ||
6 | * Maintainer: Kumar Gala <galak@kernel.crashing.org> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __MACH_MPC83XX_SYS_H__ | ||
16 | #define __MACH_MPC83XX_SYS_H__ | ||
17 | |||
18 | #define PIRQA MPC83xx_IRQ_EXT4 | ||
19 | #define PIRQB MPC83xx_IRQ_EXT5 | ||
20 | #define PIRQC MPC83xx_IRQ_EXT6 | ||
21 | #define PIRQD MPC83xx_IRQ_EXT7 | ||
22 | |||
23 | #endif /* __MACH_MPC83XX_SYS_H__ */ | ||
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index 01cae106912b..9cd03b59c8f4 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -4,6 +4,24 @@ | |||
4 | #include <linux/init.h> | 4 | #include <linux/init.h> |
5 | #include <linux/device.h> | 5 | #include <linux/device.h> |
6 | 6 | ||
7 | /* System Clock Control Register */ | ||
8 | #define MPC83XX_SCCR_OFFS 0xA08 | ||
9 | #define MPC83XX_SCCR_USB_MPHCM_11 0x00c00000 | ||
10 | #define MPC83XX_SCCR_USB_MPHCM_01 0x00400000 | ||
11 | #define MPC83XX_SCCR_USB_MPHCM_10 0x00800000 | ||
12 | #define MPC83XX_SCCR_USB_DRCM_11 0x00300000 | ||
13 | #define MPC83XX_SCCR_USB_DRCM_01 0x00100000 | ||
14 | #define MPC83XX_SCCR_USB_DRCM_10 0x00200000 | ||
15 | |||
16 | /* system i/o configuration register low */ | ||
17 | #define MPC83XX_SICRL_OFFS 0x114 | ||
18 | #define MPC83XX_SICRL_USB0 0x40000000 | ||
19 | #define MPC83XX_SICRL_USB1 0x20000000 | ||
20 | |||
21 | /* system i/o configuration register high */ | ||
22 | #define MPC83XX_SICRH_OFFS 0x118 | ||
23 | #define MPC83XX_SICRH_USB_UTMI 0x00020000 | ||
24 | |||
7 | /* | 25 | /* |
8 | * Declaration for the various functions exported by the | 26 | * Declaration for the various functions exported by the |
9 | * mpc83xx_* files. Mostly for use by mpc83xx_setup | 27 | * mpc83xx_* files. Mostly for use by mpc83xx_setup |
diff --git a/arch/powerpc/platforms/Makefile b/arch/powerpc/platforms/Makefile index 65e612315b9b..452004283f17 100644 --- a/arch/powerpc/platforms/Makefile +++ b/arch/powerpc/platforms/Makefile | |||
@@ -5,9 +5,9 @@ ifeq ($(CONFIG_PPC64),y) | |||
5 | obj-$(CONFIG_PPC_PMAC) += powermac/ | 5 | obj-$(CONFIG_PPC_PMAC) += powermac/ |
6 | endif | 6 | endif |
7 | endif | 7 | endif |
8 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ | ||
9 | obj-$(CONFIG_PPC_CHRP) += chrp/ | 8 | obj-$(CONFIG_PPC_CHRP) += chrp/ |
10 | obj-$(CONFIG_4xx) += 4xx/ | 9 | obj-$(CONFIG_4xx) += 4xx/ |
10 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ | ||
11 | obj-$(CONFIG_PPC_8xx) += 8xx/ | 11 | obj-$(CONFIG_PPC_8xx) += 8xx/ |
12 | obj-$(CONFIG_PPC_82xx) += 82xx/ | 12 | obj-$(CONFIG_PPC_82xx) += 82xx/ |
13 | obj-$(CONFIG_PPC_83xx) += 83xx/ | 13 | obj-$(CONFIG_PPC_83xx) += 83xx/ |
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index b43466ba8096..67d617b60a23 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -149,7 +149,8 @@ static int cbe_nr_iommus; | |||
149 | static void invalidate_tce_cache(struct cbe_iommu *iommu, unsigned long *pte, | 149 | static void invalidate_tce_cache(struct cbe_iommu *iommu, unsigned long *pte, |
150 | long n_ptes) | 150 | long n_ptes) |
151 | { | 151 | { |
152 | unsigned long *reg, val; | 152 | unsigned long __iomem *reg; |
153 | unsigned long val; | ||
153 | long n; | 154 | long n; |
154 | 155 | ||
155 | reg = iommu->xlate_regs + IOC_IOPT_CacheInvd; | 156 | reg = iommu->xlate_regs + IOC_IOPT_CacheInvd; |
@@ -592,7 +593,7 @@ static void __init cell_iommu_init_one(struct device_node *np, unsigned long off | |||
592 | /* Init base fields */ | 593 | /* Init base fields */ |
593 | i = cbe_nr_iommus++; | 594 | i = cbe_nr_iommus++; |
594 | iommu = &iommus[i]; | 595 | iommu = &iommus[i]; |
595 | iommu->stab = 0; | 596 | iommu->stab = NULL; |
596 | iommu->nid = nid; | 597 | iommu->nid = nid; |
597 | snprintf(iommu->name, sizeof(iommu->name), "iommu%d", i); | 598 | snprintf(iommu->name, sizeof(iommu->name), "iommu%d", i); |
598 | INIT_LIST_HEAD(&iommu->windows); | 599 | INIT_LIST_HEAD(&iommu->windows); |
diff --git a/arch/powerpc/platforms/cell/spu_manage.c b/arch/powerpc/platforms/cell/spu_manage.c index d8b39fe39cdd..e34599f53d28 100644 --- a/arch/powerpc/platforms/cell/spu_manage.c +++ b/arch/powerpc/platforms/cell/spu_manage.c | |||
@@ -59,63 +59,6 @@ static u64 __init find_spu_unit_number(struct device_node *spe) | |||
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | static int __init cell_spuprop_present(struct spu *spu, struct device_node *spe, | ||
63 | const char *prop) | ||
64 | { | ||
65 | const struct address_prop { | ||
66 | unsigned long address; | ||
67 | unsigned int len; | ||
68 | } __attribute__((packed)) *p; | ||
69 | int proplen; | ||
70 | |||
71 | unsigned long start_pfn, nr_pages; | ||
72 | struct pglist_data *pgdata; | ||
73 | struct zone *zone; | ||
74 | int ret; | ||
75 | |||
76 | p = get_property(spe, prop, &proplen); | ||
77 | WARN_ON(proplen != sizeof (*p)); | ||
78 | |||
79 | start_pfn = p->address >> PAGE_SHIFT; | ||
80 | nr_pages = ((unsigned long)p->len + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
81 | |||
82 | pgdata = NODE_DATA(spu->node); | ||
83 | zone = pgdata->node_zones; | ||
84 | |||
85 | ret = __add_pages(zone, start_pfn, nr_pages); | ||
86 | |||
87 | return ret; | ||
88 | } | ||
89 | |||
90 | static void __iomem * __init map_spe_prop(struct spu *spu, | ||
91 | struct device_node *n, const char *name) | ||
92 | { | ||
93 | const struct address_prop { | ||
94 | unsigned long address; | ||
95 | unsigned int len; | ||
96 | } __attribute__((packed)) *prop; | ||
97 | |||
98 | const void *p; | ||
99 | int proplen; | ||
100 | void __iomem *ret = NULL; | ||
101 | int err = 0; | ||
102 | |||
103 | p = get_property(n, name, &proplen); | ||
104 | if (proplen != sizeof (struct address_prop)) | ||
105 | return NULL; | ||
106 | |||
107 | prop = p; | ||
108 | |||
109 | err = cell_spuprop_present(spu, n, name); | ||
110 | if (err && (err != -EEXIST)) | ||
111 | goto out; | ||
112 | |||
113 | ret = ioremap(prop->address, prop->len); | ||
114 | |||
115 | out: | ||
116 | return ret; | ||
117 | } | ||
118 | |||
119 | static void spu_unmap(struct spu *spu) | 62 | static void spu_unmap(struct spu *spu) |
120 | { | 63 | { |
121 | if (!firmware_has_feature(FW_FEATURE_LPAR)) | 64 | if (!firmware_has_feature(FW_FEATURE_LPAR)) |
@@ -157,6 +100,23 @@ static int __init spu_map_interrupts_old(struct spu *spu, | |||
157 | return spu->irqs[2] == NO_IRQ ? -EINVAL : 0; | 100 | return spu->irqs[2] == NO_IRQ ? -EINVAL : 0; |
158 | } | 101 | } |
159 | 102 | ||
103 | static void __iomem * __init spu_map_prop_old(struct spu *spu, | ||
104 | struct device_node *n, | ||
105 | const char *name) | ||
106 | { | ||
107 | const struct address_prop { | ||
108 | unsigned long address; | ||
109 | unsigned int len; | ||
110 | } __attribute__((packed)) *prop; | ||
111 | int proplen; | ||
112 | |||
113 | prop = get_property(n, name, &proplen); | ||
114 | if (prop == NULL || proplen != sizeof (struct address_prop)) | ||
115 | return NULL; | ||
116 | |||
117 | return ioremap(prop->address, prop->len); | ||
118 | } | ||
119 | |||
160 | static int __init spu_map_device_old(struct spu *spu) | 120 | static int __init spu_map_device_old(struct spu *spu) |
161 | { | 121 | { |
162 | struct device_node *node = spu->devnode; | 122 | struct device_node *node = spu->devnode; |
@@ -175,7 +135,7 @@ static int __init spu_map_device_old(struct spu *spu) | |||
175 | 135 | ||
176 | /* we use local store as ram, not io memory */ | 136 | /* we use local store as ram, not io memory */ |
177 | spu->local_store = (void __force *) | 137 | spu->local_store = (void __force *) |
178 | map_spe_prop(spu, node, "local-store"); | 138 | spu_map_prop_old(spu, node, "local-store"); |
179 | if (!spu->local_store) | 139 | if (!spu->local_store) |
180 | goto out; | 140 | goto out; |
181 | 141 | ||
@@ -184,16 +144,16 @@ static int __init spu_map_device_old(struct spu *spu) | |||
184 | goto out_unmap; | 144 | goto out_unmap; |
185 | spu->problem_phys = *(unsigned long *)prop; | 145 | spu->problem_phys = *(unsigned long *)prop; |
186 | 146 | ||
187 | spu->problem = map_spe_prop(spu, node, "problem"); | 147 | spu->problem = spu_map_prop_old(spu, node, "problem"); |
188 | if (!spu->problem) | 148 | if (!spu->problem) |
189 | goto out_unmap; | 149 | goto out_unmap; |
190 | 150 | ||
191 | spu->priv2 = map_spe_prop(spu, node, "priv2"); | 151 | spu->priv2 = spu_map_prop_old(spu, node, "priv2"); |
192 | if (!spu->priv2) | 152 | if (!spu->priv2) |
193 | goto out_unmap; | 153 | goto out_unmap; |
194 | 154 | ||
195 | if (!firmware_has_feature(FW_FEATURE_LPAR)) { | 155 | if (!firmware_has_feature(FW_FEATURE_LPAR)) { |
196 | spu->priv1 = map_spe_prop(spu, node, "priv1"); | 156 | spu->priv1 = spu_map_prop_old(spu, node, "priv1"); |
197 | if (!spu->priv1) | 157 | if (!spu->priv1) |
198 | goto out_unmap; | 158 | goto out_unmap; |
199 | } | 159 | } |
@@ -245,34 +205,20 @@ static int spu_map_resource(struct spu *spu, int nr, | |||
245 | void __iomem** virt, unsigned long *phys) | 205 | void __iomem** virt, unsigned long *phys) |
246 | { | 206 | { |
247 | struct device_node *np = spu->devnode; | 207 | struct device_node *np = spu->devnode; |
248 | unsigned long start_pfn, nr_pages; | ||
249 | struct pglist_data *pgdata; | ||
250 | struct zone *zone; | ||
251 | struct resource resource = { }; | 208 | struct resource resource = { }; |
252 | unsigned long len; | 209 | unsigned long len; |
253 | int ret; | 210 | int ret; |
254 | 211 | ||
255 | ret = of_address_to_resource(np, nr, &resource); | 212 | ret = of_address_to_resource(np, nr, &resource); |
256 | if (ret) | 213 | if (ret) |
257 | goto out; | 214 | return ret; |
258 | |||
259 | if (phys) | 215 | if (phys) |
260 | *phys = resource.start; | 216 | *phys = resource.start; |
261 | len = resource.end - resource.start + 1; | 217 | len = resource.end - resource.start + 1; |
262 | *virt = ioremap(resource.start, len); | 218 | *virt = ioremap(resource.start, len); |
263 | if (!*virt) | 219 | if (!*virt) |
264 | ret = -EINVAL; | 220 | return -EINVAL; |
265 | 221 | return 0; | |
266 | start_pfn = resource.start >> PAGE_SHIFT; | ||
267 | nr_pages = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
268 | |||
269 | pgdata = NODE_DATA(spu->node); | ||
270 | zone = pgdata->node_zones; | ||
271 | |||
272 | ret = __add_pages(zone, start_pfn, nr_pages); | ||
273 | |||
274 | out: | ||
275 | return ret; | ||
276 | } | 222 | } |
277 | 223 | ||
278 | static int __init spu_map_device(struct spu *spu) | 224 | static int __init spu_map_device(struct spu *spu) |
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 0870009f56db..28c718ca3b51 100644 --- a/arch/powerpc/platforms/cell/spufs/context.c +++ b/arch/powerpc/platforms/cell/spufs/context.c | |||
@@ -111,13 +111,17 @@ void spu_unmap_mappings(struct spu_context *ctx) | |||
111 | if (ctx->local_store) | 111 | if (ctx->local_store) |
112 | unmap_mapping_range(ctx->local_store, 0, LS_SIZE, 1); | 112 | unmap_mapping_range(ctx->local_store, 0, LS_SIZE, 1); |
113 | if (ctx->mfc) | 113 | if (ctx->mfc) |
114 | unmap_mapping_range(ctx->mfc, 0, 0x4000, 1); | 114 | unmap_mapping_range(ctx->mfc, 0, 0x1000, 1); |
115 | if (ctx->cntl) | 115 | if (ctx->cntl) |
116 | unmap_mapping_range(ctx->cntl, 0, 0x4000, 1); | 116 | unmap_mapping_range(ctx->cntl, 0, 0x1000, 1); |
117 | if (ctx->signal1) | 117 | if (ctx->signal1) |
118 | unmap_mapping_range(ctx->signal1, 0, 0x4000, 1); | 118 | unmap_mapping_range(ctx->signal1, 0, PAGE_SIZE, 1); |
119 | if (ctx->signal2) | 119 | if (ctx->signal2) |
120 | unmap_mapping_range(ctx->signal2, 0, 0x4000, 1); | 120 | unmap_mapping_range(ctx->signal2, 0, PAGE_SIZE, 1); |
121 | if (ctx->mss) | ||
122 | unmap_mapping_range(ctx->mss, 0, 0x1000, 1); | ||
123 | if (ctx->psmap) | ||
124 | unmap_mapping_range(ctx->psmap, 0, 0x20000, 1); | ||
121 | } | 125 | } |
122 | 126 | ||
123 | int spu_acquire_exclusive(struct spu_context *ctx) | 127 | int spu_acquire_exclusive(struct spu_context *ctx) |
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 347eff56fcbd..a528020baa18 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -45,8 +45,8 @@ spufs_mem_open(struct inode *inode, struct file *file) | |||
45 | struct spufs_inode_info *i = SPUFS_I(inode); | 45 | struct spufs_inode_info *i = SPUFS_I(inode); |
46 | struct spu_context *ctx = i->i_ctx; | 46 | struct spu_context *ctx = i->i_ctx; |
47 | file->private_data = ctx; | 47 | file->private_data = ctx; |
48 | file->f_mapping = inode->i_mapping; | ||
49 | ctx->local_store = inode->i_mapping; | 48 | ctx->local_store = inode->i_mapping; |
49 | smp_wmb(); | ||
50 | return 0; | 50 | return 0; |
51 | } | 51 | } |
52 | 52 | ||
@@ -95,14 +95,12 @@ spufs_mem_write(struct file *file, const char __user *buffer, | |||
95 | return ret; | 95 | return ret; |
96 | } | 96 | } |
97 | 97 | ||
98 | static struct page * | 98 | static unsigned long spufs_mem_mmap_nopfn(struct vm_area_struct *vma, |
99 | spufs_mem_mmap_nopage(struct vm_area_struct *vma, | 99 | unsigned long address) |
100 | unsigned long address, int *type) | ||
101 | { | 100 | { |
102 | struct page *page = NOPAGE_SIGBUS; | ||
103 | |||
104 | struct spu_context *ctx = vma->vm_file->private_data; | 101 | struct spu_context *ctx = vma->vm_file->private_data; |
105 | unsigned long offset = address - vma->vm_start; | 102 | unsigned long pfn, offset = address - vma->vm_start; |
103 | |||
106 | offset += vma->vm_pgoff << PAGE_SHIFT; | 104 | offset += vma->vm_pgoff << PAGE_SHIFT; |
107 | 105 | ||
108 | spu_acquire(ctx); | 106 | spu_acquire(ctx); |
@@ -110,24 +108,22 @@ spufs_mem_mmap_nopage(struct vm_area_struct *vma, | |||
110 | if (ctx->state == SPU_STATE_SAVED) { | 108 | if (ctx->state == SPU_STATE_SAVED) { |
111 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 109 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
112 | & ~_PAGE_NO_CACHE); | 110 | & ~_PAGE_NO_CACHE); |
113 | page = vmalloc_to_page(ctx->csa.lscsa->ls + offset); | 111 | pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset); |
114 | } else { | 112 | } else { |
115 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 113 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
116 | | _PAGE_NO_CACHE); | 114 | | _PAGE_NO_CACHE); |
117 | page = pfn_to_page((ctx->spu->local_store_phys + offset) | 115 | pfn = (ctx->spu->local_store_phys + offset) >> PAGE_SHIFT; |
118 | >> PAGE_SHIFT); | ||
119 | } | 116 | } |
120 | spu_release(ctx); | 117 | vm_insert_pfn(vma, address, pfn); |
121 | 118 | ||
122 | if (type) | 119 | spu_release(ctx); |
123 | *type = VM_FAULT_MINOR; | ||
124 | 120 | ||
125 | page_cache_get(page); | 121 | return NOPFN_REFAULT; |
126 | return page; | ||
127 | } | 122 | } |
128 | 123 | ||
124 | |||
129 | static struct vm_operations_struct spufs_mem_mmap_vmops = { | 125 | static struct vm_operations_struct spufs_mem_mmap_vmops = { |
130 | .nopage = spufs_mem_mmap_nopage, | 126 | .nopfn = spufs_mem_mmap_nopfn, |
131 | }; | 127 | }; |
132 | 128 | ||
133 | static int | 129 | static int |
@@ -136,7 +132,7 @@ spufs_mem_mmap(struct file *file, struct vm_area_struct *vma) | |||
136 | if (!(vma->vm_flags & VM_SHARED)) | 132 | if (!(vma->vm_flags & VM_SHARED)) |
137 | return -EINVAL; | 133 | return -EINVAL; |
138 | 134 | ||
139 | vma->vm_flags |= VM_IO; | 135 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
140 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 136 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
141 | | _PAGE_NO_CACHE); | 137 | | _PAGE_NO_CACHE); |
142 | 138 | ||
@@ -144,7 +140,7 @@ spufs_mem_mmap(struct file *file, struct vm_area_struct *vma) | |||
144 | return 0; | 140 | return 0; |
145 | } | 141 | } |
146 | 142 | ||
147 | static struct file_operations spufs_mem_fops = { | 143 | static const struct file_operations spufs_mem_fops = { |
148 | .open = spufs_mem_open, | 144 | .open = spufs_mem_open, |
149 | .read = spufs_mem_read, | 145 | .read = spufs_mem_read, |
150 | .write = spufs_mem_write, | 146 | .write = spufs_mem_write, |
@@ -152,49 +148,42 @@ static struct file_operations spufs_mem_fops = { | |||
152 | .mmap = spufs_mem_mmap, | 148 | .mmap = spufs_mem_mmap, |
153 | }; | 149 | }; |
154 | 150 | ||
155 | static struct page *spufs_ps_nopage(struct vm_area_struct *vma, | 151 | static unsigned long spufs_ps_nopfn(struct vm_area_struct *vma, |
156 | unsigned long address, | 152 | unsigned long address, |
157 | int *type, unsigned long ps_offs, | 153 | unsigned long ps_offs, |
158 | unsigned long ps_size) | 154 | unsigned long ps_size) |
159 | { | 155 | { |
160 | struct page *page = NOPAGE_SIGBUS; | ||
161 | int fault_type = VM_FAULT_SIGBUS; | ||
162 | struct spu_context *ctx = vma->vm_file->private_data; | 156 | struct spu_context *ctx = vma->vm_file->private_data; |
163 | unsigned long offset = address - vma->vm_start; | 157 | unsigned long area, offset = address - vma->vm_start; |
164 | unsigned long area; | ||
165 | int ret; | 158 | int ret; |
166 | 159 | ||
167 | offset += vma->vm_pgoff << PAGE_SHIFT; | 160 | offset += vma->vm_pgoff << PAGE_SHIFT; |
168 | if (offset >= ps_size) | 161 | if (offset >= ps_size) |
169 | goto out; | 162 | return NOPFN_SIGBUS; |
170 | 163 | ||
164 | /* error here usually means a signal.. we might want to test | ||
165 | * the error code more precisely though | ||
166 | */ | ||
171 | ret = spu_acquire_runnable(ctx); | 167 | ret = spu_acquire_runnable(ctx); |
172 | if (ret) | 168 | if (ret) |
173 | goto out; | 169 | return NOPFN_REFAULT; |
174 | 170 | ||
175 | area = ctx->spu->problem_phys + ps_offs; | 171 | area = ctx->spu->problem_phys + ps_offs; |
176 | page = pfn_to_page((area + offset) >> PAGE_SHIFT); | 172 | vm_insert_pfn(vma, address, (area + offset) >> PAGE_SHIFT); |
177 | fault_type = VM_FAULT_MINOR; | ||
178 | page_cache_get(page); | ||
179 | |||
180 | spu_release(ctx); | 173 | spu_release(ctx); |
181 | 174 | ||
182 | out: | 175 | return NOPFN_REFAULT; |
183 | if (type) | ||
184 | *type = fault_type; | ||
185 | |||
186 | return page; | ||
187 | } | 176 | } |
188 | 177 | ||
189 | #if SPUFS_MMAP_4K | 178 | #if SPUFS_MMAP_4K |
190 | static struct page *spufs_cntl_mmap_nopage(struct vm_area_struct *vma, | 179 | static unsigned long spufs_cntl_mmap_nopfn(struct vm_area_struct *vma, |
191 | unsigned long address, int *type) | 180 | unsigned long address) |
192 | { | 181 | { |
193 | return spufs_ps_nopage(vma, address, type, 0x4000, 0x1000); | 182 | return spufs_ps_nopfn(vma, address, 0x4000, 0x1000); |
194 | } | 183 | } |
195 | 184 | ||
196 | static struct vm_operations_struct spufs_cntl_mmap_vmops = { | 185 | static struct vm_operations_struct spufs_cntl_mmap_vmops = { |
197 | .nopage = spufs_cntl_mmap_nopage, | 186 | .nopfn = spufs_cntl_mmap_nopfn, |
198 | }; | 187 | }; |
199 | 188 | ||
200 | /* | 189 | /* |
@@ -205,7 +194,7 @@ static int spufs_cntl_mmap(struct file *file, struct vm_area_struct *vma) | |||
205 | if (!(vma->vm_flags & VM_SHARED)) | 194 | if (!(vma->vm_flags & VM_SHARED)) |
206 | return -EINVAL; | 195 | return -EINVAL; |
207 | 196 | ||
208 | vma->vm_flags |= VM_IO; | 197 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
209 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 198 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
210 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 199 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
211 | 200 | ||
@@ -243,13 +232,13 @@ static int spufs_cntl_open(struct inode *inode, struct file *file) | |||
243 | struct spu_context *ctx = i->i_ctx; | 232 | struct spu_context *ctx = i->i_ctx; |
244 | 233 | ||
245 | file->private_data = ctx; | 234 | file->private_data = ctx; |
246 | file->f_mapping = inode->i_mapping; | ||
247 | ctx->cntl = inode->i_mapping; | 235 | ctx->cntl = inode->i_mapping; |
236 | smp_wmb(); | ||
248 | return simple_attr_open(inode, file, spufs_cntl_get, | 237 | return simple_attr_open(inode, file, spufs_cntl_get, |
249 | spufs_cntl_set, "0x%08lx"); | 238 | spufs_cntl_set, "0x%08lx"); |
250 | } | 239 | } |
251 | 240 | ||
252 | static struct file_operations spufs_cntl_fops = { | 241 | static const struct file_operations spufs_cntl_fops = { |
253 | .open = spufs_cntl_open, | 242 | .open = spufs_cntl_open, |
254 | .release = simple_attr_close, | 243 | .release = simple_attr_close, |
255 | .read = simple_attr_read, | 244 | .read = simple_attr_read, |
@@ -309,7 +298,7 @@ spufs_regs_write(struct file *file, const char __user *buffer, | |||
309 | return ret; | 298 | return ret; |
310 | } | 299 | } |
311 | 300 | ||
312 | static struct file_operations spufs_regs_fops = { | 301 | static const struct file_operations spufs_regs_fops = { |
313 | .open = spufs_regs_open, | 302 | .open = spufs_regs_open, |
314 | .read = spufs_regs_read, | 303 | .read = spufs_regs_read, |
315 | .write = spufs_regs_write, | 304 | .write = spufs_regs_write, |
@@ -360,7 +349,7 @@ spufs_fpcr_write(struct file *file, const char __user * buffer, | |||
360 | return ret; | 349 | return ret; |
361 | } | 350 | } |
362 | 351 | ||
363 | static struct file_operations spufs_fpcr_fops = { | 352 | static const struct file_operations spufs_fpcr_fops = { |
364 | .open = spufs_regs_open, | 353 | .open = spufs_regs_open, |
365 | .read = spufs_fpcr_read, | 354 | .read = spufs_fpcr_read, |
366 | .write = spufs_fpcr_write, | 355 | .write = spufs_fpcr_write, |
@@ -426,7 +415,7 @@ static ssize_t spufs_mbox_read(struct file *file, char __user *buf, | |||
426 | return count; | 415 | return count; |
427 | } | 416 | } |
428 | 417 | ||
429 | static struct file_operations spufs_mbox_fops = { | 418 | static const struct file_operations spufs_mbox_fops = { |
430 | .open = spufs_pipe_open, | 419 | .open = spufs_pipe_open, |
431 | .read = spufs_mbox_read, | 420 | .read = spufs_mbox_read, |
432 | }; | 421 | }; |
@@ -452,7 +441,7 @@ static ssize_t spufs_mbox_stat_read(struct file *file, char __user *buf, | |||
452 | return 4; | 441 | return 4; |
453 | } | 442 | } |
454 | 443 | ||
455 | static struct file_operations spufs_mbox_stat_fops = { | 444 | static const struct file_operations spufs_mbox_stat_fops = { |
456 | .open = spufs_pipe_open, | 445 | .open = spufs_pipe_open, |
457 | .read = spufs_mbox_stat_read, | 446 | .read = spufs_mbox_stat_read, |
458 | }; | 447 | }; |
@@ -559,7 +548,7 @@ static unsigned int spufs_ibox_poll(struct file *file, poll_table *wait) | |||
559 | return mask; | 548 | return mask; |
560 | } | 549 | } |
561 | 550 | ||
562 | static struct file_operations spufs_ibox_fops = { | 551 | static const struct file_operations spufs_ibox_fops = { |
563 | .open = spufs_pipe_open, | 552 | .open = spufs_pipe_open, |
564 | .read = spufs_ibox_read, | 553 | .read = spufs_ibox_read, |
565 | .poll = spufs_ibox_poll, | 554 | .poll = spufs_ibox_poll, |
@@ -585,7 +574,7 @@ static ssize_t spufs_ibox_stat_read(struct file *file, char __user *buf, | |||
585 | return 4; | 574 | return 4; |
586 | } | 575 | } |
587 | 576 | ||
588 | static struct file_operations spufs_ibox_stat_fops = { | 577 | static const struct file_operations spufs_ibox_stat_fops = { |
589 | .open = spufs_pipe_open, | 578 | .open = spufs_pipe_open, |
590 | .read = spufs_ibox_stat_read, | 579 | .read = spufs_ibox_stat_read, |
591 | }; | 580 | }; |
@@ -692,7 +681,7 @@ static unsigned int spufs_wbox_poll(struct file *file, poll_table *wait) | |||
692 | return mask; | 681 | return mask; |
693 | } | 682 | } |
694 | 683 | ||
695 | static struct file_operations spufs_wbox_fops = { | 684 | static const struct file_operations spufs_wbox_fops = { |
696 | .open = spufs_pipe_open, | 685 | .open = spufs_pipe_open, |
697 | .write = spufs_wbox_write, | 686 | .write = spufs_wbox_write, |
698 | .poll = spufs_wbox_poll, | 687 | .poll = spufs_wbox_poll, |
@@ -718,7 +707,7 @@ static ssize_t spufs_wbox_stat_read(struct file *file, char __user *buf, | |||
718 | return 4; | 707 | return 4; |
719 | } | 708 | } |
720 | 709 | ||
721 | static struct file_operations spufs_wbox_stat_fops = { | 710 | static const struct file_operations spufs_wbox_stat_fops = { |
722 | .open = spufs_pipe_open, | 711 | .open = spufs_pipe_open, |
723 | .read = spufs_wbox_stat_read, | 712 | .read = spufs_wbox_stat_read, |
724 | }; | 713 | }; |
@@ -728,8 +717,8 @@ static int spufs_signal1_open(struct inode *inode, struct file *file) | |||
728 | struct spufs_inode_info *i = SPUFS_I(inode); | 717 | struct spufs_inode_info *i = SPUFS_I(inode); |
729 | struct spu_context *ctx = i->i_ctx; | 718 | struct spu_context *ctx = i->i_ctx; |
730 | file->private_data = ctx; | 719 | file->private_data = ctx; |
731 | file->f_mapping = inode->i_mapping; | ||
732 | ctx->signal1 = inode->i_mapping; | 720 | ctx->signal1 = inode->i_mapping; |
721 | smp_wmb(); | ||
733 | return nonseekable_open(inode, file); | 722 | return nonseekable_open(inode, file); |
734 | } | 723 | } |
735 | 724 | ||
@@ -791,23 +780,23 @@ static ssize_t spufs_signal1_write(struct file *file, const char __user *buf, | |||
791 | return 4; | 780 | return 4; |
792 | } | 781 | } |
793 | 782 | ||
794 | static struct page *spufs_signal1_mmap_nopage(struct vm_area_struct *vma, | 783 | static unsigned long spufs_signal1_mmap_nopfn(struct vm_area_struct *vma, |
795 | unsigned long address, int *type) | 784 | unsigned long address) |
796 | { | 785 | { |
797 | #if PAGE_SIZE == 0x1000 | 786 | #if PAGE_SIZE == 0x1000 |
798 | return spufs_ps_nopage(vma, address, type, 0x14000, 0x1000); | 787 | return spufs_ps_nopfn(vma, address, 0x14000, 0x1000); |
799 | #elif PAGE_SIZE == 0x10000 | 788 | #elif PAGE_SIZE == 0x10000 |
800 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole | 789 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole |
801 | * signal 1 and 2 area | 790 | * signal 1 and 2 area |
802 | */ | 791 | */ |
803 | return spufs_ps_nopage(vma, address, type, 0x10000, 0x10000); | 792 | return spufs_ps_nopfn(vma, address, 0x10000, 0x10000); |
804 | #else | 793 | #else |
805 | #error unsupported page size | 794 | #error unsupported page size |
806 | #endif | 795 | #endif |
807 | } | 796 | } |
808 | 797 | ||
809 | static struct vm_operations_struct spufs_signal1_mmap_vmops = { | 798 | static struct vm_operations_struct spufs_signal1_mmap_vmops = { |
810 | .nopage = spufs_signal1_mmap_nopage, | 799 | .nopfn = spufs_signal1_mmap_nopfn, |
811 | }; | 800 | }; |
812 | 801 | ||
813 | static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) | 802 | static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) |
@@ -815,7 +804,7 @@ static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) | |||
815 | if (!(vma->vm_flags & VM_SHARED)) | 804 | if (!(vma->vm_flags & VM_SHARED)) |
816 | return -EINVAL; | 805 | return -EINVAL; |
817 | 806 | ||
818 | vma->vm_flags |= VM_IO; | 807 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
819 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 808 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
820 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 809 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
821 | 810 | ||
@@ -823,7 +812,7 @@ static int spufs_signal1_mmap(struct file *file, struct vm_area_struct *vma) | |||
823 | return 0; | 812 | return 0; |
824 | } | 813 | } |
825 | 814 | ||
826 | static struct file_operations spufs_signal1_fops = { | 815 | static const struct file_operations spufs_signal1_fops = { |
827 | .open = spufs_signal1_open, | 816 | .open = spufs_signal1_open, |
828 | .read = spufs_signal1_read, | 817 | .read = spufs_signal1_read, |
829 | .write = spufs_signal1_write, | 818 | .write = spufs_signal1_write, |
@@ -835,8 +824,8 @@ static int spufs_signal2_open(struct inode *inode, struct file *file) | |||
835 | struct spufs_inode_info *i = SPUFS_I(inode); | 824 | struct spufs_inode_info *i = SPUFS_I(inode); |
836 | struct spu_context *ctx = i->i_ctx; | 825 | struct spu_context *ctx = i->i_ctx; |
837 | file->private_data = ctx; | 826 | file->private_data = ctx; |
838 | file->f_mapping = inode->i_mapping; | ||
839 | ctx->signal2 = inode->i_mapping; | 827 | ctx->signal2 = inode->i_mapping; |
828 | smp_wmb(); | ||
840 | return nonseekable_open(inode, file); | 829 | return nonseekable_open(inode, file); |
841 | } | 830 | } |
842 | 831 | ||
@@ -899,23 +888,23 @@ static ssize_t spufs_signal2_write(struct file *file, const char __user *buf, | |||
899 | } | 888 | } |
900 | 889 | ||
901 | #if SPUFS_MMAP_4K | 890 | #if SPUFS_MMAP_4K |
902 | static struct page *spufs_signal2_mmap_nopage(struct vm_area_struct *vma, | 891 | static unsigned long spufs_signal2_mmap_nopfn(struct vm_area_struct *vma, |
903 | unsigned long address, int *type) | 892 | unsigned long address) |
904 | { | 893 | { |
905 | #if PAGE_SIZE == 0x1000 | 894 | #if PAGE_SIZE == 0x1000 |
906 | return spufs_ps_nopage(vma, address, type, 0x1c000, 0x1000); | 895 | return spufs_ps_nopfn(vma, address, 0x1c000, 0x1000); |
907 | #elif PAGE_SIZE == 0x10000 | 896 | #elif PAGE_SIZE == 0x10000 |
908 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole | 897 | /* For 64k pages, both signal1 and signal2 can be used to mmap the whole |
909 | * signal 1 and 2 area | 898 | * signal 1 and 2 area |
910 | */ | 899 | */ |
911 | return spufs_ps_nopage(vma, address, type, 0x10000, 0x10000); | 900 | return spufs_ps_nopfn(vma, address, 0x10000, 0x10000); |
912 | #else | 901 | #else |
913 | #error unsupported page size | 902 | #error unsupported page size |
914 | #endif | 903 | #endif |
915 | } | 904 | } |
916 | 905 | ||
917 | static struct vm_operations_struct spufs_signal2_mmap_vmops = { | 906 | static struct vm_operations_struct spufs_signal2_mmap_vmops = { |
918 | .nopage = spufs_signal2_mmap_nopage, | 907 | .nopfn = spufs_signal2_mmap_nopfn, |
919 | }; | 908 | }; |
920 | 909 | ||
921 | static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) | 910 | static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) |
@@ -923,7 +912,7 @@ static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) | |||
923 | if (!(vma->vm_flags & VM_SHARED)) | 912 | if (!(vma->vm_flags & VM_SHARED)) |
924 | return -EINVAL; | 913 | return -EINVAL; |
925 | 914 | ||
926 | vma->vm_flags |= VM_IO; | 915 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
927 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 916 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
928 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 917 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
929 | 918 | ||
@@ -934,7 +923,7 @@ static int spufs_signal2_mmap(struct file *file, struct vm_area_struct *vma) | |||
934 | #define spufs_signal2_mmap NULL | 923 | #define spufs_signal2_mmap NULL |
935 | #endif /* !SPUFS_MMAP_4K */ | 924 | #endif /* !SPUFS_MMAP_4K */ |
936 | 925 | ||
937 | static struct file_operations spufs_signal2_fops = { | 926 | static const struct file_operations spufs_signal2_fops = { |
938 | .open = spufs_signal2_open, | 927 | .open = spufs_signal2_open, |
939 | .read = spufs_signal2_read, | 928 | .read = spufs_signal2_read, |
940 | .write = spufs_signal2_write, | 929 | .write = spufs_signal2_write, |
@@ -1000,14 +989,14 @@ DEFINE_SIMPLE_ATTRIBUTE(spufs_signal2_type, spufs_signal2_type_get, | |||
1000 | spufs_signal2_type_set, "%llu"); | 989 | spufs_signal2_type_set, "%llu"); |
1001 | 990 | ||
1002 | #if SPUFS_MMAP_4K | 991 | #if SPUFS_MMAP_4K |
1003 | static struct page *spufs_mss_mmap_nopage(struct vm_area_struct *vma, | 992 | static unsigned long spufs_mss_mmap_nopfn(struct vm_area_struct *vma, |
1004 | unsigned long address, int *type) | 993 | unsigned long address) |
1005 | { | 994 | { |
1006 | return spufs_ps_nopage(vma, address, type, 0x0000, 0x1000); | 995 | return spufs_ps_nopfn(vma, address, 0x0000, 0x1000); |
1007 | } | 996 | } |
1008 | 997 | ||
1009 | static struct vm_operations_struct spufs_mss_mmap_vmops = { | 998 | static struct vm_operations_struct spufs_mss_mmap_vmops = { |
1010 | .nopage = spufs_mss_mmap_nopage, | 999 | .nopfn = spufs_mss_mmap_nopfn, |
1011 | }; | 1000 | }; |
1012 | 1001 | ||
1013 | /* | 1002 | /* |
@@ -1018,7 +1007,7 @@ static int spufs_mss_mmap(struct file *file, struct vm_area_struct *vma) | |||
1018 | if (!(vma->vm_flags & VM_SHARED)) | 1007 | if (!(vma->vm_flags & VM_SHARED)) |
1019 | return -EINVAL; | 1008 | return -EINVAL; |
1020 | 1009 | ||
1021 | vma->vm_flags |= VM_IO; | 1010 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1022 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1011 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1023 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1012 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1024 | 1013 | ||
@@ -1032,24 +1021,27 @@ static int spufs_mss_mmap(struct file *file, struct vm_area_struct *vma) | |||
1032 | static int spufs_mss_open(struct inode *inode, struct file *file) | 1021 | static int spufs_mss_open(struct inode *inode, struct file *file) |
1033 | { | 1022 | { |
1034 | struct spufs_inode_info *i = SPUFS_I(inode); | 1023 | struct spufs_inode_info *i = SPUFS_I(inode); |
1024 | struct spu_context *ctx = i->i_ctx; | ||
1035 | 1025 | ||
1036 | file->private_data = i->i_ctx; | 1026 | file->private_data = i->i_ctx; |
1027 | ctx->mss = inode->i_mapping; | ||
1028 | smp_wmb(); | ||
1037 | return nonseekable_open(inode, file); | 1029 | return nonseekable_open(inode, file); |
1038 | } | 1030 | } |
1039 | 1031 | ||
1040 | static struct file_operations spufs_mss_fops = { | 1032 | static const struct file_operations spufs_mss_fops = { |
1041 | .open = spufs_mss_open, | 1033 | .open = spufs_mss_open, |
1042 | .mmap = spufs_mss_mmap, | 1034 | .mmap = spufs_mss_mmap, |
1043 | }; | 1035 | }; |
1044 | 1036 | ||
1045 | static struct page *spufs_psmap_mmap_nopage(struct vm_area_struct *vma, | 1037 | static unsigned long spufs_psmap_mmap_nopfn(struct vm_area_struct *vma, |
1046 | unsigned long address, int *type) | 1038 | unsigned long address) |
1047 | { | 1039 | { |
1048 | return spufs_ps_nopage(vma, address, type, 0x0000, 0x20000); | 1040 | return spufs_ps_nopfn(vma, address, 0x0000, 0x20000); |
1049 | } | 1041 | } |
1050 | 1042 | ||
1051 | static struct vm_operations_struct spufs_psmap_mmap_vmops = { | 1043 | static struct vm_operations_struct spufs_psmap_mmap_vmops = { |
1052 | .nopage = spufs_psmap_mmap_nopage, | 1044 | .nopfn = spufs_psmap_mmap_nopfn, |
1053 | }; | 1045 | }; |
1054 | 1046 | ||
1055 | /* | 1047 | /* |
@@ -1060,7 +1052,7 @@ static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma) | |||
1060 | if (!(vma->vm_flags & VM_SHARED)) | 1052 | if (!(vma->vm_flags & VM_SHARED)) |
1061 | return -EINVAL; | 1053 | return -EINVAL; |
1062 | 1054 | ||
1063 | vma->vm_flags |= VM_IO; | 1055 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1064 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1056 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1065 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1057 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1066 | 1058 | ||
@@ -1071,26 +1063,29 @@ static int spufs_psmap_mmap(struct file *file, struct vm_area_struct *vma) | |||
1071 | static int spufs_psmap_open(struct inode *inode, struct file *file) | 1063 | static int spufs_psmap_open(struct inode *inode, struct file *file) |
1072 | { | 1064 | { |
1073 | struct spufs_inode_info *i = SPUFS_I(inode); | 1065 | struct spufs_inode_info *i = SPUFS_I(inode); |
1066 | struct spu_context *ctx = i->i_ctx; | ||
1074 | 1067 | ||
1075 | file->private_data = i->i_ctx; | 1068 | file->private_data = i->i_ctx; |
1069 | ctx->psmap = inode->i_mapping; | ||
1070 | smp_wmb(); | ||
1076 | return nonseekable_open(inode, file); | 1071 | return nonseekable_open(inode, file); |
1077 | } | 1072 | } |
1078 | 1073 | ||
1079 | static struct file_operations spufs_psmap_fops = { | 1074 | static const struct file_operations spufs_psmap_fops = { |
1080 | .open = spufs_psmap_open, | 1075 | .open = spufs_psmap_open, |
1081 | .mmap = spufs_psmap_mmap, | 1076 | .mmap = spufs_psmap_mmap, |
1082 | }; | 1077 | }; |
1083 | 1078 | ||
1084 | 1079 | ||
1085 | #if SPUFS_MMAP_4K | 1080 | #if SPUFS_MMAP_4K |
1086 | static struct page *spufs_mfc_mmap_nopage(struct vm_area_struct *vma, | 1081 | static unsigned long spufs_mfc_mmap_nopfn(struct vm_area_struct *vma, |
1087 | unsigned long address, int *type) | 1082 | unsigned long address) |
1088 | { | 1083 | { |
1089 | return spufs_ps_nopage(vma, address, type, 0x3000, 0x1000); | 1084 | return spufs_ps_nopfn(vma, address, 0x3000, 0x1000); |
1090 | } | 1085 | } |
1091 | 1086 | ||
1092 | static struct vm_operations_struct spufs_mfc_mmap_vmops = { | 1087 | static struct vm_operations_struct spufs_mfc_mmap_vmops = { |
1093 | .nopage = spufs_mfc_mmap_nopage, | 1088 | .nopfn = spufs_mfc_mmap_nopfn, |
1094 | }; | 1089 | }; |
1095 | 1090 | ||
1096 | /* | 1091 | /* |
@@ -1101,7 +1096,7 @@ static int spufs_mfc_mmap(struct file *file, struct vm_area_struct *vma) | |||
1101 | if (!(vma->vm_flags & VM_SHARED)) | 1096 | if (!(vma->vm_flags & VM_SHARED)) |
1102 | return -EINVAL; | 1097 | return -EINVAL; |
1103 | 1098 | ||
1104 | vma->vm_flags |= VM_IO; | 1099 | vma->vm_flags |= VM_IO | VM_PFNMAP; |
1105 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | 1100 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
1106 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | 1101 | | _PAGE_NO_CACHE | _PAGE_GUARDED); |
1107 | 1102 | ||
@@ -1125,6 +1120,8 @@ static int spufs_mfc_open(struct inode *inode, struct file *file) | |||
1125 | return -EBUSY; | 1120 | return -EBUSY; |
1126 | 1121 | ||
1127 | file->private_data = ctx; | 1122 | file->private_data = ctx; |
1123 | ctx->mfc = inode->i_mapping; | ||
1124 | smp_wmb(); | ||
1128 | return nonseekable_open(inode, file); | 1125 | return nonseekable_open(inode, file); |
1129 | } | 1126 | } |
1130 | 1127 | ||
@@ -1393,7 +1390,7 @@ static int spufs_mfc_fasync(int fd, struct file *file, int on) | |||
1393 | return fasync_helper(fd, file, on, &ctx->mfc_fasync); | 1390 | return fasync_helper(fd, file, on, &ctx->mfc_fasync); |
1394 | } | 1391 | } |
1395 | 1392 | ||
1396 | static struct file_operations spufs_mfc_fops = { | 1393 | static const struct file_operations spufs_mfc_fops = { |
1397 | .open = spufs_mfc_open, | 1394 | .open = spufs_mfc_open, |
1398 | .read = spufs_mfc_read, | 1395 | .read = spufs_mfc_read, |
1399 | .write = spufs_mfc_write, | 1396 | .write = spufs_mfc_write, |
@@ -1650,7 +1647,7 @@ static ssize_t spufs_mbox_info_read(struct file *file, char __user *buf, | |||
1650 | return ret; | 1647 | return ret; |
1651 | } | 1648 | } |
1652 | 1649 | ||
1653 | static struct file_operations spufs_mbox_info_fops = { | 1650 | static const struct file_operations spufs_mbox_info_fops = { |
1654 | .open = spufs_info_open, | 1651 | .open = spufs_info_open, |
1655 | .read = spufs_mbox_info_read, | 1652 | .read = spufs_mbox_info_read, |
1656 | .llseek = generic_file_llseek, | 1653 | .llseek = generic_file_llseek, |
@@ -1688,7 +1685,7 @@ static ssize_t spufs_ibox_info_read(struct file *file, char __user *buf, | |||
1688 | return ret; | 1685 | return ret; |
1689 | } | 1686 | } |
1690 | 1687 | ||
1691 | static struct file_operations spufs_ibox_info_fops = { | 1688 | static const struct file_operations spufs_ibox_info_fops = { |
1692 | .open = spufs_info_open, | 1689 | .open = spufs_info_open, |
1693 | .read = spufs_ibox_info_read, | 1690 | .read = spufs_ibox_info_read, |
1694 | .llseek = generic_file_llseek, | 1691 | .llseek = generic_file_llseek, |
@@ -1729,7 +1726,7 @@ static ssize_t spufs_wbox_info_read(struct file *file, char __user *buf, | |||
1729 | return ret; | 1726 | return ret; |
1730 | } | 1727 | } |
1731 | 1728 | ||
1732 | static struct file_operations spufs_wbox_info_fops = { | 1729 | static const struct file_operations spufs_wbox_info_fops = { |
1733 | .open = spufs_info_open, | 1730 | .open = spufs_info_open, |
1734 | .read = spufs_wbox_info_read, | 1731 | .read = spufs_wbox_info_read, |
1735 | .llseek = generic_file_llseek, | 1732 | .llseek = generic_file_llseek, |
@@ -1779,7 +1776,7 @@ static ssize_t spufs_dma_info_read(struct file *file, char __user *buf, | |||
1779 | return ret; | 1776 | return ret; |
1780 | } | 1777 | } |
1781 | 1778 | ||
1782 | static struct file_operations spufs_dma_info_fops = { | 1779 | static const struct file_operations spufs_dma_info_fops = { |
1783 | .open = spufs_info_open, | 1780 | .open = spufs_info_open, |
1784 | .read = spufs_dma_info_read, | 1781 | .read = spufs_dma_info_read, |
1785 | }; | 1782 | }; |
@@ -1830,7 +1827,7 @@ static ssize_t spufs_proxydma_info_read(struct file *file, char __user *buf, | |||
1830 | return ret; | 1827 | return ret; |
1831 | } | 1828 | } |
1832 | 1829 | ||
1833 | static struct file_operations spufs_proxydma_info_fops = { | 1830 | static const struct file_operations spufs_proxydma_info_fops = { |
1834 | .open = spufs_info_open, | 1831 | .open = spufs_info_open, |
1835 | .read = spufs_proxydma_info_read, | 1832 | .read = spufs_proxydma_info_read, |
1836 | }; | 1833 | }; |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 738b9244382f..8079983ef94f 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -220,11 +220,11 @@ static int spufs_dir_close(struct inode *inode, struct file *file) | |||
220 | return dcache_dir_close(inode, file); | 220 | return dcache_dir_close(inode, file); |
221 | } | 221 | } |
222 | 222 | ||
223 | struct inode_operations spufs_dir_inode_operations = { | 223 | const struct inode_operations spufs_dir_inode_operations = { |
224 | .lookup = simple_lookup, | 224 | .lookup = simple_lookup, |
225 | }; | 225 | }; |
226 | 226 | ||
227 | struct file_operations spufs_context_fops = { | 227 | const struct file_operations spufs_context_fops = { |
228 | .open = dcache_dir_open, | 228 | .open = dcache_dir_open, |
229 | .release = spufs_dir_close, | 229 | .release = spufs_dir_close, |
230 | .llseek = dcache_dir_lseek, | 230 | .llseek = dcache_dir_lseek, |
@@ -372,7 +372,7 @@ static int spufs_gang_close(struct inode *inode, struct file *file) | |||
372 | return dcache_dir_close(inode, file); | 372 | return dcache_dir_close(inode, file); |
373 | } | 373 | } |
374 | 374 | ||
375 | struct file_operations spufs_gang_fops = { | 375 | const struct file_operations spufs_gang_fops = { |
376 | .open = dcache_dir_open, | 376 | .open = dcache_dir_open, |
377 | .release = spufs_gang_close, | 377 | .release = spufs_gang_close, |
378 | .llseek = dcache_dir_lseek, | 378 | .llseek = dcache_dir_lseek, |
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index 70fb13395c04..0941c56df9b5 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h | |||
@@ -51,6 +51,8 @@ struct spu_context { | |||
51 | struct address_space *cntl; /* 'control' area mappings. */ | 51 | struct address_space *cntl; /* 'control' area mappings. */ |
52 | struct address_space *signal1; /* 'signal1' area mappings. */ | 52 | struct address_space *signal1; /* 'signal1' area mappings. */ |
53 | struct address_space *signal2; /* 'signal2' area mappings. */ | 53 | struct address_space *signal2; /* 'signal2' area mappings. */ |
54 | struct address_space *mss; /* 'mss' area mappings. */ | ||
55 | struct address_space *psmap; /* 'psmap' area mappings. */ | ||
54 | u64 object_id; /* user space pointer for oprofile */ | 56 | u64 object_id; /* user space pointer for oprofile */ |
55 | 57 | ||
56 | enum { SPU_STATE_RUNNABLE, SPU_STATE_SAVED } state; | 58 | enum { SPU_STATE_RUNNABLE, SPU_STATE_SAVED } state; |
@@ -149,7 +151,7 @@ long spufs_run_spu(struct file *file, | |||
149 | struct spu_context *ctx, u32 *npc, u32 *status); | 151 | struct spu_context *ctx, u32 *npc, u32 *status); |
150 | long spufs_create(struct nameidata *nd, | 152 | long spufs_create(struct nameidata *nd, |
151 | unsigned int flags, mode_t mode); | 153 | unsigned int flags, mode_t mode); |
152 | extern struct file_operations spufs_context_fops; | 154 | extern const struct file_operations spufs_context_fops; |
153 | 155 | ||
154 | /* gang management */ | 156 | /* gang management */ |
155 | struct spu_gang *alloc_spu_gang(void); | 157 | struct spu_gang *alloc_spu_gang(void); |
diff --git a/arch/powerpc/platforms/celleb/htab.c b/arch/powerpc/platforms/celleb/htab.c index ffa7c2c2030d..279d7339e170 100644 --- a/arch/powerpc/platforms/celleb/htab.c +++ b/arch/powerpc/platforms/celleb/htab.c | |||
@@ -95,7 +95,6 @@ static long beat_lpar_hpte_insert(unsigned long hpte_group, | |||
95 | unsigned long lpar_rc; | 95 | unsigned long lpar_rc; |
96 | unsigned long slot; | 96 | unsigned long slot; |
97 | unsigned long hpte_v, hpte_r; | 97 | unsigned long hpte_v, hpte_r; |
98 | unsigned long flags; | ||
99 | 98 | ||
100 | /* same as iseries */ | 99 | /* same as iseries */ |
101 | if (vflags & HPTE_V_SECONDARY) | 100 | if (vflags & HPTE_V_SECONDARY) |
@@ -115,17 +114,17 @@ static long beat_lpar_hpte_insert(unsigned long hpte_group, | |||
115 | if (rflags & (_PAGE_GUARDED|_PAGE_NO_CACHE)) | 114 | if (rflags & (_PAGE_GUARDED|_PAGE_NO_CACHE)) |
116 | hpte_r &= ~_PAGE_COHERENT; | 115 | hpte_r &= ~_PAGE_COHERENT; |
117 | 116 | ||
118 | spin_lock_irqsave(&beat_htab_lock, flags); | 117 | spin_lock(&beat_htab_lock); |
119 | if ((lpar_rc = beat_read_mask(hpte_group)) == 0) { | 118 | if ((lpar_rc = beat_read_mask(hpte_group)) == 0) { |
120 | if (!(vflags & HPTE_V_BOLTED)) | 119 | if (!(vflags & HPTE_V_BOLTED)) |
121 | DBG_LOW(" full\n"); | 120 | DBG_LOW(" full\n"); |
122 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 121 | spin_unlock(&beat_htab_lock); |
123 | return -1; | 122 | return -1; |
124 | } | 123 | } |
125 | 124 | ||
126 | lpar_rc = beat_insert_htab_entry(0, hpte_group, lpar_rc << 48, | 125 | lpar_rc = beat_insert_htab_entry(0, hpte_group, lpar_rc << 48, |
127 | hpte_v, hpte_r, &slot); | 126 | hpte_v, hpte_r, &slot); |
128 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 127 | spin_unlock(&beat_htab_lock); |
129 | 128 | ||
130 | /* | 129 | /* |
131 | * Since we try and ioremap PHBs we don't own, the pte insert | 130 | * Since we try and ioremap PHBs we don't own, the pte insert |
@@ -189,7 +188,6 @@ static long beat_lpar_hpte_updatepp(unsigned long slot, | |||
189 | { | 188 | { |
190 | unsigned long lpar_rc; | 189 | unsigned long lpar_rc; |
191 | unsigned long dummy0, dummy1, want_v; | 190 | unsigned long dummy0, dummy1, want_v; |
192 | unsigned long flags; | ||
193 | 191 | ||
194 | want_v = hpte_encode_v(va, psize); | 192 | want_v = hpte_encode_v(va, psize); |
195 | 193 | ||
@@ -197,17 +195,17 @@ static long beat_lpar_hpte_updatepp(unsigned long slot, | |||
197 | "avpnv=%016lx, slot=%016lx, psize: %d, newpp %016lx ... ", | 195 | "avpnv=%016lx, slot=%016lx, psize: %d, newpp %016lx ... ", |
198 | want_v & HPTE_V_AVPN, slot, psize, newpp); | 196 | want_v & HPTE_V_AVPN, slot, psize, newpp); |
199 | 197 | ||
200 | spin_lock_irqsave(&beat_htab_lock, flags); | 198 | spin_lock(&beat_htab_lock); |
201 | dummy0 = beat_lpar_hpte_getword0(slot); | 199 | dummy0 = beat_lpar_hpte_getword0(slot); |
202 | if ((dummy0 & ~0x7FUL) != (want_v & ~0x7FUL)) { | 200 | if ((dummy0 & ~0x7FUL) != (want_v & ~0x7FUL)) { |
203 | DBG_LOW("not found !\n"); | 201 | DBG_LOW("not found !\n"); |
204 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 202 | spin_unlock(&beat_htab_lock); |
205 | return -1; | 203 | return -1; |
206 | } | 204 | } |
207 | 205 | ||
208 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, &dummy0, | 206 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, &dummy0, |
209 | &dummy1); | 207 | &dummy1); |
210 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 208 | spin_unlock(&beat_htab_lock); |
211 | if (lpar_rc != 0 || dummy0 == 0) { | 209 | if (lpar_rc != 0 || dummy0 == 0) { |
212 | DBG_LOW("not found !\n"); | 210 | DBG_LOW("not found !\n"); |
213 | return -1; | 211 | return -1; |
@@ -256,18 +254,17 @@ static void beat_lpar_hpte_updateboltedpp(unsigned long newpp, | |||
256 | int psize) | 254 | int psize) |
257 | { | 255 | { |
258 | unsigned long lpar_rc, slot, vsid, va, dummy0, dummy1; | 256 | unsigned long lpar_rc, slot, vsid, va, dummy0, dummy1; |
259 | unsigned long flags; | ||
260 | 257 | ||
261 | vsid = get_kernel_vsid(ea); | 258 | vsid = get_kernel_vsid(ea); |
262 | va = (vsid << 28) | (ea & 0x0fffffff); | 259 | va = (vsid << 28) | (ea & 0x0fffffff); |
263 | 260 | ||
264 | spin_lock_irqsave(&beat_htab_lock, flags); | 261 | spin_lock(&beat_htab_lock); |
265 | slot = beat_lpar_hpte_find(va, psize); | 262 | slot = beat_lpar_hpte_find(va, psize); |
266 | BUG_ON(slot == -1); | 263 | BUG_ON(slot == -1); |
267 | 264 | ||
268 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, | 265 | lpar_rc = beat_write_htab_entry(0, slot, 0, newpp, 0, 7, |
269 | &dummy0, &dummy1); | 266 | &dummy0, &dummy1); |
270 | spin_unlock_irqrestore(&beat_htab_lock, flags); | 267 | spin_unlock(&beat_htab_lock); |
271 | 268 | ||
272 | BUG_ON(lpar_rc != 0); | 269 | BUG_ON(lpar_rc != 0); |
273 | } | 270 | } |
diff --git a/arch/powerpc/platforms/celleb/pci.c b/arch/powerpc/platforms/celleb/pci.c index 867f83a7d0c9..98de836dfed3 100644 --- a/arch/powerpc/platforms/celleb/pci.c +++ b/arch/powerpc/platforms/celleb/pci.c | |||
@@ -65,13 +65,13 @@ static inline u8 celleb_fake_config_readb(void *addr) | |||
65 | 65 | ||
66 | static inline u16 celleb_fake_config_readw(void *addr) | 66 | static inline u16 celleb_fake_config_readw(void *addr) |
67 | { | 67 | { |
68 | u16 *p = addr; | 68 | __le16 *p = addr; |
69 | return le16_to_cpu(*p); | 69 | return le16_to_cpu(*p); |
70 | } | 70 | } |
71 | 71 | ||
72 | static inline u32 celleb_fake_config_readl(void *addr) | 72 | static inline u32 celleb_fake_config_readl(void *addr) |
73 | { | 73 | { |
74 | u32 *p = addr; | 74 | __le32 *p = addr; |
75 | return le32_to_cpu(*p); | 75 | return le32_to_cpu(*p); |
76 | } | 76 | } |
77 | 77 | ||
@@ -83,16 +83,16 @@ static inline void celleb_fake_config_writeb(u32 val, void *addr) | |||
83 | 83 | ||
84 | static inline void celleb_fake_config_writew(u32 val, void *addr) | 84 | static inline void celleb_fake_config_writew(u32 val, void *addr) |
85 | { | 85 | { |
86 | u16 val16; | 86 | __le16 val16; |
87 | u16 *p = addr; | 87 | __le16 *p = addr; |
88 | val16 = cpu_to_le16(val); | 88 | val16 = cpu_to_le16(val); |
89 | *p = val16; | 89 | *p = val16; |
90 | } | 90 | } |
91 | 91 | ||
92 | static inline void celleb_fake_config_writel(u32 val, void *addr) | 92 | static inline void celleb_fake_config_writel(u32 val, void *addr) |
93 | { | 93 | { |
94 | u32 val32; | 94 | __le32 val32; |
95 | u32 *p = addr; | 95 | __le32 *p = addr; |
96 | val32 = cpu_to_le32(val); | 96 | val32 = cpu_to_le32(val); |
97 | *p = val32; | 97 | *p = val32; |
98 | } | 98 | } |
diff --git a/arch/powerpc/platforms/celleb/scc_epci.c b/arch/powerpc/platforms/celleb/scc_epci.c index 0edbc0c4f338..c11b39c3776a 100644 --- a/arch/powerpc/platforms/celleb/scc_epci.c +++ b/arch/powerpc/platforms/celleb/scc_epci.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #if 0 /* test code for epci dummy read */ | 47 | #if 0 /* test code for epci dummy read */ |
48 | static void celleb_epci_dummy_read(struct pci_dev *dev) | 48 | static void celleb_epci_dummy_read(struct pci_dev *dev) |
49 | { | 49 | { |
50 | void *epci_base; | 50 | void __iomem *epci_base; |
51 | struct device_node *node; | 51 | struct device_node *node; |
52 | struct pci_controller *hose; | 52 | struct pci_controller *hose; |
53 | u32 val; | 53 | u32 val; |
@@ -58,7 +58,7 @@ static void celleb_epci_dummy_read(struct pci_dev *dev) | |||
58 | if (!hose) | 58 | if (!hose) |
59 | return; | 59 | return; |
60 | 60 | ||
61 | epci_base = (void *)hose->cfg_addr; | 61 | epci_base = hose->cfg_addr; |
62 | 62 | ||
63 | val = in_be32(epci_base + SCC_EPCI_WATRP); | 63 | val = in_be32(epci_base + SCC_EPCI_WATRP); |
64 | iosync(); | 64 | iosync(); |
@@ -71,18 +71,18 @@ static inline void clear_and_disable_master_abort_interrupt( | |||
71 | struct pci_controller *hose) | 71 | struct pci_controller *hose) |
72 | { | 72 | { |
73 | void __iomem *addr; | 73 | void __iomem *addr; |
74 | addr = (void *)hose->cfg_addr + PCI_COMMAND; | 74 | addr = hose->cfg_addr + PCI_COMMAND; |
75 | out_be32(addr, in_be32(addr) | (PCI_STATUS_REC_MASTER_ABORT << 16)); | 75 | out_be32(addr, in_be32(addr) | (PCI_STATUS_REC_MASTER_ABORT << 16)); |
76 | } | 76 | } |
77 | 77 | ||
78 | static int celleb_epci_check_abort(struct pci_controller *hose, | 78 | static int celleb_epci_check_abort(struct pci_controller *hose, |
79 | unsigned long addr) | 79 | void __iomem *addr) |
80 | { | 80 | { |
81 | void __iomem *reg, *epci_base; | 81 | void __iomem *reg, *epci_base; |
82 | u32 val; | 82 | u32 val; |
83 | 83 | ||
84 | iob(); | 84 | iob(); |
85 | epci_base = (void *)hose->cfg_addr; | 85 | epci_base = hose->cfg_addr; |
86 | 86 | ||
87 | reg = epci_base + PCI_COMMAND; | 87 | reg = epci_base + PCI_COMMAND; |
88 | val = in_be32(reg); | 88 | val = in_be32(reg); |
@@ -108,23 +108,23 @@ static int celleb_epci_check_abort(struct pci_controller *hose, | |||
108 | return PCIBIOS_SUCCESSFUL; | 108 | return PCIBIOS_SUCCESSFUL; |
109 | } | 109 | } |
110 | 110 | ||
111 | static unsigned long celleb_epci_make_config_addr(struct pci_controller *hose, | 111 | static void __iomem *celleb_epci_make_config_addr(struct pci_controller *hose, |
112 | unsigned int devfn, int where) | 112 | unsigned int devfn, int where) |
113 | { | 113 | { |
114 | unsigned long addr; | 114 | void __iomem *addr; |
115 | struct pci_bus *bus = hose->bus; | 115 | struct pci_bus *bus = hose->bus; |
116 | 116 | ||
117 | if (bus->self) | 117 | if (bus->self) |
118 | addr = (unsigned long)hose->cfg_data + | 118 | addr = hose->cfg_data + |
119 | (((bus->number & 0xff) << 16) | 119 | (((bus->number & 0xff) << 16) |
120 | | ((devfn & 0xff) << 8) | 120 | | ((devfn & 0xff) << 8) |
121 | | (where & 0xff) | 121 | | (where & 0xff) |
122 | | 0x01000000); | 122 | | 0x01000000); |
123 | else | 123 | else |
124 | addr = (unsigned long)hose->cfg_data + | 124 | addr = hose->cfg_data + |
125 | (((devfn & 0xff) << 8) | (where & 0xff)); | 125 | (((devfn & 0xff) << 8) | (where & 0xff)); |
126 | 126 | ||
127 | pr_debug("EPCI: config_addr = 0x%016lx\n", addr); | 127 | pr_debug("EPCI: config_addr = 0x%p\n", addr); |
128 | 128 | ||
129 | return addr; | 129 | return addr; |
130 | } | 130 | } |
@@ -132,7 +132,7 @@ static unsigned long celleb_epci_make_config_addr(struct pci_controller *hose, | |||
132 | static int celleb_epci_read_config(struct pci_bus *bus, | 132 | static int celleb_epci_read_config(struct pci_bus *bus, |
133 | unsigned int devfn, int where, int size, u32 * val) | 133 | unsigned int devfn, int where, int size, u32 * val) |
134 | { | 134 | { |
135 | unsigned long addr; | 135 | void __iomem *addr; |
136 | struct device_node *node; | 136 | struct device_node *node; |
137 | struct pci_controller *hose; | 137 | struct pci_controller *hose; |
138 | 138 | ||
@@ -148,17 +148,17 @@ static int celleb_epci_read_config(struct pci_bus *bus, | |||
148 | if (bus->number == hose->first_busno && devfn == 0) { | 148 | if (bus->number == hose->first_busno && devfn == 0) { |
149 | /* EPCI controller self */ | 149 | /* EPCI controller self */ |
150 | 150 | ||
151 | addr = (unsigned long)hose->cfg_addr + where; | 151 | addr = hose->cfg_addr + where; |
152 | 152 | ||
153 | switch (size) { | 153 | switch (size) { |
154 | case 1: | 154 | case 1: |
155 | *val = in_8((u8 *)addr); | 155 | *val = in_8(addr); |
156 | break; | 156 | break; |
157 | case 2: | 157 | case 2: |
158 | *val = in_be16((u16 *)addr); | 158 | *val = in_be16(addr); |
159 | break; | 159 | break; |
160 | case 4: | 160 | case 4: |
161 | *val = in_be32((u32 *)addr); | 161 | *val = in_be32(addr); |
162 | break; | 162 | break; |
163 | default: | 163 | default: |
164 | return PCIBIOS_DEVICE_NOT_FOUND; | 164 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -171,13 +171,13 @@ static int celleb_epci_read_config(struct pci_bus *bus, | |||
171 | 171 | ||
172 | switch (size) { | 172 | switch (size) { |
173 | case 1: | 173 | case 1: |
174 | *val = in_8((u8 *)addr); | 174 | *val = in_8(addr); |
175 | break; | 175 | break; |
176 | case 2: | 176 | case 2: |
177 | *val = in_le16((u16 *)addr); | 177 | *val = in_le16(addr); |
178 | break; | 178 | break; |
179 | case 4: | 179 | case 4: |
180 | *val = in_le32((u32 *)addr); | 180 | *val = in_le32(addr); |
181 | break; | 181 | break; |
182 | default: | 182 | default: |
183 | return PCIBIOS_DEVICE_NOT_FOUND; | 183 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -188,13 +188,13 @@ static int celleb_epci_read_config(struct pci_bus *bus, | |||
188 | "addr=0x%lx, devfn=0x%x, where=0x%x, size=0x%x, val=0x%x\n", | 188 | "addr=0x%lx, devfn=0x%x, where=0x%x, size=0x%x, val=0x%x\n", |
189 | addr, devfn, where, size, *val); | 189 | addr, devfn, where, size, *val); |
190 | 190 | ||
191 | return celleb_epci_check_abort(hose, 0); | 191 | return celleb_epci_check_abort(hose, NULL); |
192 | } | 192 | } |
193 | 193 | ||
194 | static int celleb_epci_write_config(struct pci_bus *bus, | 194 | static int celleb_epci_write_config(struct pci_bus *bus, |
195 | unsigned int devfn, int where, int size, u32 val) | 195 | unsigned int devfn, int where, int size, u32 val) |
196 | { | 196 | { |
197 | unsigned long addr; | 197 | void __iomem *addr; |
198 | struct device_node *node; | 198 | struct device_node *node; |
199 | struct pci_controller *hose; | 199 | struct pci_controller *hose; |
200 | 200 | ||
@@ -210,17 +210,17 @@ static int celleb_epci_write_config(struct pci_bus *bus, | |||
210 | if (bus->number == hose->first_busno && devfn == 0) { | 210 | if (bus->number == hose->first_busno && devfn == 0) { |
211 | /* EPCI controller self */ | 211 | /* EPCI controller self */ |
212 | 212 | ||
213 | addr = (unsigned long)hose->cfg_addr + where; | 213 | addr = hose->cfg_addr + where; |
214 | 214 | ||
215 | switch (size) { | 215 | switch (size) { |
216 | case 1: | 216 | case 1: |
217 | out_8((u8 *)addr, val); | 217 | out_8(addr, val); |
218 | break; | 218 | break; |
219 | case 2: | 219 | case 2: |
220 | out_be16((u16 *)addr, val); | 220 | out_be16(addr, val); |
221 | break; | 221 | break; |
222 | case 4: | 222 | case 4: |
223 | out_be32((u32 *)addr, val); | 223 | out_be32(addr, val); |
224 | break; | 224 | break; |
225 | default: | 225 | default: |
226 | return PCIBIOS_DEVICE_NOT_FOUND; | 226 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -233,13 +233,13 @@ static int celleb_epci_write_config(struct pci_bus *bus, | |||
233 | 233 | ||
234 | switch (size) { | 234 | switch (size) { |
235 | case 1: | 235 | case 1: |
236 | out_8((u8 *)addr, val); | 236 | out_8(addr, val); |
237 | break; | 237 | break; |
238 | case 2: | 238 | case 2: |
239 | out_le16((u16 *)addr, val); | 239 | out_le16(addr, val); |
240 | break; | 240 | break; |
241 | case 4: | 241 | case 4: |
242 | out_le32((u32 *)addr, val); | 242 | out_le32(addr, val); |
243 | break; | 243 | break; |
244 | default: | 244 | default: |
245 | return PCIBIOS_DEVICE_NOT_FOUND; | 245 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -261,7 +261,7 @@ static int __devinit celleb_epci_init(struct pci_controller *hose) | |||
261 | void __iomem *reg, *epci_base; | 261 | void __iomem *reg, *epci_base; |
262 | int hwres = 0; | 262 | int hwres = 0; |
263 | 263 | ||
264 | epci_base = (void *)hose->cfg_addr; | 264 | epci_base = hose->cfg_addr; |
265 | 265 | ||
266 | /* PCI core reset(Internal bus and PCI clock) */ | 266 | /* PCI core reset(Internal bus and PCI clock) */ |
267 | reg = epci_base + SCC_EPCI_CKCTRL; | 267 | reg = epci_base + SCC_EPCI_CKCTRL; |
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index e1f51d455984..117c9a0055bd 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c | |||
@@ -75,7 +75,7 @@ extern irqreturn_t xmon_irq(int, void *); | |||
75 | extern unsigned long loops_per_jiffy; | 75 | extern unsigned long loops_per_jiffy; |
76 | 76 | ||
77 | /* To be replaced by RTAS when available */ | 77 | /* To be replaced by RTAS when available */ |
78 | static unsigned int *briq_SPOR; | 78 | static unsigned int __iomem *briq_SPOR; |
79 | 79 | ||
80 | #ifdef CONFIG_SMP | 80 | #ifdef CONFIG_SMP |
81 | extern struct smp_ops_t chrp_smp_ops; | 81 | extern struct smp_ops_t chrp_smp_ops; |
@@ -267,7 +267,7 @@ void __init chrp_setup_arch(void) | |||
267 | } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { | 267 | } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { |
268 | _chrp_type = _CHRP_briq; | 268 | _chrp_type = _CHRP_briq; |
269 | /* Map the SPOR register on briq and change the restart hook */ | 269 | /* Map the SPOR register on briq and change the restart hook */ |
270 | briq_SPOR = (unsigned int *)ioremap(0xff0000e8, 4); | 270 | briq_SPOR = ioremap(0xff0000e8, 4); |
271 | ppc_md.restart = briq_restart; | 271 | ppc_md.restart = briq_restart; |
272 | } else { | 272 | } else { |
273 | /* Let's assume it is an IBM chrp if all else fails */ | 273 | /* Let's assume it is an IBM chrp if all else fails */ |
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c index 61599d919ea8..3f6c4114f908 100644 --- a/arch/powerpc/platforms/embedded6xx/linkstation.c +++ b/arch/powerpc/platforms/embedded6xx/linkstation.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/pci.h> | 14 | #include <linux/pci.h> |
15 | #include <linux/initrd.h> | 15 | #include <linux/initrd.h> |
16 | #include <linux/root_dev.h> | ||
17 | #include <linux/mtd/physmap.h> | 16 | #include <linux/mtd/physmap.h> |
18 | 17 | ||
19 | #include <asm/time.h> | 18 | #include <asm/time.h> |
@@ -91,17 +90,6 @@ static void __init linkstation_setup_arch(void) | |||
91 | ARRAY_SIZE(linkstation_physmap_partitions)); | 90 | ARRAY_SIZE(linkstation_physmap_partitions)); |
92 | #endif | 91 | #endif |
93 | 92 | ||
94 | #ifdef CONFIG_BLK_DEV_INITRD | ||
95 | if (initrd_start) | ||
96 | ROOT_DEV = Root_RAM0; | ||
97 | else | ||
98 | #endif | ||
99 | #ifdef CONFIG_ROOT_NFS | ||
100 | ROOT_DEV = Root_NFS; | ||
101 | #else | ||
102 | ROOT_DEV = Root_HDA1; | ||
103 | #endif | ||
104 | |||
105 | /* Lookup PCI host bridges */ | 93 | /* Lookup PCI host bridges */ |
106 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 94 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
107 | add_bridge(np); | 95 | add_bridge(np); |
diff --git a/arch/powerpc/platforms/iseries/lpevents.c b/arch/powerpc/platforms/iseries/lpevents.c index c1f4502a3c6a..91df52a1899a 100644 --- a/arch/powerpc/platforms/iseries/lpevents.c +++ b/arch/powerpc/platforms/iseries/lpevents.c | |||
@@ -308,7 +308,7 @@ static int proc_lpevents_open(struct inode *inode, struct file *file) | |||
308 | return single_open(file, proc_lpevents_show, NULL); | 308 | return single_open(file, proc_lpevents_show, NULL); |
309 | } | 309 | } |
310 | 310 | ||
311 | static struct file_operations proc_lpevents_operations = { | 311 | static const struct file_operations proc_lpevents_operations = { |
312 | .open = proc_lpevents_open, | 312 | .open = proc_lpevents_open, |
313 | .read = seq_read, | 313 | .read = seq_read, |
314 | .llseek = seq_lseek, | 314 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c index 1ad0e4aaad1a..b1187d95e3b2 100644 --- a/arch/powerpc/platforms/iseries/mf.c +++ b/arch/powerpc/platforms/iseries/mf.c | |||
@@ -1224,7 +1224,7 @@ out: | |||
1224 | return rc; | 1224 | return rc; |
1225 | } | 1225 | } |
1226 | 1226 | ||
1227 | static struct file_operations proc_vmlinux_operations = { | 1227 | static const struct file_operations proc_vmlinux_operations = { |
1228 | .write = proc_mf_change_vmlinux, | 1228 | .write = proc_mf_change_vmlinux, |
1229 | }; | 1229 | }; |
1230 | 1230 | ||
@@ -1253,7 +1253,6 @@ static int __init mf_proc_init(void) | |||
1253 | ent = create_proc_entry("cmdline", S_IFREG|S_IRUSR|S_IWUSR, mf); | 1253 | ent = create_proc_entry("cmdline", S_IFREG|S_IRUSR|S_IWUSR, mf); |
1254 | if (!ent) | 1254 | if (!ent) |
1255 | return 1; | 1255 | return 1; |
1256 | ent->nlink = 1; | ||
1257 | ent->data = (void *)(long)i; | 1256 | ent->data = (void *)(long)i; |
1258 | ent->read_proc = proc_mf_dump_cmdline; | 1257 | ent->read_proc = proc_mf_dump_cmdline; |
1259 | ent->write_proc = proc_mf_change_cmdline; | 1258 | ent->write_proc = proc_mf_change_cmdline; |
@@ -1264,7 +1263,6 @@ static int __init mf_proc_init(void) | |||
1264 | ent = create_proc_entry("vmlinux", S_IFREG|S_IWUSR, mf); | 1263 | ent = create_proc_entry("vmlinux", S_IFREG|S_IWUSR, mf); |
1265 | if (!ent) | 1264 | if (!ent) |
1266 | return 1; | 1265 | return 1; |
1267 | ent->nlink = 1; | ||
1268 | ent->data = (void *)(long)i; | 1266 | ent->data = (void *)(long)i; |
1269 | ent->proc_fops = &proc_vmlinux_operations; | 1267 | ent->proc_fops = &proc_vmlinux_operations; |
1270 | } | 1268 | } |
@@ -1272,7 +1270,6 @@ static int __init mf_proc_init(void) | |||
1272 | ent = create_proc_entry("side", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root); | 1270 | ent = create_proc_entry("side", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root); |
1273 | if (!ent) | 1271 | if (!ent) |
1274 | return 1; | 1272 | return 1; |
1275 | ent->nlink = 1; | ||
1276 | ent->data = (void *)0; | 1273 | ent->data = (void *)0; |
1277 | ent->read_proc = proc_mf_dump_side; | 1274 | ent->read_proc = proc_mf_dump_side; |
1278 | ent->write_proc = proc_mf_change_side; | 1275 | ent->write_proc = proc_mf_change_side; |
@@ -1280,7 +1277,6 @@ static int __init mf_proc_init(void) | |||
1280 | ent = create_proc_entry("src", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root); | 1277 | ent = create_proc_entry("src", S_IFREG|S_IRUSR|S_IWUSR, mf_proc_root); |
1281 | if (!ent) | 1278 | if (!ent) |
1282 | return 1; | 1279 | return 1; |
1283 | ent->nlink = 1; | ||
1284 | ent->data = (void *)0; | 1280 | ent->data = (void *)0; |
1285 | ent->read_proc = proc_mf_dump_src; | 1281 | ent->read_proc = proc_mf_dump_src; |
1286 | ent->write_proc = proc_mf_change_src; | 1282 | ent->write_proc = proc_mf_change_src; |
diff --git a/arch/powerpc/platforms/iseries/proc.c b/arch/powerpc/platforms/iseries/proc.c index b54e37101e69..f2cde4180204 100644 --- a/arch/powerpc/platforms/iseries/proc.c +++ b/arch/powerpc/platforms/iseries/proc.c | |||
@@ -101,7 +101,7 @@ static int proc_titantod_open(struct inode *inode, struct file *file) | |||
101 | return single_open(file, proc_titantod_show, NULL); | 101 | return single_open(file, proc_titantod_show, NULL); |
102 | } | 102 | } |
103 | 103 | ||
104 | static struct file_operations proc_titantod_operations = { | 104 | static const struct file_operations proc_titantod_operations = { |
105 | .open = proc_titantod_open, | 105 | .open = proc_titantod_open, |
106 | .read = seq_read, | 106 | .read = seq_read, |
107 | .llseek = seq_lseek, | 107 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/platforms/iseries/viopath.c b/arch/powerpc/platforms/iseries/viopath.c index a6799ed34a66..e2100ece9c65 100644 --- a/arch/powerpc/platforms/iseries/viopath.c +++ b/arch/powerpc/platforms/iseries/viopath.c | |||
@@ -173,7 +173,7 @@ static int proc_viopath_open(struct inode *inode, struct file *file) | |||
173 | return single_open(file, proc_viopath_show, NULL); | 173 | return single_open(file, proc_viopath_show, NULL); |
174 | } | 174 | } |
175 | 175 | ||
176 | static struct file_operations proc_viopath_operations = { | 176 | static const struct file_operations proc_viopath_operations = { |
177 | .open = proc_viopath_open, | 177 | .open = proc_viopath_open, |
178 | .read = seq_read, | 178 | .read = seq_read, |
179 | .llseek = seq_lseek, | 179 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index d949e9df41ef..651fa424ea06 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -506,8 +506,8 @@ void note_bootable_part(dev_t dev, int part, int goodness) | |||
506 | if ((goodness <= current_root_goodness) && | 506 | if ((goodness <= current_root_goodness) && |
507 | ROOT_DEV != DEFAULT_ROOT_DEVICE) | 507 | ROOT_DEV != DEFAULT_ROOT_DEVICE) |
508 | return; | 508 | return; |
509 | p = strstr(saved_command_line, "root="); | 509 | p = strstr(boot_command_line, "root="); |
510 | if (p != NULL && (p == saved_command_line || p[-1] == ' ')) | 510 | if (p != NULL && (p == boot_command_line || p[-1] == ' ')) |
511 | return; | 511 | return; |
512 | 512 | ||
513 | if (!found_boot) { | 513 | if (!found_boot) { |
diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms/ps3/Kconfig index de52ec4e9e58..4be3943d1c0d 100644 --- a/arch/powerpc/platforms/ps3/Kconfig +++ b/arch/powerpc/platforms/ps3/Kconfig | |||
@@ -51,4 +51,15 @@ config PS3_VUART | |||
51 | including the System Manager and AV Settings. In | 51 | including the System Manager and AV Settings. In |
52 | general, all users will say Y. | 52 | general, all users will say Y. |
53 | 53 | ||
54 | config PS3_PS3AV | ||
55 | tristate "PS3 AV settings driver" | ||
56 | depends on PPC_PS3 | ||
57 | select PS3_VUART | ||
58 | default y | ||
59 | help | ||
60 | Include support for the PS3 AV Settings driver. | ||
61 | |||
62 | This support is required for graphics and sound. In | ||
63 | general, all users will say Y or M. | ||
64 | |||
54 | endmenu | 65 | endmenu |
diff --git a/arch/powerpc/platforms/ps3/htab.c b/arch/powerpc/platforms/ps3/htab.c index a4b5a1bc60f4..e12e59fea13a 100644 --- a/arch/powerpc/platforms/ps3/htab.c +++ b/arch/powerpc/platforms/ps3/htab.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * PS3 pagetable management routines. | 2 | * PS3 pagetable management routines. |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Sony Computer Entertainment Inc. | 4 | * Copyright (C) 2006 Sony Computer Entertainment Inc. |
5 | * Copyright 2006 Sony Corp. | 5 | * Copyright 2006, 2007 Sony Corporation |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/lmb.h> | 24 | #include <asm/lmb.h> |
25 | #include <asm/udbg.h> | 25 | #include <asm/udbg.h> |
26 | #include <asm/lv1call.h> | 26 | #include <asm/lv1call.h> |
27 | #include <asm/ps3fb.h> | ||
27 | 28 | ||
28 | #include "platform.h" | 29 | #include "platform.h" |
29 | 30 | ||
@@ -233,6 +234,9 @@ static void ps3_hpte_invalidate(unsigned long slot, unsigned long va, | |||
233 | 234 | ||
234 | static void ps3_hpte_clear(void) | 235 | static void ps3_hpte_clear(void) |
235 | { | 236 | { |
237 | /* Make sure to clean up the frame buffer device first */ | ||
238 | ps3fb_cleanup(); | ||
239 | |||
236 | lv1_unmap_htab(htab_addr); | 240 | lv1_unmap_htab(htab_addr); |
237 | } | 241 | } |
238 | 242 | ||
diff --git a/arch/powerpc/platforms/ps3/interrupt.c b/arch/powerpc/platforms/ps3/interrupt.c index bb17283275aa..631c30095617 100644 --- a/arch/powerpc/platforms/ps3/interrupt.c +++ b/arch/powerpc/platforms/ps3/interrupt.c | |||
@@ -194,6 +194,7 @@ int ps3_alloc_io_irq(enum ps3_cpu_binding cpu, unsigned int interrupt_id, | |||
194 | 194 | ||
195 | return result; | 195 | return result; |
196 | } | 196 | } |
197 | EXPORT_SYMBOL_GPL(ps3_alloc_io_irq); | ||
197 | 198 | ||
198 | int ps3_free_io_irq(unsigned int virq) | 199 | int ps3_free_io_irq(unsigned int virq) |
199 | { | 200 | { |
@@ -209,6 +210,7 @@ int ps3_free_io_irq(unsigned int virq) | |||
209 | 210 | ||
210 | return result; | 211 | return result; |
211 | } | 212 | } |
213 | EXPORT_SYMBOL_GPL(ps3_free_io_irq); | ||
212 | 214 | ||
213 | /** | 215 | /** |
214 | * ps3_alloc_event_irq - Allocate a virq for use with a system event. | 216 | * ps3_alloc_event_irq - Allocate a virq for use with a system event. |
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index e62505e18813..13d669a8ecae 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/root_dev.h> | 24 | #include <linux/root_dev.h> |
25 | #include <linux/console.h> | 25 | #include <linux/console.h> |
26 | #include <linux/kexec.h> | 26 | #include <linux/kexec.h> |
27 | #include <linux/bootmem.h> | ||
27 | 28 | ||
28 | #include <asm/machdep.h> | 29 | #include <asm/machdep.h> |
29 | #include <asm/firmware.h> | 30 | #include <asm/firmware.h> |
@@ -80,6 +81,46 @@ static void ps3_panic(char *str) | |||
80 | for (;;) ; | 81 | for (;;) ; |
81 | } | 82 | } |
82 | 83 | ||
84 | |||
85 | static void prealloc(struct ps3_prealloc *p) | ||
86 | { | ||
87 | if (!p->size) | ||
88 | return; | ||
89 | |||
90 | p->address = __alloc_bootmem(p->size, p->align, __pa(MAX_DMA_ADDRESS)); | ||
91 | if (!p->address) { | ||
92 | printk(KERN_ERR "%s: Cannot allocate %s\n", __FUNCTION__, | ||
93 | p->name); | ||
94 | return; | ||
95 | } | ||
96 | |||
97 | printk(KERN_INFO "%s: %lu bytes at %p\n", p->name, p->size, | ||
98 | p->address); | ||
99 | } | ||
100 | |||
101 | #ifdef CONFIG_FB_PS3 | ||
102 | struct ps3_prealloc ps3fb_videomemory = { | ||
103 | .name = "ps3fb videomemory", | ||
104 | .size = CONFIG_FB_PS3_DEFAULT_SIZE_M*1024*1024, | ||
105 | .align = 1024*1024 /* the GPU requires 1 MiB alignment */ | ||
106 | }; | ||
107 | #define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory) | ||
108 | |||
109 | static int __init early_parse_ps3fb(char *p) | ||
110 | { | ||
111 | if (!p) | ||
112 | return 1; | ||
113 | |||
114 | ps3fb_videomemory.size = _ALIGN_UP(memparse(p, &p), | ||
115 | ps3fb_videomemory.align); | ||
116 | return 0; | ||
117 | } | ||
118 | early_param("ps3fb", early_parse_ps3fb); | ||
119 | #else | ||
120 | #define prealloc_ps3fb_videomemory() do { } while (0) | ||
121 | #endif | ||
122 | |||
123 | |||
83 | static void __init ps3_setup_arch(void) | 124 | static void __init ps3_setup_arch(void) |
84 | { | 125 | { |
85 | union ps3_firmware_version v; | 126 | union ps3_firmware_version v; |
@@ -101,6 +142,7 @@ static void __init ps3_setup_arch(void) | |||
101 | conswitchp = &dummy_con; | 142 | conswitchp = &dummy_con; |
102 | #endif | 143 | #endif |
103 | 144 | ||
145 | prealloc_ps3fb_videomemory(); | ||
104 | ppc_md.power_save = ps3_power_save; | 146 | ppc_md.power_save = ps3_power_save; |
105 | 147 | ||
106 | DBG(" <- %s:%d\n", __func__, __LINE__); | 148 | DBG(" <- %s:%d\n", __func__, __LINE__); |
diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c index d1929721b0e4..a397e4e17c13 100644 --- a/arch/powerpc/platforms/ps3/spu.c +++ b/arch/powerpc/platforms/ps3/spu.c | |||
@@ -170,31 +170,6 @@ static int __init construct_spu(struct spu *spu) | |||
170 | return result; | 170 | return result; |
171 | } | 171 | } |
172 | 172 | ||
173 | static int __init add_spu_pages(unsigned long start_addr, unsigned long size) | ||
174 | { | ||
175 | int result; | ||
176 | unsigned long start_pfn; | ||
177 | unsigned long nr_pages; | ||
178 | struct pglist_data *pgdata; | ||
179 | struct zone *zone; | ||
180 | |||
181 | BUG_ON(!mem_init_done); | ||
182 | |||
183 | start_pfn = start_addr >> PAGE_SHIFT; | ||
184 | nr_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
185 | |||
186 | pgdata = NODE_DATA(0); | ||
187 | zone = pgdata->node_zones; | ||
188 | |||
189 | result = __add_pages(zone, start_pfn, nr_pages); | ||
190 | |||
191 | if (result) | ||
192 | pr_debug("%s:%d: __add_pages failed: (%d)\n", | ||
193 | __func__, __LINE__, result); | ||
194 | |||
195 | return result; | ||
196 | } | ||
197 | |||
198 | static void spu_unmap(struct spu *spu) | 173 | static void spu_unmap(struct spu *spu) |
199 | { | 174 | { |
200 | iounmap(spu->priv2); | 175 | iounmap(spu->priv2); |
@@ -206,19 +181,6 @@ static void spu_unmap(struct spu *spu) | |||
206 | static int __init setup_areas(struct spu *spu) | 181 | static int __init setup_areas(struct spu *spu) |
207 | { | 182 | { |
208 | struct table {char* name; unsigned long addr; unsigned long size;}; | 183 | struct table {char* name; unsigned long addr; unsigned long size;}; |
209 | int result; | ||
210 | |||
211 | /* setup pages */ | ||
212 | |||
213 | result = add_spu_pages(spu->local_store_phys, LS_SIZE); | ||
214 | if (result) | ||
215 | goto fail_add; | ||
216 | |||
217 | result = add_spu_pages(spu->problem_phys, sizeof(struct spu_problem)); | ||
218 | if (result) | ||
219 | goto fail_add; | ||
220 | |||
221 | /* ioremap */ | ||
222 | 184 | ||
223 | spu_pdata(spu)->shadow = __ioremap( | 185 | spu_pdata(spu)->shadow = __ioremap( |
224 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), | 186 | spu_pdata(spu)->shadow_addr, sizeof(struct spe_shadow), |
@@ -260,8 +222,8 @@ static int __init setup_areas(struct spu *spu) | |||
260 | 222 | ||
261 | fail_ioremap: | 223 | fail_ioremap: |
262 | spu_unmap(spu); | 224 | spu_unmap(spu); |
263 | fail_add: | 225 | |
264 | return result; | 226 | return -ENOMEM; |
265 | } | 227 | } |
266 | 228 | ||
267 | static int __init setup_interrupts(struct spu *spu) | 229 | static int __init setup_interrupts(struct spu *spu) |
diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index bce6136cbce7..a9f7e4a39a2a 100644 --- a/arch/powerpc/platforms/ps3/system-bus.c +++ b/arch/powerpc/platforms/ps3/system-bus.c | |||
@@ -57,6 +57,7 @@ int ps3_mmio_region_create(struct ps3_mmio_region *r) | |||
57 | dump_mmio_region(r); | 57 | dump_mmio_region(r); |
58 | return result; | 58 | return result; |
59 | } | 59 | } |
60 | EXPORT_SYMBOL_GPL(ps3_mmio_region_create); | ||
60 | 61 | ||
61 | int ps3_free_mmio_region(struct ps3_mmio_region *r) | 62 | int ps3_free_mmio_region(struct ps3_mmio_region *r) |
62 | { | 63 | { |
@@ -72,6 +73,7 @@ int ps3_free_mmio_region(struct ps3_mmio_region *r) | |||
72 | r->lpar_addr = 0; | 73 | r->lpar_addr = 0; |
73 | return result; | 74 | return result; |
74 | } | 75 | } |
76 | EXPORT_SYMBOL_GPL(ps3_free_mmio_region); | ||
75 | 77 | ||
76 | static int ps3_system_bus_match(struct device *_dev, | 78 | static int ps3_system_bus_match(struct device *_dev, |
77 | struct device_driver *_drv) | 79 | struct device_driver *_drv) |
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 9437f48cc9e7..6cedbc002e0f 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -1078,7 +1078,7 @@ static int proc_eeh_open(struct inode *inode, struct file *file) | |||
1078 | return single_open(file, proc_eeh_show, NULL); | 1078 | return single_open(file, proc_eeh_show, NULL); |
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | static struct file_operations proc_eeh_operations = { | 1081 | static const struct file_operations proc_eeh_operations = { |
1082 | .open = proc_eeh_open, | 1082 | .open = proc_eeh_open, |
1083 | .read = seq_read, | 1083 | .read = seq_read, |
1084 | .llseek = seq_lseek, | 1084 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c index 3ddc04925d50..eae51ef9af24 100644 --- a/arch/powerpc/platforms/pseries/hvCall_inst.c +++ b/arch/powerpc/platforms/pseries/hvCall_inst.c | |||
@@ -90,7 +90,7 @@ static int hcall_inst_seq_open(struct inode *inode, struct file *file) | |||
90 | return rc; | 90 | return rc; |
91 | } | 91 | } |
92 | 92 | ||
93 | static struct file_operations hcall_inst_seq_fops = { | 93 | static const struct file_operations hcall_inst_seq_fops = { |
94 | .open = hcall_inst_seq_open, | 94 | .open = hcall_inst_seq_open, |
95 | .read = seq_read, | 95 | .read = seq_read, |
96 | .llseek = seq_lseek, | 96 | .llseek = seq_lseek, |
diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platforms/pseries/pci.c index c69bd15ced9c..fa59124ce3fe 100644 --- a/arch/powerpc/platforms/pseries/pci.c +++ b/arch/powerpc/platforms/pseries/pci.c | |||
@@ -98,6 +98,10 @@ static void fixup_winbond_82c105(struct pci_dev* dev) | |||
98 | if (dev->resource[i].flags & IORESOURCE_IO | 98 | if (dev->resource[i].flags & IORESOURCE_IO |
99 | && dev->bus->number == 0 && dev->devfn == 0x81) | 99 | && dev->bus->number == 0 && dev->devfn == 0x81) |
100 | dev->resource[i].flags &= ~IORESOURCE_IO; | 100 | dev->resource[i].flags &= ~IORESOURCE_IO; |
101 | if (dev->resource[i].start == 0 && dev->resource[i].end) { | ||
102 | dev->resource[i].flags = 0; | ||
103 | dev->resource[i].end = 0; | ||
104 | } | ||
101 | } | 105 | } |
102 | } | 106 | } |
103 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, | 107 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, |
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c index 4ad33e41b008..5aa97aff3391 100644 --- a/arch/powerpc/platforms/pseries/reconfig.c +++ b/arch/powerpc/platforms/pseries/reconfig.c | |||
@@ -499,7 +499,7 @@ out: | |||
499 | return rv ? rv : count; | 499 | return rv ? rv : count; |
500 | } | 500 | } |
501 | 501 | ||
502 | static struct file_operations ofdt_fops = { | 502 | static const struct file_operations ofdt_fops = { |
503 | .write = ofdt_write | 503 | .write = ofdt_write |
504 | }; | 504 | }; |
505 | 505 | ||
@@ -513,7 +513,6 @@ static int proc_ppc64_create_ofdt(void) | |||
513 | 513 | ||
514 | ent = create_proc_entry("ppc64/ofdt", S_IWUSR, NULL); | 514 | ent = create_proc_entry("ppc64/ofdt", S_IWUSR, NULL); |
515 | if (ent) { | 515 | if (ent) { |
516 | ent->nlink = 1; | ||
517 | ent->data = NULL; | 516 | ent->data = NULL; |
518 | ent->size = 0; | 517 | ent->size = 0; |
519 | ent->proc_fops = &ofdt_fops; | 518 | ent->proc_fops = &ofdt_fops; |
diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc/platforms/pseries/rtasd.c index 8ca2612221d6..77d0937d5c07 100644 --- a/arch/powerpc/platforms/pseries/rtasd.c +++ b/arch/powerpc/platforms/pseries/rtasd.c | |||
@@ -331,7 +331,7 @@ static unsigned int rtas_log_poll(struct file *file, poll_table * wait) | |||
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |
333 | 333 | ||
334 | struct file_operations proc_rtas_log_operations = { | 334 | const struct file_operations proc_rtas_log_operations = { |
335 | .read = rtas_log_read, | 335 | .read = rtas_log_read, |
336 | .poll = rtas_log_poll, | 336 | .poll = rtas_log_poll, |
337 | .open = rtas_log_open, | 337 | .open = rtas_log_open, |
diff --git a/arch/powerpc/platforms/pseries/scanlog.c b/arch/powerpc/platforms/pseries/scanlog.c index 45368a57d7dd..8e1ef168e2dd 100644 --- a/arch/powerpc/platforms/pseries/scanlog.c +++ b/arch/powerpc/platforms/pseries/scanlog.c | |||
@@ -184,7 +184,7 @@ static int scanlog_release(struct inode * inode, struct file * file) | |||
184 | return 0; | 184 | return 0; |
185 | } | 185 | } |
186 | 186 | ||
187 | struct file_operations scanlog_fops = { | 187 | const struct file_operations scanlog_fops = { |
188 | .owner = THIS_MODULE, | 188 | .owner = THIS_MODULE, |
189 | .read = scanlog_read, | 189 | .read = scanlog_read, |
190 | .write = scanlog_write, | 190 | .write = scanlog_write, |
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 9f2a9a444bfb..34161bc5a02f 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -441,7 +441,8 @@ static int __init fsl_usb_of_init(void) | |||
441 | { | 441 | { |
442 | struct device_node *np; | 442 | struct device_node *np; |
443 | unsigned int i; | 443 | unsigned int i; |
444 | struct platform_device *usb_dev_mph = NULL, *usb_dev_dr = NULL; | 444 | struct platform_device *usb_dev_mph = NULL, *usb_dev_dr_host = NULL, |
445 | *usb_dev_dr_client = NULL; | ||
445 | int ret; | 446 | int ret; |
446 | 447 | ||
447 | for (np = NULL, i = 0; | 448 | for (np = NULL, i = 0; |
@@ -507,33 +508,72 @@ static int __init fsl_usb_of_init(void) | |||
507 | 508 | ||
508 | of_irq_to_resource(np, 0, &r[1]); | 509 | of_irq_to_resource(np, 0, &r[1]); |
509 | 510 | ||
510 | usb_dev_dr = | 511 | prop = get_property(np, "dr_mode", NULL); |
511 | platform_device_register_simple("fsl-ehci", i, r, 2); | 512 | |
512 | if (IS_ERR(usb_dev_dr)) { | 513 | if (!prop || !strcmp(prop, "host")) { |
513 | ret = PTR_ERR(usb_dev_dr); | 514 | usb_data.operating_mode = FSL_USB2_DR_HOST; |
515 | usb_dev_dr_host = platform_device_register_simple( | ||
516 | "fsl-ehci", i, r, 2); | ||
517 | if (IS_ERR(usb_dev_dr_host)) { | ||
518 | ret = PTR_ERR(usb_dev_dr_host); | ||
519 | goto err; | ||
520 | } | ||
521 | } else if (prop && !strcmp(prop, "peripheral")) { | ||
522 | usb_data.operating_mode = FSL_USB2_DR_DEVICE; | ||
523 | usb_dev_dr_client = platform_device_register_simple( | ||
524 | "fsl-usb2-udc", i, r, 2); | ||
525 | if (IS_ERR(usb_dev_dr_client)) { | ||
526 | ret = PTR_ERR(usb_dev_dr_client); | ||
527 | goto err; | ||
528 | } | ||
529 | } else if (prop && !strcmp(prop, "otg")) { | ||
530 | usb_data.operating_mode = FSL_USB2_DR_OTG; | ||
531 | usb_dev_dr_host = platform_device_register_simple( | ||
532 | "fsl-ehci", i, r, 2); | ||
533 | if (IS_ERR(usb_dev_dr_host)) { | ||
534 | ret = PTR_ERR(usb_dev_dr_host); | ||
535 | goto err; | ||
536 | } | ||
537 | usb_dev_dr_client = platform_device_register_simple( | ||
538 | "fsl-usb2-udc", i, r, 2); | ||
539 | if (IS_ERR(usb_dev_dr_client)) { | ||
540 | ret = PTR_ERR(usb_dev_dr_client); | ||
541 | goto err; | ||
542 | } | ||
543 | } else { | ||
544 | ret = -EINVAL; | ||
514 | goto err; | 545 | goto err; |
515 | } | 546 | } |
516 | 547 | ||
517 | usb_dev_dr->dev.coherent_dma_mask = 0xffffffffUL; | ||
518 | usb_dev_dr->dev.dma_mask = &usb_dev_dr->dev.coherent_dma_mask; | ||
519 | |||
520 | usb_data.operating_mode = FSL_USB2_DR_HOST; | ||
521 | |||
522 | prop = get_property(np, "phy_type", NULL); | 548 | prop = get_property(np, "phy_type", NULL); |
523 | usb_data.phy_mode = determine_usb_phy(prop); | 549 | usb_data.phy_mode = determine_usb_phy(prop); |
524 | 550 | ||
525 | ret = | 551 | if (usb_dev_dr_host) { |
526 | platform_device_add_data(usb_dev_dr, &usb_data, | 552 | usb_dev_dr_host->dev.coherent_dma_mask = 0xffffffffUL; |
527 | sizeof(struct | 553 | usb_dev_dr_host->dev.dma_mask = &usb_dev_dr_host-> |
528 | fsl_usb2_platform_data)); | 554 | dev.coherent_dma_mask; |
529 | if (ret) | 555 | if ((ret = platform_device_add_data(usb_dev_dr_host, |
530 | goto unreg_dr; | 556 | &usb_data, sizeof(struct |
557 | fsl_usb2_platform_data)))) | ||
558 | goto unreg_dr; | ||
559 | } | ||
560 | if (usb_dev_dr_client) { | ||
561 | usb_dev_dr_client->dev.coherent_dma_mask = 0xffffffffUL; | ||
562 | usb_dev_dr_client->dev.dma_mask = &usb_dev_dr_client-> | ||
563 | dev.coherent_dma_mask; | ||
564 | if ((ret = platform_device_add_data(usb_dev_dr_client, | ||
565 | &usb_data, sizeof(struct | ||
566 | fsl_usb2_platform_data)))) | ||
567 | goto unreg_dr; | ||
568 | } | ||
531 | } | 569 | } |
532 | return 0; | 570 | return 0; |
533 | 571 | ||
534 | unreg_dr: | 572 | unreg_dr: |
535 | if (usb_dev_dr) | 573 | if (usb_dev_dr_host) |
536 | platform_device_unregister(usb_dev_dr); | 574 | platform_device_unregister(usb_dev_dr_host); |
575 | if (usb_dev_dr_client) | ||
576 | platform_device_unregister(usb_dev_dr_client); | ||
537 | unreg_mph: | 577 | unreg_mph: |
538 | if (usb_dev_mph) | 578 | if (usb_dev_mph) |
539 | platform_device_unregister(usb_dev_mph); | 579 | platform_device_unregister(usb_dev_mph); |
@@ -699,7 +739,7 @@ static int __init fs_enet_of_init(void) | |||
699 | if (ret) | 739 | if (ret) |
700 | goto unreg; | 740 | goto unreg; |
701 | } | 741 | } |
702 | 742 | ||
703 | of_node_put(phy); | 743 | of_node_put(phy); |
704 | of_node_put(mdio); | 744 | of_node_put(mdio); |
705 | 745 | ||
diff --git a/arch/powerpc/sysdev/qe_lib/ucc_slow.c b/arch/powerpc/sysdev/qe_lib/ucc_slow.c index 47b56203f47e..0e97e5c94f8a 100644 --- a/arch/powerpc/sysdev/qe_lib/ucc_slow.c +++ b/arch/powerpc/sysdev/qe_lib/ucc_slow.c | |||
@@ -179,7 +179,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
179 | uccs->us_info = us_info; | 179 | uccs->us_info = us_info; |
180 | uccs->saved_uccm = 0; | 180 | uccs->saved_uccm = 0; |
181 | uccs->p_rx_frame = 0; | 181 | uccs->p_rx_frame = 0; |
182 | uccs->us_regs = us_info->us_regs; | 182 | uccs->us_regs = us_info->regs; |
183 | us_regs = uccs->us_regs; | 183 | us_regs = uccs->us_regs; |
184 | uccs->p_ucce = (u16 *) & (us_regs->ucce); | 184 | uccs->p_ucce = (u16 *) & (us_regs->ucce); |
185 | uccs->p_uccm = (u16 *) & (us_regs->uccm); | 185 | uccs->p_uccm = (u16 *) & (us_regs->uccm); |
@@ -206,7 +206,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
206 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); | 206 | uccs->us_pram = qe_muram_addr(uccs->us_pram_offset); |
207 | 207 | ||
208 | /* Init Guemr register */ | 208 | /* Init Guemr register */ |
209 | if ((ret = ucc_init_guemr((struct ucc_common *) (us_info->us_regs)))) { | 209 | if ((ret = ucc_init_guemr((struct ucc_common *) (us_info->regs)))) { |
210 | uccs_err("ucc_slow_init: Could not init the guemr register."); | 210 | uccs_err("ucc_slow_init: Could not init the guemr register."); |
211 | ucc_slow_free(uccs); | 211 | ucc_slow_free(uccs); |
212 | return ret; | 212 | return ret; |
@@ -214,7 +214,7 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc | |||
214 | 214 | ||
215 | /* Set UCC to slow type */ | 215 | /* Set UCC to slow type */ |
216 | if ((ret = ucc_set_type(us_info->ucc_num, | 216 | if ((ret = ucc_set_type(us_info->ucc_num, |
217 | (struct ucc_common *) (us_info->us_regs), | 217 | (struct ucc_common *) (us_info->regs), |
218 | UCC_SPEED_TYPE_SLOW))) { | 218 | UCC_SPEED_TYPE_SLOW))) { |
219 | uccs_err("ucc_slow_init: Could not init the guemr register."); | 219 | uccs_err("ucc_slow_init: Could not init the guemr register."); |
220 | ucc_slow_free(uccs); | 220 | ucc_slow_free(uccs); |
diff --git a/arch/powerpc/xmon/spu-dis.c b/arch/powerpc/xmon/spu-dis.c index ee929c641bf3..e5f89837c82e 100644 --- a/arch/powerpc/xmon/spu-dis.c +++ b/arch/powerpc/xmon/spu-dis.c | |||
@@ -85,7 +85,7 @@ get_index_for_opcode (unsigned int insn) | |||
85 | if ((index = spu_disassemble_table[opcode & 0x7ff]) != 0) | 85 | if ((index = spu_disassemble_table[opcode & 0x7ff]) != 0) |
86 | return index; | 86 | return index; |
87 | 87 | ||
88 | return 0; | 88 | return NULL; |
89 | } | 89 | } |
90 | 90 | ||
91 | /* Print a Spu instruction. */ | 91 | /* Print a Spu instruction. */ |