diff options
author | Magnus Damm <damm@igel.co.jp> | 2007-08-16 11:45:35 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:57:50 -0400 |
commit | 5c37e025352b993d8726b0207ff2270b2f2bc7d6 (patch) | |
tree | 87463d1c79600c37d3df06cbdbdf14bdc6de5094 /arch/sh/kernel/cpu/sh4/setup-sh7760.c | |
parent | 46420e49c9fd76defecfb3f048ab20c5a72dfd0a (diff) |
sh: intc - mark data structures as __initdata
With the intc core improved it is now possible to put the intc data
structures in the initdata section.
Version two of this patch puts the __initdata inside DECLARE_INTC_DESC()
and removes the __initdata included in the board specific r2d code.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/setup-sh7760.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7760.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index 6b4e48cbe7ff..7a898cb1d940 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -43,7 +43,7 @@ enum { | |||
43 | DMAC, DMABRG, SCIF0, SCIF1, SCIF2, SIM, MMCIF, TMU2, REF, | 43 | DMAC, DMABRG, SCIF0, SCIF1, SCIF2, SIM, MMCIF, TMU2, REF, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static struct intc_vect vectors[] = { | 46 | static struct intc_vect vectors[] __initdata = { |
47 | INTC_VECT(HUDI, 0x600), INTC_VECT(GPIOI, 0x620), | 47 | INTC_VECT(HUDI, 0x600), INTC_VECT(GPIOI, 0x620), |
48 | INTC_VECT(DMAC_DMTE0, 0x640), INTC_VECT(DMAC_DMTE1, 0x660), | 48 | INTC_VECT(DMAC_DMTE0, 0x640), INTC_VECT(DMAC_DMTE1, 0x660), |
49 | INTC_VECT(DMAC_DMTE2, 0x680), INTC_VECT(DMAC_DMTE3, 0x6a0), | 49 | INTC_VECT(DMAC_DMTE2, 0x680), INTC_VECT(DMAC_DMTE3, 0x6a0), |
@@ -78,7 +78,7 @@ static struct intc_vect vectors[] = { | |||
78 | INTC_VECT(REF_RCMI, 0x580), INTC_VECT(REF_ROVI, 0x5a0), | 78 | INTC_VECT(REF_RCMI, 0x580), INTC_VECT(REF_ROVI, 0x5a0), |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static struct intc_group groups[] = { | 81 | static struct intc_group groups[] __initdata = { |
82 | INTC_GROUP(DMAC, DMAC_DMTE0, DMAC_DMTE1, DMAC_DMTE2, | 82 | INTC_GROUP(DMAC, DMAC_DMTE0, DMAC_DMTE1, DMAC_DMTE2, |
83 | DMAC_DMTE3, DMAC_DMTE4, DMAC_DMTE5, | 83 | DMAC_DMTE3, DMAC_DMTE4, DMAC_DMTE5, |
84 | DMAC_DMTE6, DMAC_DMTE7, DMAC_DMAE), | 84 | DMAC_DMTE6, DMAC_DMTE7, DMAC_DMAE), |
@@ -92,7 +92,7 @@ static struct intc_group groups[] = { | |||
92 | INTC_GROUP(REF, REF_RCMI, REF_ROVI), | 92 | INTC_GROUP(REF, REF_RCMI, REF_ROVI), |
93 | }; | 93 | }; |
94 | 94 | ||
95 | static struct intc_prio priorities[] = { | 95 | static struct intc_prio priorities[] __initdata = { |
96 | INTC_PRIO(SCIF0, 3), | 96 | INTC_PRIO(SCIF0, 3), |
97 | INTC_PRIO(SCIF1, 3), | 97 | INTC_PRIO(SCIF1, 3), |
98 | INTC_PRIO(SCIF2, 3), | 98 | INTC_PRIO(SCIF2, 3), |
@@ -101,7 +101,7 @@ static struct intc_prio priorities[] = { | |||
101 | INTC_PRIO(DMABRG, 13), | 101 | INTC_PRIO(DMABRG, 13), |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static struct intc_mask_reg mask_registers[] = { | 104 | static struct intc_mask_reg mask_registers[] __initdata = { |
105 | { 0xfe080040, 0xfe080060, 32, /* INTMSK00 / INTMSKCLR00 */ | 105 | { 0xfe080040, 0xfe080060, 32, /* INTMSK00 / INTMSKCLR00 */ |
106 | { IRQ4, IRQ5, IRQ6, IRQ7, 0, 0, HCAN20, HCAN21, | 106 | { IRQ4, IRQ5, IRQ6, IRQ7, 0, 0, HCAN20, HCAN21, |
107 | SSI0, SSI1, HAC0, HAC1, I2C0, I2C1, USB, LCDC, | 107 | SSI0, SSI1, HAC0, HAC1, I2C0, I2C1, USB, LCDC, |
@@ -117,7 +117,7 @@ static struct intc_mask_reg mask_registers[] = { | |||
117 | 0, MFI, 0, 0, 0, 0, ADC, CMT, } }, | 117 | 0, MFI, 0, 0, 0, 0, ADC, CMT, } }, |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static struct intc_prio_reg prio_registers[] = { | 120 | static struct intc_prio_reg prio_registers[] __initdata = { |
121 | { 0xffd00004, 0, 16, 4, /* IPRA */ { TMU0, TMU1, TMU2 } }, | 121 | { 0xffd00004, 0, 16, 4, /* IPRA */ { TMU0, TMU1, TMU2 } }, |
122 | { 0xffd00008, 0, 16, 4, /* IPRB */ { WDT, REF, 0, 0 } }, | 122 | { 0xffd00008, 0, 16, 4, /* IPRB */ { WDT, REF, 0, 0 } }, |
123 | { 0xffd0000c, 0, 16, 4, /* IPRC */ { GPIOI, DMAC, 0, HUDI } }, | 123 | { 0xffd0000c, 0, 16, 4, /* IPRC */ { GPIOI, DMAC, 0, HUDI } }, |
@@ -134,7 +134,7 @@ static struct intc_prio_reg prio_registers[] = { | |||
134 | static DECLARE_INTC_DESC(intc_desc, "sh7760", vectors, groups, | 134 | static DECLARE_INTC_DESC(intc_desc, "sh7760", vectors, groups, |
135 | priorities, mask_registers, prio_registers, NULL); | 135 | priorities, mask_registers, prio_registers, NULL); |
136 | 136 | ||
137 | static struct intc_vect vectors_irq[] = { | 137 | static struct intc_vect vectors_irq[] __initdata = { |
138 | INTC_VECT(IRL0, 0x240), INTC_VECT(IRL1, 0x2a0), | 138 | INTC_VECT(IRL0, 0x240), INTC_VECT(IRL1, 0x2a0), |
139 | INTC_VECT(IRL2, 0x300), INTC_VECT(IRL3, 0x360), | 139 | INTC_VECT(IRL2, 0x300), INTC_VECT(IRL3, 0x360), |
140 | }; | 140 | }; |