Commit 0364f754 authored by Deepak Saxena's avatar Deepak Saxena Committed by Russell King

[ARM PATCH] 2260/1: Rename IXP2000_IRQ_SWI to reduce user confusion

Patch from Lennert Buytenhek

IXP2000 interrupt source zero is a software-generated interrupt source,
but it is not an SWI in the ARM sense of the word.  Rename the interrupt
source to reduce any confusion.
  

Signed-off-by: Lennert Buytenhek
Signed-off-by: Deepak Saxena
Signed-off-by: Russell King
parent ac1e7b88
...@@ -352,7 +352,7 @@ void __init ixp2000_init_irq(void) ...@@ -352,7 +352,7 @@ void __init ixp2000_init_irq(void)
* we mark the reserved IRQs as invalid. This makes * we mark the reserved IRQs as invalid. This makes
* our mask/unmask code much simpler. * our mask/unmask code much simpler.
*/ */
for (irq = IRQ_IXP2000_SWI; irq <= IRQ_IXP2000_THDB3; irq++) { for (irq = IRQ_IXP2000_SOFT_INT; irq <= IRQ_IXP2000_THDB3; irq++) {
if((1 << irq) & IXP2000_VALID_IRQ_MASK) { if((1 << irq) & IXP2000_VALID_IRQ_MASK) {
set_irq_chip(irq, &ixp2000_irq_chip); set_irq_chip(irq, &ixp2000_irq_chip);
set_irq_handler(irq, do_level_IRQ); set_irq_handler(irq, do_level_IRQ);
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* shift operation instead of having to map the IRQ number to * shift operation instead of having to map the IRQ number to
* a HW IRQ number. * a HW IRQ number.
*/ */
#define IRQ_IXP2000_SWI 0 /* soft interrupt */ #define IRQ_IXP2000_SOFT_INT 0 /* soft interrupt */
#define IRQ_IXP2000_ERRSUM 1 /* OR of all bits in ErrorStatus reg*/ #define IRQ_IXP2000_ERRSUM 1 /* OR of all bits in ErrorStatus reg*/
#define IRQ_IXP2000_UART 2 #define IRQ_IXP2000_UART 2
#define IRQ_IXP2000_GPIO 3 #define IRQ_IXP2000_GPIO 3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment