diff options
author | Magnus Damm <damm@opensource.se> | 2010-02-09 01:50:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-09 04:24:30 -0500 |
commit | 3844eadcfd2ba975110e3ca8479efa8c093129ce (patch) | |
tree | 3b0a2b175a5ce2de05edaacd212a88377ccf6994 | |
parent | e3e80046e0ce2a595e607a62b650a9b4efea6558 (diff) |
sh: sh7724/Ecovec24/KFR2R09/MS7724SE SDHI vector merge
Merge the SDHI vectors in the sh7724 INTC table
and update the SDHI platform data for Ecovec24,
KFR2R09 and MS7724SE.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 32 |
4 files changed, 21 insertions, 21 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 1135c3b848f2..8e3b05f93a65 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -453,7 +453,7 @@ static struct resource sdhi0_resources[] = { | |||
453 | .flags = IORESOURCE_MEM, | 453 | .flags = IORESOURCE_MEM, |
454 | }, | 454 | }, |
455 | [1] = { | 455 | [1] = { |
456 | .start = 101, | 456 | .start = 100, |
457 | .flags = IORESOURCE_IRQ, | 457 | .flags = IORESOURCE_IRQ, |
458 | }, | 458 | }, |
459 | }; | 459 | }; |
@@ -489,7 +489,7 @@ static struct resource sdhi1_resources[] = { | |||
489 | .flags = IORESOURCE_MEM, | 489 | .flags = IORESOURCE_MEM, |
490 | }, | 490 | }, |
491 | [1] = { | 491 | [1] = { |
492 | .start = 24, | 492 | .start = 23, |
493 | .flags = IORESOURCE_IRQ, | 493 | .flags = IORESOURCE_IRQ, |
494 | }, | 494 | }, |
495 | }; | 495 | }; |
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index ca9e82d77d0a..b2cd0ed8664e 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c | |||
@@ -351,7 +351,7 @@ static struct resource kfr2r09_sh_sdhi0_resources[] = { | |||
351 | .flags = IORESOURCE_MEM, | 351 | .flags = IORESOURCE_MEM, |
352 | }, | 352 | }, |
353 | [1] = { | 353 | [1] = { |
354 | .start = 101, | 354 | .start = 100, |
355 | .flags = IORESOURCE_IRQ, | 355 | .flags = IORESOURCE_IRQ, |
356 | }, | 356 | }, |
357 | }; | 357 | }; |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index c7dbbece44b0..50e4d1599576 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -451,7 +451,7 @@ static struct resource sdhi0_cn7_resources[] = { | |||
451 | .flags = IORESOURCE_MEM, | 451 | .flags = IORESOURCE_MEM, |
452 | }, | 452 | }, |
453 | [1] = { | 453 | [1] = { |
454 | .start = 101, | 454 | .start = 100, |
455 | .flags = IORESOURCE_IRQ, | 455 | .flags = IORESOURCE_IRQ, |
456 | }, | 456 | }, |
457 | }; | 457 | }; |
@@ -474,7 +474,7 @@ static struct resource sdhi1_cn8_resources[] = { | |||
474 | .flags = IORESOURCE_MEM, | 474 | .flags = IORESOURCE_MEM, |
475 | }, | 475 | }, |
476 | [1] = { | 476 | [1] = { |
477 | .start = 24, | 477 | .start = 23, |
478 | .flags = IORESOURCE_IRQ, | 478 | .flags = IORESOURCE_IRQ, |
479 | }, | 479 | }, |
480 | }; | 480 | }; |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index aa0f6e9bb89e..c0815a43b6a3 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c | |||
@@ -723,6 +723,7 @@ void l2_cache_init(void) | |||
723 | 723 | ||
724 | enum { | 724 | enum { |
725 | UNUSED = 0, | 725 | UNUSED = 0, |
726 | ENABLED, | ||
726 | 727 | ||
727 | /* interrupt sources */ | 728 | /* interrupt sources */ |
728 | IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7, | 729 | IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7, |
@@ -751,14 +752,12 @@ enum { | |||
751 | ETHI, | 752 | ETHI, |
752 | I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI, | 753 | I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI, |
753 | I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI, | 754 | I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI, |
754 | SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2, SDHI0_SDHII3, | ||
755 | CMT, | 755 | CMT, |
756 | TSIF, | 756 | TSIF, |
757 | FSI, | 757 | FSI, |
758 | SCIFA5, | 758 | SCIFA5, |
759 | TMU0_TUNI0, TMU0_TUNI1, TMU0_TUNI2, | 759 | TMU0_TUNI0, TMU0_TUNI1, TMU0_TUNI2, |
760 | IRDA, | 760 | IRDA, |
761 | SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2, | ||
762 | JPU, | 761 | JPU, |
763 | _2DDMAC, | 762 | _2DDMAC, |
764 | MMC_MMC2I, MMC_MMC3I, | 763 | MMC_MMC2I, MMC_MMC3I, |
@@ -840,10 +839,10 @@ static struct intc_vect vectors[] __initdata = { | |||
840 | INTC_VECT(I2C0_WAITI, 0xE40), | 839 | INTC_VECT(I2C0_WAITI, 0xE40), |
841 | INTC_VECT(I2C0_DTEI, 0xE60), | 840 | INTC_VECT(I2C0_DTEI, 0xE60), |
842 | 841 | ||
843 | INTC_VECT(SDHI0_SDHII0, 0xE80), | 842 | INTC_VECT(SDHI0, 0xE80), |
844 | INTC_VECT(SDHI0_SDHII1, 0xEA0), | 843 | INTC_VECT(SDHI0, 0xEA0), |
845 | INTC_VECT(SDHI0_SDHII2, 0xEC0), | 844 | INTC_VECT(SDHI0, 0xEC0), |
846 | INTC_VECT(SDHI0_SDHII3, 0xEE0), | 845 | INTC_VECT(SDHI0, 0xEE0), |
847 | 846 | ||
848 | INTC_VECT(CMT, 0xF00), | 847 | INTC_VECT(CMT, 0xF00), |
849 | INTC_VECT(TSIF, 0xF20), | 848 | INTC_VECT(TSIF, 0xF20), |
@@ -856,9 +855,9 @@ static struct intc_vect vectors[] __initdata = { | |||
856 | 855 | ||
857 | INTC_VECT(IRDA, 0x480), | 856 | INTC_VECT(IRDA, 0x480), |
858 | 857 | ||
859 | INTC_VECT(SDHI1_SDHII0, 0x4E0), | 858 | INTC_VECT(SDHI1, 0x4E0), |
860 | INTC_VECT(SDHI1_SDHII1, 0x500), | 859 | INTC_VECT(SDHI1, 0x500), |
861 | INTC_VECT(SDHI1_SDHII2, 0x520), | 860 | INTC_VECT(SDHI1, 0x520), |
862 | 861 | ||
863 | INTC_VECT(JPU, 0x560), | 862 | INTC_VECT(JPU, 0x560), |
864 | INTC_VECT(_2DDMAC, 0x4A0), | 863 | INTC_VECT(_2DDMAC, 0x4A0), |
@@ -884,8 +883,6 @@ static struct intc_group groups[] __initdata = { | |||
884 | INTC_GROUP(DMAC0B, DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR), | 883 | INTC_GROUP(DMAC0B, DMAC0B_DEI4, DMAC0B_DEI5, DMAC0B_DADERR), |
885 | INTC_GROUP(I2C0, I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI), | 884 | INTC_GROUP(I2C0, I2C0_ALI, I2C0_TACKI, I2C0_WAITI, I2C0_DTEI), |
886 | INTC_GROUP(I2C1, I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI), | 885 | INTC_GROUP(I2C1, I2C1_ALI, I2C1_TACKI, I2C1_WAITI, I2C1_DTEI), |
887 | INTC_GROUP(SDHI0, SDHI0_SDHII0, SDHI0_SDHII1, SDHI0_SDHII2, SDHI0_SDHII3), | ||
888 | INTC_GROUP(SDHI1, SDHI1_SDHII0, SDHI1_SDHII1, SDHI1_SDHII2), | ||
889 | INTC_GROUP(SPU, SPU_SPUI0, SPU_SPUI1), | 886 | INTC_GROUP(SPU, SPU_SPUI0, SPU_SPUI1), |
890 | INTC_GROUP(MMCIF, MMC_MMC2I, MMC_MMC3I), | 887 | INTC_GROUP(MMCIF, MMC_MMC2I, MMC_MMC3I), |
891 | }; | 888 | }; |
@@ -893,7 +890,7 @@ static struct intc_group groups[] __initdata = { | |||
893 | static struct intc_mask_reg mask_registers[] __initdata = { | 890 | static struct intc_mask_reg mask_registers[] __initdata = { |
894 | { 0xa4080080, 0xa40800c0, 8, /* IMR0 / IMCR0 */ | 891 | { 0xa4080080, 0xa40800c0, 8, /* IMR0 / IMCR0 */ |
895 | { 0, TMU1_TUNI2, TMU1_TUNI1, TMU1_TUNI0, | 892 | { 0, TMU1_TUNI2, TMU1_TUNI1, TMU1_TUNI0, |
896 | 0, SDHI1_SDHII2, SDHI1_SDHII1, SDHI1_SDHII0 } }, | 893 | 0, 0, ENABLED, ENABLED } }, |
897 | { 0xa4080084, 0xa40800c4, 8, /* IMR1 / IMCR1 */ | 894 | { 0xa4080084, 0xa40800c4, 8, /* IMR1 / IMCR1 */ |
898 | { VIO_VOU, VIO_VEU1, VIO_BEU0, VIO_CEU0, | 895 | { VIO_VOU, VIO_VEU1, VIO_BEU0, VIO_CEU0, |
899 | DMAC0A_DEI3, DMAC0A_DEI2, DMAC0A_DEI1, DMAC0A_DEI0 } }, | 896 | DMAC0A_DEI3, DMAC0A_DEI2, DMAC0A_DEI1, DMAC0A_DEI0 } }, |
@@ -915,7 +912,7 @@ static struct intc_mask_reg mask_registers[] __initdata = { | |||
915 | { I2C0_DTEI, I2C0_WAITI, I2C0_TACKI, I2C0_ALI, | 912 | { I2C0_DTEI, I2C0_WAITI, I2C0_TACKI, I2C0_ALI, |
916 | I2C1_DTEI, I2C1_WAITI, I2C1_TACKI, I2C1_ALI } }, | 913 | I2C1_DTEI, I2C1_WAITI, I2C1_TACKI, I2C1_ALI } }, |
917 | { 0xa40800a0, 0xa40800e0, 8, /* IMR8 / IMCR8 */ | 914 | { 0xa40800a0, 0xa40800e0, 8, /* IMR8 / IMCR8 */ |
918 | { SDHI0_SDHII3, SDHI0_SDHII2, SDHI0_SDHII1, SDHI0_SDHII0, | 915 | { 0, 0, ENABLED, ENABLED, |
919 | 0, 0, SCIFA5, FSI } }, | 916 | 0, 0, SCIFA5, FSI } }, |
920 | { 0xa40800a4, 0xa40800e4, 8, /* IMR9 / IMCR9 */ | 917 | { 0xa40800a4, 0xa40800e4, 8, /* IMR9 / IMCR9 */ |
921 | { 0, 0, 0, CMT, 0, USB1, USB0, 0 } }, | 918 | { 0, 0, 0, CMT, 0, USB1, USB0, 0 } }, |
@@ -962,9 +959,12 @@ static struct intc_mask_reg ack_registers[] __initdata = { | |||
962 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, | 959 | { IRQ0, IRQ1, IRQ2, IRQ3, IRQ4, IRQ5, IRQ6, IRQ7 } }, |
963 | }; | 960 | }; |
964 | 961 | ||
965 | static DECLARE_INTC_DESC_ACK(intc_desc, "sh7724", vectors, groups, | 962 | static struct intc_desc intc_desc __initdata = { |
966 | mask_registers, prio_registers, sense_registers, | 963 | .name = "sh7724", |
967 | ack_registers); | 964 | .force_enable = ENABLED, |
965 | .hw = INTC_HW_DESC(vectors, groups, mask_registers, | ||
966 | prio_registers, sense_registers, ack_registers), | ||
967 | }; | ||
968 | 968 | ||
969 | void __init plat_irq_setup(void) | 969 | void __init plat_irq_setup(void) |
970 | { | 970 | { |