Changeset 12164


Ignore:
Timestamp:
2008-08-05T22:57:38+02:00 (10 years ago)
Author:
blogic
Message:

fixes reset button on atheros platform, ar5312 gpio_irqs will be added later

Location:
trunk/target/linux/atheros/files
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/files/arch/mips/atheros/Makefile

    r10724 r12164  
    99# 
    1010 
    11 obj-y += board.o prom.o reset.o gpio.o 
     11obj-y += board.o prom.o reset.o 
    1212obj-$(CONFIG_ATHEROS_AR5312) += ar5312/ 
    1313obj-$(CONFIG_ATHEROS_AR5315) += ar5315/ 
  • trunk/target/linux/atheros/files/arch/mips/atheros/ar5312/irq.c

    r10872 r12164  
    5656                } else if (ar531x_misc_intrs & AR531X_ISR_AHBPROC) 
    5757                        do_IRQ(AR531X_MISC_IRQ_AHB_PROC); 
    58                 else if (ar531x_misc_intrs & AR531X_ISR_GPIO) 
    59                         ar5312_gpio_irq_dispatch(); 
    6058                else if ((ar531x_misc_intrs & AR531X_ISR_UART0)) 
    6159                        do_IRQ(AR531X_MISC_IRQ_UART0); 
  • trunk/target/linux/atheros/files/arch/mips/atheros/reset.c

    r10872 r12164  
    1010#include <ar531x.h> 
    1111 
    12 #define AR531X_RESET_GPIO_IRQ   (AR531X_GPIO_IRQ_BASE + bcfg->resetConfigGpio) 
     12#define AR531X_RESET_GPIO_IRQ   (AR531X_GPIO_IRQ(bcfg->resetConfigGpio)) 
    1313 
    1414struct event_t { 
  • trunk/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h

    r10878 r12164  
    5555/* GPIO Interrupts [0..7], share AR531X_MISC_IRQ_GPIO */ 
    5656#define AR531X_GPIO_IRQ_NONE            AR531X_GPIO_IRQ_BASE+0 
    57 #define AR531X_GPIO_IRQ(n)              AR531X_GPIO_IRQ_BASE+(n)+1 
     57#define AR531X_GPIO_IRQ(n)              AR531X_GPIO_IRQ_BASE+n 
    5858#define AR531X_GPIO_IRQ_COUNT           22 
    5959 
Note: See TracChangeset for help on using the changeset viewer.