Changeset 9788


Ignore:
Timestamp:
2007-12-17T16:45:16+01:00 (8 years ago)
Author:
juhosg
Message:

[adm5120] fix level setup code for GPIO IRQs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/irq.c

    r9700 r9788  
    110110                mode = INTC_READ(INTC_REG_INT_MODE); 
    111111                if (sense == IRQ_TYPE_LEVEL_LOW) 
    112                         mode |= (1 << (irq-ADM5120_INTC_IRQ_BASE)); 
     112                        mode |= (1 << (3 + irq - ADM5120_IRQ_GPIO2)); 
    113113                else 
    114                         mode &= (1 << (irq-ADM5120_INTC_IRQ_BASE)); 
     114                        mode &= (1 << (3 + irq - ADM5120_IRQ_GPIO2)); 
    115115 
    116116                INTC_WRITE(INTC_REG_INT_MODE, mode); 
Note: See TracChangeset for help on using the changeset viewer.