diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/H8606.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/blackstamp.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 39 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ezkit.c | 26 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/generic_board.c | 35 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ip0x.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 58 |
7 files changed, 162 insertions, 68 deletions
diff --git a/arch/blackfin/mach-bf533/boards/H8606.c b/arch/blackfin/mach-bf533/boards/H8606.c index 72ac3ac8ef76..0c66bf44cfab 100644 --- a/arch/blackfin/mach-bf533/boards/H8606.c +++ b/arch/blackfin/mach-bf533/boards/H8606.c | |||
@@ -313,23 +313,33 @@ static struct platform_device bfin_uart_device = { | |||
313 | #endif | 313 | #endif |
314 | 314 | ||
315 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 315 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
316 | static struct resource bfin_sir_resources[] = { | ||
317 | #ifdef CONFIG_BFIN_SIR0 | 316 | #ifdef CONFIG_BFIN_SIR0 |
317 | static struct resource bfin_sir0_resources[] = { | ||
318 | { | 318 | { |
319 | .start = 0xFFC00400, | 319 | .start = 0xFFC00400, |
320 | .end = 0xFFC004FF, | 320 | .end = 0xFFC004FF, |
321 | .flags = IORESOURCE_MEM, | 321 | .flags = IORESOURCE_MEM, |
322 | }, | 322 | }, |
323 | #endif | 323 | { |
324 | .start = IRQ_UART0_RX, | ||
325 | .end = IRQ_UART0_RX+1, | ||
326 | .flags = IORESOURCE_IRQ, | ||
327 | }, | ||
328 | { | ||
329 | .start = CH_UART0_RX, | ||
330 | .end = CH_UART0_RX+1, | ||
331 | .flags = IORESOURCE_DMA, | ||
332 | }, | ||
324 | }; | 333 | }; |
325 | 334 | ||
326 | static struct platform_device bfin_sir_device = { | 335 | static struct platform_device bfin_sir0_device = { |
327 | .name = "bfin_sir", | 336 | .name = "bfin_sir", |
328 | .id = 0, | 337 | .id = 0, |
329 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 338 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
330 | .resource = bfin_sir_resources, | 339 | .resource = bfin_sir0_resources, |
331 | }; | 340 | }; |
332 | #endif | 341 | #endif |
342 | #endif | ||
333 | 343 | ||
334 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 344 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
335 | 345 | ||
@@ -431,7 +441,9 @@ static struct platform_device *h8606_devices[] __initdata = { | |||
431 | #endif | 441 | #endif |
432 | 442 | ||
433 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 443 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
434 | &bfin_sir_device, | 444 | #ifdef CONFIG_BFIN_SIR0 |
445 | &bfin_sir0_device, | ||
446 | #endif | ||
435 | #endif | 447 | #endif |
436 | 448 | ||
437 | #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) | 449 | #if defined(CONFIG_KEYBOARD_OPENCORES) || defined(CONFIG_KEYBOARD_OPENCORES_MODULE) |
diff --git a/arch/blackfin/mach-bf533/boards/blackstamp.c b/arch/blackfin/mach-bf533/boards/blackstamp.c index d064ded87719..6ee607c259ac 100644 --- a/arch/blackfin/mach-bf533/boards/blackstamp.c +++ b/arch/blackfin/mach-bf533/boards/blackstamp.c | |||
@@ -212,23 +212,33 @@ static struct platform_device bfin_uart_device = { | |||
212 | #endif | 212 | #endif |
213 | 213 | ||
214 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 214 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
215 | static struct resource bfin_sir_resources[] = { | ||
216 | #ifdef CONFIG_BFIN_SIR0 | 215 | #ifdef CONFIG_BFIN_SIR0 |
216 | static struct resource bfin_sir0_resources[] = { | ||
217 | { | 217 | { |
218 | .start = 0xFFC00400, | 218 | .start = 0xFFC00400, |
219 | .end = 0xFFC004FF, | 219 | .end = 0xFFC004FF, |
220 | .flags = IORESOURCE_MEM, | 220 | .flags = IORESOURCE_MEM, |
221 | }, | 221 | }, |
222 | #endif | 222 | { |
223 | .start = IRQ_UART0_RX, | ||
224 | .end = IRQ_UART0_RX+1, | ||
225 | .flags = IORESOURCE_IRQ, | ||
226 | }, | ||
227 | { | ||
228 | .start = CH_UART0_RX, | ||
229 | .end = CH_UART0_RX+1, | ||
230 | .flags = IORESOURCE_DMA, | ||
231 | }, | ||
223 | }; | 232 | }; |
224 | 233 | ||
225 | static struct platform_device bfin_sir_device = { | 234 | static struct platform_device bfin_sir0_device = { |
226 | .name = "bfin_sir", | 235 | .name = "bfin_sir", |
227 | .id = 0, | 236 | .id = 0, |
228 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 237 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
229 | .resource = bfin_sir_resources, | 238 | .resource = bfin_sir0_resources, |
230 | }; | 239 | }; |
231 | #endif | 240 | #endif |
241 | #endif | ||
232 | 242 | ||
233 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 243 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
234 | static struct platform_device bfin_sport0_uart_device = { | 244 | static struct platform_device bfin_sport0_uart_device = { |
@@ -353,7 +363,9 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
353 | #endif | 363 | #endif |
354 | 364 | ||
355 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 365 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
356 | &bfin_sir_device, | 366 | #ifdef CONFIG_BFIN_SIR0 |
367 | &bfin_sir0_device, | ||
368 | #endif | ||
357 | #endif | 369 | #endif |
358 | 370 | ||
359 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 371 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 575843f6d9ef..e7061c7e8c42 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -219,6 +219,19 @@ static struct platform_device smc91x_device = { | |||
219 | }; | 219 | }; |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | static struct resource bfin_gpios_resources = { | ||
223 | .start = 0, | ||
224 | .end = MAX_BLACKFIN_GPIOS - 1, | ||
225 | .flags = IORESOURCE_IRQ, | ||
226 | }; | ||
227 | |||
228 | static struct platform_device bfin_gpios_device = { | ||
229 | .name = "simple-gpio", | ||
230 | .id = -1, | ||
231 | .num_resources = 1, | ||
232 | .resource = &bfin_gpios_resources, | ||
233 | }; | ||
234 | |||
222 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | 235 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
223 | static struct resource bfin_uart_resources[] = { | 236 | static struct resource bfin_uart_resources[] = { |
224 | { | 237 | { |
@@ -237,23 +250,33 @@ static struct platform_device bfin_uart_device = { | |||
237 | #endif | 250 | #endif |
238 | 251 | ||
239 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 252 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
240 | static struct resource bfin_sir_resources[] = { | ||
241 | #ifdef CONFIG_BFIN_SIR0 | 253 | #ifdef CONFIG_BFIN_SIR0 |
254 | static struct resource bfin_sir0_resources[] = { | ||
242 | { | 255 | { |
243 | .start = 0xFFC00400, | 256 | .start = 0xFFC00400, |
244 | .end = 0xFFC004FF, | 257 | .end = 0xFFC004FF, |
245 | .flags = IORESOURCE_MEM, | 258 | .flags = IORESOURCE_MEM, |
246 | }, | 259 | }, |
247 | #endif | 260 | { |
261 | .start = IRQ_UART0_RX, | ||
262 | .end = IRQ_UART0_RX+1, | ||
263 | .flags = IORESOURCE_IRQ, | ||
264 | }, | ||
265 | { | ||
266 | .start = CH_UART0_RX, | ||
267 | .end = CH_UART0_RX+1, | ||
268 | .flags = IORESOURCE_DMA, | ||
269 | }, | ||
248 | }; | 270 | }; |
249 | 271 | ||
250 | static struct platform_device bfin_sir_device = { | 272 | static struct platform_device bfin_sir0_device = { |
251 | .name = "bfin_sir", | 273 | .name = "bfin_sir", |
252 | .id = 0, | 274 | .id = 0, |
253 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 275 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
254 | .resource = bfin_sir_resources, | 276 | .resource = bfin_sir0_resources, |
255 | }; | 277 | }; |
256 | #endif | 278 | #endif |
279 | #endif | ||
257 | 280 | ||
258 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 281 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
259 | static struct platform_device bfin_sport0_uart_device = { | 282 | static struct platform_device bfin_sport0_uart_device = { |
@@ -342,7 +365,9 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
342 | #endif | 365 | #endif |
343 | 366 | ||
344 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 367 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
345 | &bfin_sir_device, | 368 | #ifdef CONFIG_BFIN_SIR0 |
369 | &bfin_sir0_device, | ||
370 | #endif | ||
346 | #endif | 371 | #endif |
347 | 372 | ||
348 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 373 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
@@ -365,6 +390,8 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
365 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 390 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
366 | &bfin_spi0_device, | 391 | &bfin_spi0_device, |
367 | #endif | 392 | #endif |
393 | |||
394 | &bfin_gpios_device, | ||
368 | }; | 395 | }; |
369 | 396 | ||
370 | static int __init cm_bf533_init(void) | 397 | static int __init cm_bf533_init(void) |
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c index cc2e7eeb1d5a..08cd0969de47 100644 --- a/arch/blackfin/mach-bf533/boards/ezkit.c +++ b/arch/blackfin/mach-bf533/boards/ezkit.c | |||
@@ -46,7 +46,7 @@ | |||
46 | /* | 46 | /* |
47 | * Name the Board for the /proc/cpuinfo | 47 | * Name the Board for the /proc/cpuinfo |
48 | */ | 48 | */ |
49 | const char bfin_board_name[] = "ADDS-BF533-EZKIT"; | 49 | const char bfin_board_name[] = "ADI BF533-EZKIT"; |
50 | 50 | ||
51 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 51 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) |
52 | static struct platform_device rtc_device = { | 52 | static struct platform_device rtc_device = { |
@@ -236,23 +236,33 @@ static struct platform_device bfin_uart_device = { | |||
236 | #endif | 236 | #endif |
237 | 237 | ||
238 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 238 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
239 | static struct resource bfin_sir_resources[] = { | ||
240 | #ifdef CONFIG_BFIN_SIR0 | 239 | #ifdef CONFIG_BFIN_SIR0 |
240 | static struct resource bfin_sir0_resources[] = { | ||
241 | { | 241 | { |
242 | .start = 0xFFC00400, | 242 | .start = 0xFFC00400, |
243 | .end = 0xFFC004FF, | 243 | .end = 0xFFC004FF, |
244 | .flags = IORESOURCE_MEM, | 244 | .flags = IORESOURCE_MEM, |
245 | }, | 245 | }, |
246 | #endif | 246 | { |
247 | .start = IRQ_UART0_RX, | ||
248 | .end = IRQ_UART0_RX+1, | ||
249 | .flags = IORESOURCE_IRQ, | ||
250 | }, | ||
251 | { | ||
252 | .start = CH_UART0_RX, | ||
253 | .end = CH_UART0_RX+1, | ||
254 | .flags = IORESOURCE_DMA, | ||
255 | }, | ||
247 | }; | 256 | }; |
248 | 257 | ||
249 | static struct platform_device bfin_sir_device = { | 258 | static struct platform_device bfin_sir0_device = { |
250 | .name = "bfin_sir", | 259 | .name = "bfin_sir", |
251 | .id = 0, | 260 | .id = 0, |
252 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 261 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
253 | .resource = bfin_sir_resources, | 262 | .resource = bfin_sir0_resources, |
254 | }; | 263 | }; |
255 | #endif | 264 | #endif |
265 | #endif | ||
256 | 266 | ||
257 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 267 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
258 | #include <linux/input.h> | 268 | #include <linux/input.h> |
@@ -363,7 +373,9 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
363 | #endif | 373 | #endif |
364 | 374 | ||
365 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 375 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
366 | &bfin_sir_device, | 376 | #ifdef CONFIG_BFIN_SIR0 |
377 | &bfin_sir0_device, | ||
378 | #endif | ||
367 | #endif | 379 | #endif |
368 | 380 | ||
369 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 381 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
diff --git a/arch/blackfin/mach-bf533/boards/generic_board.c b/arch/blackfin/mach-bf533/boards/generic_board.c index 82b1f6a60e3f..986eeec53b1f 100644 --- a/arch/blackfin/mach-bf533/boards/generic_board.c +++ b/arch/blackfin/mach-bf533/boards/generic_board.c | |||
@@ -72,6 +72,35 @@ static struct platform_device smc91x_device = { | |||
72 | }; | 72 | }; |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
76 | #ifdef CONFIG_BFIN_SIR0 | ||
77 | static struct resource bfin_sir0_resources[] = { | ||
78 | { | ||
79 | .start = 0xFFC00400, | ||
80 | .end = 0xFFC004FF, | ||
81 | .flags = IORESOURCE_MEM, | ||
82 | }, | ||
83 | { | ||
84 | .start = IRQ_UART0_RX, | ||
85 | .end = IRQ_UART0_RX+1, | ||
86 | .flags = IORESOURCE_IRQ, | ||
87 | }, | ||
88 | { | ||
89 | .start = CH_UART0_RX, | ||
90 | .end = CH_UART0_RX+1, | ||
91 | .flags = IORESOURCE_DMA, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct platform_device bfin_sir0_device = { | ||
96 | .name = "bfin_sir", | ||
97 | .id = 0, | ||
98 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), | ||
99 | .resource = bfin_sir0_resources, | ||
100 | }; | ||
101 | #endif | ||
102 | #endif | ||
103 | |||
75 | static struct platform_device *generic_board_devices[] __initdata = { | 104 | static struct platform_device *generic_board_devices[] __initdata = { |
76 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 105 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) |
77 | &rtc_device, | 106 | &rtc_device, |
@@ -80,6 +109,12 @@ static struct platform_device *generic_board_devices[] __initdata = { | |||
80 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) | 109 | #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) |
81 | &smc91x_device, | 110 | &smc91x_device, |
82 | #endif | 111 | #endif |
112 | |||
113 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
114 | #ifdef CONFIG_BFIN_SIR0 | ||
115 | &bfin_sir0_device, | ||
116 | #endif | ||
117 | #endif | ||
83 | }; | 118 | }; |
84 | 119 | ||
85 | static int __init generic_board_init(void) | 120 | static int __init generic_board_init(void) |
diff --git a/arch/blackfin/mach-bf533/boards/ip0x.c b/arch/blackfin/mach-bf533/boards/ip0x.c index 5864892de314..e30b1b7d1442 100644 --- a/arch/blackfin/mach-bf533/boards/ip0x.c +++ b/arch/blackfin/mach-bf533/boards/ip0x.c | |||
@@ -197,23 +197,33 @@ static struct platform_device bfin_uart_device = { | |||
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 199 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
200 | static struct resource bfin_sir_resources[] = { | ||
201 | #ifdef CONFIG_BFIN_SIR0 | 200 | #ifdef CONFIG_BFIN_SIR0 |
201 | static struct resource bfin_sir0_resources[] = { | ||
202 | { | 202 | { |
203 | .start = 0xFFC00400, | 203 | .start = 0xFFC00400, |
204 | .end = 0xFFC004FF, | 204 | .end = 0xFFC004FF, |
205 | .flags = IORESOURCE_MEM, | 205 | .flags = IORESOURCE_MEM, |
206 | }, | 206 | }, |
207 | #endif | 207 | { |
208 | .start = IRQ_UART0_RX, | ||
209 | .end = IRQ_UART0_RX+1, | ||
210 | .flags = IORESOURCE_IRQ, | ||
211 | }, | ||
212 | { | ||
213 | .start = CH_UART0_RX, | ||
214 | .end = CH_UART0_RX+1, | ||
215 | .flags = IORESOURCE_DMA, | ||
216 | }, | ||
208 | }; | 217 | }; |
209 | 218 | ||
210 | static struct platform_device bfin_sir_device = { | 219 | static struct platform_device bfin_sir0_device = { |
211 | .name = "bfin_sir", | 220 | .name = "bfin_sir", |
212 | .id = 0, | 221 | .id = 0, |
213 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 222 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
214 | .resource = bfin_sir_resources, | 223 | .resource = bfin_sir0_resources, |
215 | }; | 224 | }; |
216 | #endif | 225 | #endif |
226 | #endif | ||
217 | 227 | ||
218 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 228 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
219 | static struct resource isp1362_hcd_resources[] = { | 229 | static struct resource isp1362_hcd_resources[] = { |
@@ -272,7 +282,9 @@ static struct platform_device *ip0x_devices[] __initdata = { | |||
272 | #endif | 282 | #endif |
273 | 283 | ||
274 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 284 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
275 | &bfin_sir_device, | 285 | #ifdef CONFIG_BFIN_SIR0 |
286 | &bfin_sir0_device, | ||
287 | #endif | ||
276 | #endif | 288 | #endif |
277 | 289 | ||
278 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 290 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index 050ffca53530..07f9ad1e189c 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -49,7 +49,7 @@ | |||
49 | /* | 49 | /* |
50 | * Name the Board for the /proc/cpuinfo | 50 | * Name the Board for the /proc/cpuinfo |
51 | */ | 51 | */ |
52 | const char bfin_board_name[] = "ADDS-BF533-STAMP"; | 52 | const char bfin_board_name[] = "ADI BF533-STAMP"; |
53 | 53 | ||
54 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) | 54 | #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE) |
55 | static struct platform_device rtc_device = { | 55 | static struct platform_device rtc_device = { |
@@ -118,7 +118,7 @@ static struct mtd_partition stamp_partitions[] = { | |||
118 | .offset = 0, | 118 | .offset = 0, |
119 | }, { | 119 | }, { |
120 | .name = "linux kernel(nor)", | 120 | .name = "linux kernel(nor)", |
121 | .size = 0xE0000, | 121 | .size = 0x180000, |
122 | .offset = MTDPART_OFS_APPEND, | 122 | .offset = MTDPART_OFS_APPEND, |
123 | }, { | 123 | }, { |
124 | .name = "file system(nor)", | 124 | .name = "file system(nor)", |
@@ -169,7 +169,7 @@ static struct mtd_partition bfin_spi_flash_partitions[] = { | |||
169 | .mask_flags = MTD_CAP_ROM | 169 | .mask_flags = MTD_CAP_ROM |
170 | }, { | 170 | }, { |
171 | .name = "linux kernel(spi)", | 171 | .name = "linux kernel(spi)", |
172 | .size = 0xe0000, | 172 | .size = 0x180000, |
173 | .offset = MTDPART_OFS_APPEND, | 173 | .offset = MTDPART_OFS_APPEND, |
174 | }, { | 174 | }, { |
175 | .name = "file system(spi)", | 175 | .name = "file system(spi)", |
@@ -216,13 +216,6 @@ static struct bfin5xx_spi_chip spi_si3xxx_chip_info = { | |||
216 | }; | 216 | }; |
217 | #endif | 217 | #endif |
218 | 218 | ||
219 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
220 | static struct bfin5xx_spi_chip spi_mmc_chip_info = { | ||
221 | .enable_dma = 1, | ||
222 | .bits_per_word = 8, | ||
223 | }; | ||
224 | #endif | ||
225 | |||
226 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) | 219 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) |
227 | static struct bfin5xx_spi_chip spidev_chip_info = { | 220 | static struct bfin5xx_spi_chip spidev_chip_info = { |
228 | .enable_dma = 0, | 221 | .enable_dma = 0, |
@@ -265,27 +258,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
265 | }, | 258 | }, |
266 | #endif | 259 | #endif |
267 | 260 | ||
268 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | ||
269 | { | ||
270 | .modalias = "spi_mmc_dummy", | ||
271 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
272 | .bus_num = 0, | ||
273 | .chip_select = 0, | ||
274 | .platform_data = NULL, | ||
275 | .controller_data = &spi_mmc_chip_info, | ||
276 | .mode = SPI_MODE_3, | ||
277 | }, | ||
278 | { | ||
279 | .modalias = "spi_mmc", | ||
280 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
281 | .bus_num = 0, | ||
282 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | ||
283 | .platform_data = NULL, | ||
284 | .controller_data = &spi_mmc_chip_info, | ||
285 | .mode = SPI_MODE_3, | ||
286 | }, | ||
287 | #endif | ||
288 | |||
289 | #if defined(CONFIG_PBX) | 261 | #if defined(CONFIG_PBX) |
290 | { | 262 | { |
291 | .modalias = "fxs-spi", | 263 | .modalias = "fxs-spi", |
@@ -373,23 +345,33 @@ static struct platform_device bfin_uart_device = { | |||
373 | #endif | 345 | #endif |
374 | 346 | ||
375 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 347 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
376 | static struct resource bfin_sir_resources[] = { | ||
377 | #ifdef CONFIG_BFIN_SIR0 | 348 | #ifdef CONFIG_BFIN_SIR0 |
349 | static struct resource bfin_sir0_resources[] = { | ||
378 | { | 350 | { |
379 | .start = 0xFFC00400, | 351 | .start = 0xFFC00400, |
380 | .end = 0xFFC004FF, | 352 | .end = 0xFFC004FF, |
381 | .flags = IORESOURCE_MEM, | 353 | .flags = IORESOURCE_MEM, |
382 | }, | 354 | }, |
383 | #endif | 355 | { |
356 | .start = IRQ_UART0_RX, | ||
357 | .end = IRQ_UART0_RX+1, | ||
358 | .flags = IORESOURCE_IRQ, | ||
359 | }, | ||
360 | { | ||
361 | .start = CH_UART0_RX, | ||
362 | .end = CH_UART0_RX+1, | ||
363 | .flags = IORESOURCE_DMA, | ||
364 | }, | ||
384 | }; | 365 | }; |
385 | 366 | ||
386 | static struct platform_device bfin_sir_device = { | 367 | static struct platform_device bfin_sir0_device = { |
387 | .name = "bfin_sir", | 368 | .name = "bfin_sir", |
388 | .id = 0, | 369 | .id = 0, |
389 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | 370 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
390 | .resource = bfin_sir_resources, | 371 | .resource = bfin_sir0_resources, |
391 | }; | 372 | }; |
392 | #endif | 373 | #endif |
374 | #endif | ||
393 | 375 | ||
394 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 376 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
395 | static struct platform_device bfin_sport0_uart_device = { | 377 | static struct platform_device bfin_sport0_uart_device = { |
@@ -537,7 +519,9 @@ static struct platform_device *stamp_devices[] __initdata = { | |||
537 | #endif | 519 | #endif |
538 | 520 | ||
539 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 521 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
540 | &bfin_sir_device, | 522 | #ifdef CONFIG_BFIN_SIR0 |
523 | &bfin_sir0_device, | ||
524 | #endif | ||
541 | #endif | 525 | #endif |
542 | 526 | ||
543 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 527 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |