diff options
Diffstat (limited to 'arch/blackfin/mach-bf533/boards/cm_bf533.c')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/cm_bf533.c | 52 |
1 files changed, 3 insertions, 49 deletions
diff --git a/arch/blackfin/mach-bf533/boards/cm_bf533.c b/arch/blackfin/mach-bf533/boards/cm_bf533.c index ed2b0b8f5dc9..575843f6d9ef 100644 --- a/arch/blackfin/mach-bf533/boards/cm_bf533.c +++ b/arch/blackfin/mach-bf533/boards/cm_bf533.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) | 36 | #if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE) |
37 | #include <linux/usb/isp1362.h> | 37 | #include <linux/usb/isp1362.h> |
38 | #endif | 38 | #endif |
39 | #include <linux/ata_platform.h> | ||
40 | #include <linux/irq.h> | 39 | #include <linux/irq.h> |
41 | #include <asm/dma.h> | 40 | #include <asm/dma.h> |
42 | #include <asm/bfin5xx_spi.h> | 41 | #include <asm/bfin5xx_spi.h> |
@@ -53,16 +52,16 @@ const char bfin_board_name[] = "Bluetechnix CM BF533"; | |||
53 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) | 52 | #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) |
54 | static struct mtd_partition bfin_spi_flash_partitions[] = { | 53 | static struct mtd_partition bfin_spi_flash_partitions[] = { |
55 | { | 54 | { |
56 | .name = "bootloader", | 55 | .name = "bootloader(spi)", |
57 | .size = 0x00020000, | 56 | .size = 0x00020000, |
58 | .offset = 0, | 57 | .offset = 0, |
59 | .mask_flags = MTD_CAP_ROM | 58 | .mask_flags = MTD_CAP_ROM |
60 | }, { | 59 | }, { |
61 | .name = "kernel", | 60 | .name = "linux kernel(spi)", |
62 | .size = 0xe0000, | 61 | .size = 0xe0000, |
63 | .offset = 0x20000 | 62 | .offset = 0x20000 |
64 | }, { | 63 | }, { |
65 | .name = "file system", | 64 | .name = "file system(spi)", |
66 | .size = 0x700000, | 65 | .size = 0x700000, |
67 | .offset = 0x00100000, | 66 | .offset = 0x00100000, |
68 | } | 67 | } |
@@ -307,43 +306,6 @@ static struct platform_device isp1362_hcd_device = { | |||
307 | }; | 306 | }; |
308 | #endif | 307 | #endif |
309 | 308 | ||
310 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
311 | #define PATA_INT 38 | ||
312 | |||
313 | static struct pata_platform_info bfin_pata_platform_data = { | ||
314 | .ioport_shift = 2, | ||
315 | .irq_type = IRQF_TRIGGER_HIGH | IRQF_DISABLED, | ||
316 | }; | ||
317 | |||
318 | static struct resource bfin_pata_resources[] = { | ||
319 | { | ||
320 | .start = 0x2030C000, | ||
321 | .end = 0x2030C01F, | ||
322 | .flags = IORESOURCE_MEM, | ||
323 | }, | ||
324 | { | ||
325 | .start = 0x2030D018, | ||
326 | .end = 0x2030D01B, | ||
327 | .flags = IORESOURCE_MEM, | ||
328 | }, | ||
329 | { | ||
330 | .start = PATA_INT, | ||
331 | .end = PATA_INT, | ||
332 | .flags = IORESOURCE_IRQ, | ||
333 | }, | ||
334 | }; | ||
335 | |||
336 | static struct platform_device bfin_pata_device = { | ||
337 | .name = "pata_platform", | ||
338 | .id = -1, | ||
339 | .num_resources = ARRAY_SIZE(bfin_pata_resources), | ||
340 | .resource = bfin_pata_resources, | ||
341 | .dev = { | ||
342 | .platform_data = &bfin_pata_platform_data, | ||
343 | } | ||
344 | }; | ||
345 | #endif | ||
346 | |||
347 | static const unsigned int cclk_vlev_datasheet[] = | 309 | static const unsigned int cclk_vlev_datasheet[] = |
348 | { | 310 | { |
349 | VRPAIR(VLEV_085, 250000000), | 311 | VRPAIR(VLEV_085, 250000000), |
@@ -403,10 +365,6 @@ static struct platform_device *cm_bf533_devices[] __initdata = { | |||
403 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 365 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
404 | &bfin_spi0_device, | 366 | &bfin_spi0_device, |
405 | #endif | 367 | #endif |
406 | |||
407 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
408 | &bfin_pata_device, | ||
409 | #endif | ||
410 | }; | 368 | }; |
411 | 369 | ||
412 | static int __init cm_bf533_init(void) | 370 | static int __init cm_bf533_init(void) |
@@ -416,10 +374,6 @@ static int __init cm_bf533_init(void) | |||
416 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 374 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
417 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); | 375 | spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); |
418 | #endif | 376 | #endif |
419 | |||
420 | #if defined(CONFIG_PATA_PLATFORM) || defined(CONFIG_PATA_PLATFORM_MODULE) | ||
421 | irq_desc[PATA_INT].status |= IRQ_NOAUTOEN; | ||
422 | #endif | ||
423 | return 0; | 377 | return 0; |
424 | } | 378 | } |
425 | 379 | ||