Changeset 8971 for tags/kamikaze_7.09


Ignore:
Timestamp:
2007-09-23T02:37:04+02:00 (9 years ago)
Author:
blogic
Message:

added support for disabling atheros reset button to k7.09

Location:
tags/kamikaze_7.09/target/linux/atheros-2.6/files
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • tags/kamikaze_7.09/target/linux/atheros-2.6/files/arch/mips/atheros/reset.c

    r7871 r8971  
    1111#include "ar5315/ar5315.h" 
    1212 
     13#define AR531X_RESET_GPIO_IRQ   (AR531X_GPIO_IRQ_BASE + bcfg->resetConfigGpio) 
     14 
    1315struct event_t { 
    1416        struct work_struct wq; 
     
    1618        long int jiffies; 
    1719}; 
     20 
     21static struct ar531x_boarddata *bcfg; 
    1822 
    1923extern struct sock *uevent_sock; 
     
    9599} 
    96100 
     101void ar531x_disable_reset_button(void) 
     102{ 
     103        disable_irq(AR531X_RESET_GPIO_IRQ);      
     104} 
     105 
     106EXPORT_SYMBOL(ar531x_disable_reset_button); 
     107 
    97108int __init ar531x_init_reset(void) 
    98109{ 
    99         struct ar531x_boarddata *bcfg; 
    100110        bcfg = (struct ar531x_boarddata *) board_config; 
    101111 
    102112        seen = jiffies; 
    103         request_irq(AR531X_GPIO_IRQ_BASE + bcfg->resetConfigGpio, &button_handler, IRQF_SAMPLE_RANDOM, "ar531x_reset", NULL); 
     113         
     114        request_irq(AR531X_RESET_GPIO_IRQ, &button_handler, IRQF_SAMPLE_RANDOM, "ar531x_reset", NULL); 
    104115 
    105116        return 0; 
    106117} 
    107118 
     119 
     120 
    108121module_init(ar531x_init_reset); 
Note: See TracChangeset for help on using the changeset viewer.