diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/cm_bf533.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index 886f260d9359..a03149c72681 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -234,6 +234,25 @@ static struct platform_device bfin_uart_device = { | |||
234 | }; | 234 | }; |
235 | #endif | 235 | #endif |
236 | 236 | ||
237 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
238 | static struct resource bfin_sir_resources[] = { | ||
239 | #ifdef CONFIG_BFIN_SIR0 | ||
240 | { | ||
241 | .start = 0xFFC00400, | ||
242 | .end = 0xFFC004FF, | ||
243 | .flags = IORESOURCE_MEM, | ||
244 | }, | ||
245 | #endif | ||
246 | }; | ||
247 | |||
248 | static struct platform_device bfin_sir_device = { | ||
249 | .name = "bfin_sir", | ||
250 | .id = 0, | ||
251 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | ||
252 | .resource = bfin_sir_resources, | ||
253 | }; | ||
254 | #endif | ||
255 | |||
237 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 256 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
238 | static struct platform_device bfin_sport0_uart_device = { | 257 | static struct platform_device bfin_sport0_uart_device = { |
239 | .name = "bfin-sport-uart", | 258 | .name = "bfin-sport-uart", |
@@ -327,6 +346,10 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
327 | &bfin_uart_device, | 346 | &bfin_uart_device, |
328 | #endif | 347 | #endif |
329 | 348 | ||
349 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
350 | &bfin_sir_device, | ||
351 | #endif | ||
352 | |||
330 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) | 353 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
331 | &bfin_sport0_uart_device, | 354 | &bfin_sport0_uart_device, |
332 | &bfin_sport1_uart_device, | 355 | &bfin_sport1_uart_device, |
@@ -355,7 +378,7 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
355 | 378 | ||
356 | static int __init cm_bf533_init(void) | 379 | static int __init cm_bf533_init(void) |
357 | { | 380 | { |
358 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); | 381 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
359 | platform_add_devices(cm_bf533_devices, ARRAY_SIZE(cm_bf533_devices)); | 382 | platform_add_devices(cm_bf533_devices, ARRAY_SIZE(cm_bf533_devices)); |
360 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 383 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
361 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 384 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |