diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:31:06 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:33 -0500 |
commit | c971ab0d9649d2bc0469da3c976297e91a3e2d35 (patch) | |
tree | 7d1bd2d2b6c9bc20c8b2a378cbd1b110c84d9004 /arch/arm/mach-h720x | |
parent | 413802b6c8114972d5a1520412e6241326882273 (diff) |
ARM: h720x: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-h720x')
-rw-r--r-- | arch/arm/mach-h720x/common.c | 38 | ||||
-rw-r--r-- | arch/arm/mach-h720x/cpu-h7202.c | 14 |
2 files changed, 26 insertions, 26 deletions
diff --git a/arch/arm/mach-h720x/common.c b/arch/arm/mach-h720x/common.c index bdb3f6706801..1f28c90932c7 100644 --- a/arch/arm/mach-h720x/common.c +++ b/arch/arm/mach-h720x/common.c | |||
@@ -52,17 +52,17 @@ unsigned long h720x_gettimeoffset(void) | |||
52 | /* | 52 | /* |
53 | * mask Global irq's | 53 | * mask Global irq's |
54 | */ | 54 | */ |
55 | static void mask_global_irq (unsigned int irq ) | 55 | static void mask_global_irq(struct irq_data *d) |
56 | { | 56 | { |
57 | CPU_REG (IRQC_VIRT, IRQC_IER) &= ~(1 << irq); | 57 | CPU_REG (IRQC_VIRT, IRQC_IER) &= ~(1 << d->irq); |
58 | } | 58 | } |
59 | 59 | ||
60 | /* | 60 | /* |
61 | * unmask Global irq's | 61 | * unmask Global irq's |
62 | */ | 62 | */ |
63 | static void unmask_global_irq (unsigned int irq ) | 63 | static void unmask_global_irq(struct irq_data *d) |
64 | { | 64 | { |
65 | CPU_REG (IRQC_VIRT, IRQC_IER) |= (1 << irq); | 65 | CPU_REG (IRQC_VIRT, IRQC_IER) |= (1 << d->irq); |
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | ||
@@ -70,10 +70,10 @@ static void unmask_global_irq (unsigned int irq ) | |||
70 | * ack GPIO irq's | 70 | * ack GPIO irq's |
71 | * Ack only for edge triggered int's valid | 71 | * Ack only for edge triggered int's valid |
72 | */ | 72 | */ |
73 | static void inline ack_gpio_irq(u32 irq) | 73 | static void inline ack_gpio_irq(struct irq_data *d) |
74 | { | 74 | { |
75 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq)); | 75 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(d->irq)); |
76 | u32 bit = IRQ_TO_BIT(irq); | 76 | u32 bit = IRQ_TO_BIT(d->irq); |
77 | if ( (CPU_REG (reg_base, GPIO_EDGE) & bit)) | 77 | if ( (CPU_REG (reg_base, GPIO_EDGE) & bit)) |
78 | CPU_REG (reg_base, GPIO_CLR) = bit; | 78 | CPU_REG (reg_base, GPIO_CLR) = bit; |
79 | } | 79 | } |
@@ -81,20 +81,20 @@ static void inline ack_gpio_irq(u32 irq) | |||
81 | /* | 81 | /* |
82 | * mask GPIO irq's | 82 | * mask GPIO irq's |
83 | */ | 83 | */ |
84 | static void inline mask_gpio_irq(u32 irq) | 84 | static void inline mask_gpio_irq(struct irq_data *d) |
85 | { | 85 | { |
86 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq)); | 86 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(d->irq)); |
87 | u32 bit = IRQ_TO_BIT(irq); | 87 | u32 bit = IRQ_TO_BIT(d->irq); |
88 | CPU_REG (reg_base, GPIO_MASK) &= ~bit; | 88 | CPU_REG (reg_base, GPIO_MASK) &= ~bit; |
89 | } | 89 | } |
90 | 90 | ||
91 | /* | 91 | /* |
92 | * unmask GPIO irq's | 92 | * unmask GPIO irq's |
93 | */ | 93 | */ |
94 | static void inline unmask_gpio_irq(u32 irq) | 94 | static void inline unmask_gpio_irq(struct irq_data *d) |
95 | { | 95 | { |
96 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq)); | 96 | u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(d->irq)); |
97 | u32 bit = IRQ_TO_BIT(irq); | 97 | u32 bit = IRQ_TO_BIT(d->irq); |
98 | CPU_REG (reg_base, GPIO_MASK) |= bit; | 98 | CPU_REG (reg_base, GPIO_MASK) |= bit; |
99 | } | 99 | } |
100 | 100 | ||
@@ -170,15 +170,15 @@ h720x_gpioe_demux_handler(unsigned int irq_unused, struct irq_desc *desc) | |||
170 | #endif | 170 | #endif |
171 | 171 | ||
172 | static struct irq_chip h720x_global_chip = { | 172 | static struct irq_chip h720x_global_chip = { |
173 | .ack = mask_global_irq, | 173 | .irq_ack = mask_global_irq, |
174 | .mask = mask_global_irq, | 174 | .irq_mask = mask_global_irq, |
175 | .unmask = unmask_global_irq, | 175 | .irq_unmask = unmask_global_irq, |
176 | }; | 176 | }; |
177 | 177 | ||
178 | static struct irq_chip h720x_gpio_chip = { | 178 | static struct irq_chip h720x_gpio_chip = { |
179 | .ack = ack_gpio_irq, | 179 | .irq_ack = ack_gpio_irq, |
180 | .mask = mask_gpio_irq, | 180 | .irq_mask = mask_gpio_irq, |
181 | .unmask = unmask_gpio_irq, | 181 | .irq_unmask = unmask_gpio_irq, |
182 | }; | 182 | }; |
183 | 183 | ||
184 | /* | 184 | /* |
diff --git a/arch/arm/mach-h720x/cpu-h7202.c b/arch/arm/mach-h720x/cpu-h7202.c index fd33a19c813a..ac3f91442376 100644 --- a/arch/arm/mach-h720x/cpu-h7202.c +++ b/arch/arm/mach-h720x/cpu-h7202.c | |||
@@ -141,27 +141,27 @@ h7202_timer_interrupt(int irq, void *dev_id) | |||
141 | /* | 141 | /* |
142 | * mask multiplexed timer IRQs | 142 | * mask multiplexed timer IRQs |
143 | */ | 143 | */ |
144 | static void inline mask_timerx_irq (u32 irq) | 144 | static void inline mask_timerx_irq(struct irq_data *d) |
145 | { | 145 | { |
146 | unsigned int bit; | 146 | unsigned int bit; |
147 | bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1)); | 147 | bit = 2 << ((d->irq == IRQ_TIMER64B) ? 4 : (d->irq - IRQ_TIMER1)); |
148 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit; | 148 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit; |
149 | } | 149 | } |
150 | 150 | ||
151 | /* | 151 | /* |
152 | * unmask multiplexed timer IRQs | 152 | * unmask multiplexed timer IRQs |
153 | */ | 153 | */ |
154 | static void inline unmask_timerx_irq (u32 irq) | 154 | static void inline unmask_timerx_irq(struct irq_data *d) |
155 | { | 155 | { |
156 | unsigned int bit; | 156 | unsigned int bit; |
157 | bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1)); | 157 | bit = 2 << ((d->irq == IRQ_TIMER64B) ? 4 : (d->irq - IRQ_TIMER1)); |
158 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit; | 158 | CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit; |
159 | } | 159 | } |
160 | 160 | ||
161 | static struct irq_chip h7202_timerx_chip = { | 161 | static struct irq_chip h7202_timerx_chip = { |
162 | .ack = mask_timerx_irq, | 162 | .irq_ack = mask_timerx_irq, |
163 | .mask = mask_timerx_irq, | 163 | .irq_mask = mask_timerx_irq, |
164 | .unmask = unmask_timerx_irq, | 164 | .irq_unmask = unmask_timerx_irq, |
165 | }; | 165 | }; |
166 | 166 | ||
167 | static struct irqaction h7202_timer_irq = { | 167 | static struct irqaction h7202_timer_irq = { |