diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 00:24:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 00:24:34 -0400 |
commit | f5bccdc09a259a121965cc1c9d1f8349452e1244 (patch) | |
tree | 89cdc4773c9490fead6a550784075b52f65c5251 | |
parent | 16e9515358b28c787a057dfe010e797a9067294a (diff) |
sh: sh7757 evt2irq migration.
Migrate SH7757 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c index c8836cffa216..20963086f9d6 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/dma-mapping.h> | 18 | #include <linux/dma-mapping.h> |
19 | #include <linux/sh_timer.h> | 19 | #include <linux/sh_timer.h> |
20 | #include <linux/sh_dma.h> | 20 | #include <linux/sh_dma.h> |
21 | 21 | #include <linux/sh_intc.h> | |
22 | #include <cpu/dma-register.h> | 22 | #include <cpu/dma-register.h> |
23 | #include <cpu/sh7757.h> | 23 | #include <cpu/sh7757.h> |
24 | 24 | ||
@@ -28,7 +28,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
28 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 28 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
29 | .scbrr_algo_id = SCBRR_ALGO_2, | 29 | .scbrr_algo_id = SCBRR_ALGO_2, |
30 | .type = PORT_SCIF, | 30 | .type = PORT_SCIF, |
31 | .irqs = { 40, 40, 40, 40 }, | 31 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x700)), |
32 | }; | 32 | }; |
33 | 33 | ||
34 | static struct platform_device scif2_device = { | 34 | static struct platform_device scif2_device = { |
@@ -45,7 +45,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
45 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 45 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
46 | .scbrr_algo_id = SCBRR_ALGO_2, | 46 | .scbrr_algo_id = SCBRR_ALGO_2, |
47 | .type = PORT_SCIF, | 47 | .type = PORT_SCIF, |
48 | .irqs = { 76, 76, 76, 76 }, | 48 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xb80)), |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static struct platform_device scif3_device = { | 51 | static struct platform_device scif3_device = { |
@@ -86,7 +86,7 @@ static struct resource tmu0_resources[] = { | |||
86 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
87 | }, | 87 | }, |
88 | [1] = { | 88 | [1] = { |
89 | .start = 28, | 89 | .start = evt2irq(0x580), |
90 | .flags = IORESOURCE_IRQ, | 90 | .flags = IORESOURCE_IRQ, |
91 | }, | 91 | }, |
92 | }; | 92 | }; |
@@ -114,7 +114,7 @@ static struct resource tmu1_resources[] = { | |||
114 | .flags = IORESOURCE_MEM, | 114 | .flags = IORESOURCE_MEM, |
115 | }, | 115 | }, |
116 | [1] = { | 116 | [1] = { |
117 | .start = 29, | 117 | .start = evt2irq(0x5a0), |
118 | .flags = IORESOURCE_IRQ, | 118 | .flags = IORESOURCE_IRQ, |
119 | }, | 119 | }, |
120 | }; | 120 | }; |
@@ -136,7 +136,7 @@ static struct resource spi0_resources[] = { | |||
136 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_32BIT, | 136 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_32BIT, |
137 | }, | 137 | }, |
138 | [1] = { | 138 | [1] = { |
139 | .start = 86, | 139 | .start = evt2irq(0xcc0), |
140 | .flags = IORESOURCE_IRQ, | 140 | .flags = IORESOURCE_IRQ, |
141 | }, | 141 | }, |
142 | }; | 142 | }; |
@@ -466,8 +466,8 @@ static struct resource sh7757_dmae0_resources[] = { | |||
466 | }, | 466 | }, |
467 | { | 467 | { |
468 | .name = "error_irq", | 468 | .name = "error_irq", |
469 | .start = 34, | 469 | .start = evt2irq(0x640), |
470 | .end = 34, | 470 | .end = evt2irq(0x640), |
471 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 471 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
472 | }, | 472 | }, |
473 | }; | 473 | }; |
@@ -488,56 +488,56 @@ static struct resource sh7757_dmae1_resources[] = { | |||
488 | }, | 488 | }, |
489 | { | 489 | { |
490 | .name = "error_irq", | 490 | .name = "error_irq", |
491 | .start = 34, | 491 | .start = evt2irq(0x640), |
492 | .end = 34, | 492 | .end = evt2irq(0x640), |
493 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 493 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
494 | }, | 494 | }, |
495 | { | 495 | { |
496 | /* IRQ for channels 4 */ | 496 | /* IRQ for channels 4 */ |
497 | .start = 46, | 497 | .start = evt2irq(0x7c0), |
498 | .end = 46, | 498 | .end = evt2irq(0x7c0), |
499 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 499 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
500 | }, | 500 | }, |
501 | { | 501 | { |
502 | /* IRQ for channels 5 */ | 502 | /* IRQ for channels 5 */ |
503 | .start = 46, | 503 | .start = evt2irq(0x7c0), |
504 | .end = 46, | 504 | .end = evt2irq(0x7c0), |
505 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 505 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
506 | }, | 506 | }, |
507 | { | 507 | { |
508 | /* IRQ for channels 6 */ | 508 | /* IRQ for channels 6 */ |
509 | .start = 88, | 509 | .start = evt2irq(0xd00), |
510 | .end = 88, | 510 | .end = evt2irq(0xd00), |
511 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 511 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
512 | }, | 512 | }, |
513 | { | 513 | { |
514 | /* IRQ for channels 7 */ | 514 | /* IRQ for channels 7 */ |
515 | .start = 88, | 515 | .start = evt2irq(0xd00), |
516 | .end = 88, | 516 | .end = evt2irq(0xd00), |
517 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 517 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
518 | }, | 518 | }, |
519 | { | 519 | { |
520 | /* IRQ for channels 8 */ | 520 | /* IRQ for channels 8 */ |
521 | .start = 88, | 521 | .start = evt2irq(0xd00), |
522 | .end = 88, | 522 | .end = evt2irq(0xd00), |
523 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 523 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
524 | }, | 524 | }, |
525 | { | 525 | { |
526 | /* IRQ for channels 9 */ | 526 | /* IRQ for channels 9 */ |
527 | .start = 88, | 527 | .start = evt2irq(0xd00), |
528 | .end = 88, | 528 | .end = evt2irq(0xd00), |
529 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 529 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
530 | }, | 530 | }, |
531 | { | 531 | { |
532 | /* IRQ for channels 10 */ | 532 | /* IRQ for channels 10 */ |
533 | .start = 88, | 533 | .start = evt2irq(0xd00), |
534 | .end = 88, | 534 | .end = evt2irq(0xd00), |
535 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 535 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
536 | }, | 536 | }, |
537 | { | 537 | { |
538 | /* IRQ for channels 11 */ | 538 | /* IRQ for channels 11 */ |
539 | .start = 88, | 539 | .start = evt2irq(0xd00), |
540 | .end = 88, | 540 | .end = evt2irq(0xd00), |
541 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, | 541 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_SHAREABLE, |
542 | }, | 542 | }, |
543 | }; | 543 | }; |
@@ -558,20 +558,20 @@ static struct resource sh7757_dmae2_resources[] = { | |||
558 | }, | 558 | }, |
559 | { | 559 | { |
560 | .name = "error_irq", | 560 | .name = "error_irq", |
561 | .start = 323, | 561 | .start = evt2irq(0x2a60), |
562 | .end = 323, | 562 | .end = evt2irq(0x2a60), |
563 | .flags = IORESOURCE_IRQ, | 563 | .flags = IORESOURCE_IRQ, |
564 | }, | 564 | }, |
565 | { | 565 | { |
566 | /* IRQ for channels 12 to 16 */ | 566 | /* IRQ for channels 12 to 16 */ |
567 | .start = 272, | 567 | .start = evt2irq(0x2400), |
568 | .end = 276, | 568 | .end = evt2irq(0x2480), |
569 | .flags = IORESOURCE_IRQ, | 569 | .flags = IORESOURCE_IRQ, |
570 | }, | 570 | }, |
571 | { | 571 | { |
572 | /* IRQ for channel 17 */ | 572 | /* IRQ for channel 17 */ |
573 | .start = 279, | 573 | .start = evt2irq(0x24e0), |
574 | .end = 279, | 574 | .end = evt2irq(0x24e0), |
575 | .flags = IORESOURCE_IRQ, | 575 | .flags = IORESOURCE_IRQ, |
576 | }, | 576 | }, |
577 | }; | 577 | }; |
@@ -592,20 +592,20 @@ static struct resource sh7757_dmae3_resources[] = { | |||
592 | }, | 592 | }, |
593 | { | 593 | { |
594 | .name = "error_irq", | 594 | .name = "error_irq", |
595 | .start = 324, | 595 | .start = evt2irq(0x2a80), |
596 | .end = 324, | 596 | .end = evt2irq(0x2a80), |
597 | .flags = IORESOURCE_IRQ, | 597 | .flags = IORESOURCE_IRQ, |
598 | }, | 598 | }, |
599 | { | 599 | { |
600 | /* IRQ for channels 18 to 22 */ | 600 | /* IRQ for channels 18 to 22 */ |
601 | .start = 280, | 601 | .start = evt2irq(0x2500), |
602 | .end = 284, | 602 | .end = evt2irq(0x2580), |
603 | .flags = IORESOURCE_IRQ, | 603 | .flags = IORESOURCE_IRQ, |
604 | }, | 604 | }, |
605 | { | 605 | { |
606 | /* IRQ for channel 23 */ | 606 | /* IRQ for channel 23 */ |
607 | .start = 288, | 607 | .start = evt2irq(0x2600), |
608 | .end = 288, | 608 | .end = evt2irq(0x2600), |
609 | .flags = IORESOURCE_IRQ, | 609 | .flags = IORESOURCE_IRQ, |
610 | }, | 610 | }, |
611 | }; | 611 | }; |
@@ -668,7 +668,7 @@ static struct resource spi1_resources[] = { | |||
668 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, | 668 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, |
669 | }, | 669 | }, |
670 | { | 670 | { |
671 | .start = 54, | 671 | .start = evt2irq(0x8c0), |
672 | .flags = IORESOURCE_IRQ, | 672 | .flags = IORESOURCE_IRQ, |
673 | }, | 673 | }, |
674 | }; | 674 | }; |
@@ -687,7 +687,7 @@ static struct resource rspi_resources[] = { | |||
687 | .flags = IORESOURCE_MEM, | 687 | .flags = IORESOURCE_MEM, |
688 | }, | 688 | }, |
689 | { | 689 | { |
690 | .start = 220, | 690 | .start = evt2irq(0x1d80), |
691 | .flags = IORESOURCE_IRQ, | 691 | .flags = IORESOURCE_IRQ, |
692 | }, | 692 | }, |
693 | }; | 693 | }; |
@@ -706,8 +706,8 @@ static struct resource usb_ehci_resources[] = { | |||
706 | .flags = IORESOURCE_MEM, | 706 | .flags = IORESOURCE_MEM, |
707 | }, | 707 | }, |
708 | [1] = { | 708 | [1] = { |
709 | .start = 57, | 709 | .start = evt2irq(0x920), |
710 | .end = 57, | 710 | .end = evt2irq(0x920), |
711 | .flags = IORESOURCE_IRQ, | 711 | .flags = IORESOURCE_IRQ, |
712 | }, | 712 | }, |
713 | }; | 713 | }; |
@@ -730,8 +730,8 @@ static struct resource usb_ohci_resources[] = { | |||
730 | .flags = IORESOURCE_MEM, | 730 | .flags = IORESOURCE_MEM, |
731 | }, | 731 | }, |
732 | [1] = { | 732 | [1] = { |
733 | .start = 57, | 733 | .start = evt2irq(0x920), |
734 | .end = 57, | 734 | .end = evt2irq(0x920), |
735 | .flags = IORESOURCE_IRQ, | 735 | .flags = IORESOURCE_IRQ, |
736 | }, | 736 | }, |
737 | }; | 737 | }; |