diff options
Diffstat (limited to 'arch/blackfin/mach-bf561/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/ezkit.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c index d357f648d963..0d74b7d99209 100644 --- a/arch/blackfin/mach-bf561/boards/ezkit.c +++ b/arch/blackfin/mach-bf561/boards/ezkit.c | |||
@@ -78,7 +78,7 @@ int __init bfin_isp1761_init(void) | |||
78 | { | 78 | { |
79 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); | 79 | unsigned int num_devices = ARRAY_SIZE(bfin_isp1761_devices); |
80 | 80 | ||
81 | printk(KERN_INFO "%s(): registering device resources\n", __FUNCTION__); | 81 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
82 | set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING); | 82 | set_irq_type(ISP1761_IRQ, IRQF_TRIGGER_FALLING); |
83 | 83 | ||
84 | return platform_add_devices(bfin_isp1761_devices, num_devices); | 84 | return platform_add_devices(bfin_isp1761_devices, num_devices); |
@@ -220,6 +220,26 @@ static struct platform_device bfin_uart_device = { | |||
220 | }; | 220 | }; |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
224 | static struct resource bfin_sir_resources[] = { | ||
225 | #ifdef CONFIG_BFIN_SIR0 | ||
226 | { | ||
227 | .start = 0xFFC00400, | ||
228 | .end = 0xFFC004FF, | ||
229 | .flags = IORESOURCE_MEM, | ||
230 | }, | ||
231 | #endif | ||
232 | }; | ||
233 | |||
234 | static struct platform_device bfin_sir_device = { | ||
235 | .name = "bfin_sir", | ||
236 | .id = 0, | ||
237 | .num_resources = ARRAY_SIZE(bfin_sir_resources), | ||
238 | .resource = bfin_sir_resources, | ||
239 | }; | ||
240 | #endif | ||
241 | |||
242 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
223 | static struct mtd_partition ezkit_partitions[] = { | 243 | static struct mtd_partition ezkit_partitions[] = { |
224 | { | 244 | { |
225 | .name = "Bootloader", | 245 | .name = "Bootloader", |
@@ -227,7 +247,7 @@ static struct mtd_partition ezkit_partitions[] = { | |||
227 | .offset = 0, | 247 | .offset = 0, |
228 | }, { | 248 | }, { |
229 | .name = "Kernel", | 249 | .name = "Kernel", |
230 | .size = 0xE0000, | 250 | .size = 0x1C0000, |
231 | .offset = MTDPART_OFS_APPEND, | 251 | .offset = MTDPART_OFS_APPEND, |
232 | }, { | 252 | }, { |
233 | .name = "RootFS", | 253 | .name = "RootFS", |
@@ -257,6 +277,7 @@ static struct platform_device ezkit_flash_device = { | |||
257 | .num_resources = 1, | 277 | .num_resources = 1, |
258 | .resource = &ezkit_flash_resource, | 278 | .resource = &ezkit_flash_resource, |
259 | }; | 279 | }; |
280 | #endif | ||
260 | 281 | ||
261 | #ifdef CONFIG_SPI_BFIN | 282 | #ifdef CONFIG_SPI_BFIN |
262 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ | 283 | #if defined(CONFIG_SND_BLACKFIN_AD1836) \ |
@@ -443,6 +464,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
443 | &bfin_uart_device, | 464 | &bfin_uart_device, |
444 | #endif | 465 | #endif |
445 | 466 | ||
467 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | ||
468 | &bfin_sir_device, | ||
469 | #endif | ||
470 | |||
446 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | 471 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) |
447 | &bfin_pata_device, | 472 | &bfin_pata_device, |
448 | #endif | 473 | #endif |
@@ -460,7 +485,10 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
460 | #endif | 485 | #endif |
461 | 486 | ||
462 | &bfin_gpios_device, | 487 | &bfin_gpios_device, |
488 | |||
489 | #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE) | ||
463 | &ezkit_flash_device, | 490 | &ezkit_flash_device, |
491 | #endif | ||
464 | }; | 492 | }; |
465 | 493 | ||
466 | static int __init ezkit_init(void) | 494 | static int __init ezkit_init(void) |