diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/include/asm/m5249sim.h | 34 | ||||
-rw-r--r-- | arch/m68k/platform/coldfire/intc-5249.c | 10 | ||||
-rw-r--r-- | arch/m68k/platform/coldfire/m5249.c | 8 |
3 files changed, 26 insertions, 26 deletions
diff --git a/arch/m68k/include/asm/m5249sim.h b/arch/m68k/include/asm/m5249sim.h index 3d9c7d739829..fdf45e6807c9 100644 --- a/arch/m68k/include/asm/m5249sim.h +++ b/arch/m68k/include/asm/m5249sim.h | |||
@@ -134,23 +134,23 @@ | |||
134 | #define MCFSIM2_GPIO1ENABLE (MCF_MBAR2 + 0x0B8) /* GPIO1 enabled */ | 134 | #define MCFSIM2_GPIO1ENABLE (MCF_MBAR2 + 0x0B8) /* GPIO1 enabled */ |
135 | #define MCFSIM2_GPIO1FUNC (MCF_MBAR2 + 0x0BC) /* GPIO1 function */ | 135 | #define MCFSIM2_GPIO1FUNC (MCF_MBAR2 + 0x0BC) /* GPIO1 function */ |
136 | 136 | ||
137 | #define MCFSIM2_GPIOINTSTAT 0xc0 /* GPIO interrupt status */ | 137 | #define MCFSIM2_GPIOINTSTAT (MCF_MBAR2 + 0xc0) /* GPIO intr status */ |
138 | #define MCFSIM2_GPIOINTCLEAR 0xc0 /* GPIO interrupt clear */ | 138 | #define MCFSIM2_GPIOINTCLEAR (MCF_MBAR2 + 0xc0) /* GPIO intr clear */ |
139 | #define MCFSIM2_GPIOINTENABLE 0xc4 /* GPIO interrupt enable */ | 139 | #define MCFSIM2_GPIOINTENABLE (MCF_MBAR2 + 0xc4) /* GPIO intr enable */ |
140 | 140 | ||
141 | #define MCFSIM2_INTLEVEL1 0x140 /* Interrupt level reg 1 */ | 141 | #define MCFSIM2_INTLEVEL1 (MCF_MBAR2 + 0x140) /* Intr level reg 1 */ |
142 | #define MCFSIM2_INTLEVEL2 0x144 /* Interrupt level reg 2 */ | 142 | #define MCFSIM2_INTLEVEL2 (MCF_MBAR2 + 0x144) /* Intr level reg 2 */ |
143 | #define MCFSIM2_INTLEVEL3 0x148 /* Interrupt level reg 3 */ | 143 | #define MCFSIM2_INTLEVEL3 (MCF_MBAR2 + 0x148) /* Intr level reg 3 */ |
144 | #define MCFSIM2_INTLEVEL4 0x14c /* Interrupt level reg 4 */ | 144 | #define MCFSIM2_INTLEVEL4 (MCF_MBAR2 + 0x14c) /* Intr level reg 4 */ |
145 | #define MCFSIM2_INTLEVEL5 0x150 /* Interrupt level reg 5 */ | 145 | #define MCFSIM2_INTLEVEL5 (MCF_MBAR2 + 0x150) /* Intr level reg 5 */ |
146 | #define MCFSIM2_INTLEVEL6 0x154 /* Interrupt level reg 6 */ | 146 | #define MCFSIM2_INTLEVEL6 (MCF_MBAR2 + 0x154) /* Intr level reg 6 */ |
147 | #define MCFSIM2_INTLEVEL7 0x158 /* Interrupt level reg 7 */ | 147 | #define MCFSIM2_INTLEVEL7 (MCF_MBAR2 + 0x158) /* Intr level reg 7 */ |
148 | #define MCFSIM2_INTLEVEL8 0x15c /* Interrupt level reg 8 */ | 148 | #define MCFSIM2_INTLEVEL8 (MCF_MBAR2 + 0x15c) /* Intr level reg 8 */ |
149 | 149 | ||
150 | #define MCFSIM2_DMAROUTE 0x188 /* DMA routing */ | 150 | #define MCFSIM2_DMAROUTE (MCF_MBAR2 + 0x188) /* DMA routing */ |
151 | 151 | ||
152 | #define MCFSIM2_IDECONFIG1 0x18c /* IDEconfig1 */ | 152 | #define MCFSIM2_IDECONFIG1 (MCF_MBAR2 + 0x18c) /* IDEconfig1 */ |
153 | #define MCFSIM2_IDECONFIG2 0x190 /* IDEconfig2 */ | 153 | #define MCFSIM2_IDECONFIG2 (MCF_MBAR2 + 0x190) /* IDEconfig2 */ |
154 | 154 | ||
155 | /* | 155 | /* |
156 | * Define the base interrupt for the second interrupt controller. | 156 | * Define the base interrupt for the second interrupt controller. |
diff --git a/arch/m68k/platform/coldfire/intc-5249.c b/arch/m68k/platform/coldfire/intc-5249.c index f343bf7bf5b0..0864b836699a 100644 --- a/arch/m68k/platform/coldfire/intc-5249.c +++ b/arch/m68k/platform/coldfire/intc-5249.c | |||
@@ -20,22 +20,22 @@ | |||
20 | static void intc2_irq_gpio_mask(struct irq_data *d) | 20 | static void intc2_irq_gpio_mask(struct irq_data *d) |
21 | { | 21 | { |
22 | u32 imr; | 22 | u32 imr; |
23 | imr = readl(MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 23 | imr = readl(MCFSIM2_GPIOINTENABLE); |
24 | imr &= ~(0x1 << (d->irq - MCFINTC2_GPIOIRQ0)); | 24 | imr &= ~(0x1 << (d->irq - MCFINTC2_GPIOIRQ0)); |
25 | writel(imr, MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 25 | writel(imr, MCFSIM2_GPIOINTENABLE); |
26 | } | 26 | } |
27 | 27 | ||
28 | static void intc2_irq_gpio_unmask(struct irq_data *d) | 28 | static void intc2_irq_gpio_unmask(struct irq_data *d) |
29 | { | 29 | { |
30 | u32 imr; | 30 | u32 imr; |
31 | imr = readl(MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 31 | imr = readl(MCFSIM2_GPIOINTENABLE); |
32 | imr |= (0x1 << (d->irq - MCFINTC2_GPIOIRQ0)); | 32 | imr |= (0x1 << (d->irq - MCFINTC2_GPIOIRQ0)); |
33 | writel(imr, MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 33 | writel(imr, MCFSIM2_GPIOINTENABLE); |
34 | } | 34 | } |
35 | 35 | ||
36 | static void intc2_irq_gpio_ack(struct irq_data *d) | 36 | static void intc2_irq_gpio_ack(struct irq_data *d) |
37 | { | 37 | { |
38 | writel(0x1 << (d->irq - MCFINTC2_GPIOIRQ0), MCF_MBAR2 + MCFSIM2_GPIOINTCLEAR); | 38 | writel(0x1 << (d->irq - MCFINTC2_GPIOIRQ0), MCFSIM2_GPIOINTCLEAR); |
39 | } | 39 | } |
40 | 40 | ||
41 | static struct irq_chip intc2_irq_gpio_chip = { | 41 | static struct irq_chip intc2_irq_gpio_chip = { |
diff --git a/arch/m68k/platform/coldfire/m5249.c b/arch/m68k/platform/coldfire/m5249.c index df2968d67357..23b19cb7ab50 100644 --- a/arch/m68k/platform/coldfire/m5249.c +++ b/arch/m68k/platform/coldfire/m5249.c | |||
@@ -72,11 +72,11 @@ static void __init m5249_smc91x_init(void) | |||
72 | u32 gpio; | 72 | u32 gpio; |
73 | 73 | ||
74 | /* Set the GPIO line as interrupt source for smc91x device */ | 74 | /* Set the GPIO line as interrupt source for smc91x device */ |
75 | gpio = readl(MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 75 | gpio = readl(MCFSIM2_GPIOINTENABLE); |
76 | writel(gpio | 0x40, MCF_MBAR2 + MCFSIM2_GPIOINTENABLE); | 76 | writel(gpio | 0x40, MCFSIM2_GPIOINTENABLE); |
77 | 77 | ||
78 | gpio = readl(MCF_MBAR2 + MCFSIM2_INTLEVEL5); | 78 | gpio = readl(MCFSIM2_INTLEVEL5); |
79 | writel(gpio | 0x04000000, MCF_MBAR2 + MCFSIM2_INTLEVEL5); | 79 | writel(gpio | 0x04000000, MCFSIM2_INTLEVEL5); |
80 | } | 80 | } |
81 | 81 | ||
82 | #endif /* CONFIG_M5249C3 */ | 82 | #endif /* CONFIG_M5249C3 */ |