diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/ezkit.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/arch/blackfin/mach-bf533/boards/ezkit.c b/arch/blackfin/mach-bf533/boards/ezkit.c index a59c92d47d17..69abceafb4d0 100644 --- a/arch/blackfin/mach-bf533/boards/ezkit.c +++ b/arch/blackfin/mach-bf533/boards/ezkit.c | |||
@@ -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> |
@@ -358,12 +368,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
358 | &rtc_device, | 368 | &rtc_device, |
359 | #endif | 369 | #endif |
360 | 370 | ||
361 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | ||
362 | &bfin_uart_device, | ||
363 | #endif | ||
364 | |||
365 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 371 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
366 | &bfin_sir_device, | 372 | #ifdef CONFIG_BFIN_SIR0 |
373 | &bfin_sir0_device, | ||
374 | #endif | ||
367 | #endif | 375 | #endif |
368 | 376 | ||
369 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | 377 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |