Changeset 17526


Ignore:
Timestamp:
2009-09-06T15:54:17+02:00 (8 years ago)
Author:
florian
Message:

[brcm63xx] add infrastructure to register gpio-input reset button

Location:
trunk/target/linux/brcm63xx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c

    r17190 r17526  
    803803}; 
    804804 
     805struct gpio_buttons_platform_data bcm63xx_gpio_buttons_data = { 
     806        .poll_interval  = 20, 
     807}; 
     808 
     809struct platform_device bcm63xx_gpio_buttons_device = { 
     810        .name           = "gpio-buttons", 
     811        .id             = 0, 
     812        .dev.platform_data = &bcm63xx_gpio_buttons_data, 
     813}; 
     814 
     815 
    805816/* 
    806817 * third stage init callback, register all board devices. 
     
    870881        platform_device_register(&bcm63xx_gpio_leds); 
    871882 
     883        bcm63xx_gpio_buttons_data.nbuttons = 1, 
     884        bcm63xx_gpio_buttons_data.buttons = board.reset_btm; 
     885 
     886        platform_device_register(&bcm63xx_gpio_buttons); 
     887 
    872888        return 0; 
    873889} 
  • trunk/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/board_bcm963xx.h

    r16887 r17526  
    5757        /* GPIO LEDs */ 
    5858        struct gpio_led leds[5]; 
     59 
     60        /* Reset button */ 
     61        unsigned int    reset_btn; 
    5962}; 
    6063 
  • trunk/target/linux/brcm63xx/profiles/200-GW6X00.mk

    r16195 r17526  
    1111        kmod-fs-ext2 kmod-nls-cp437 kmod-nls-iso8859-1 kmod-fs-vfat \ 
    1212        kmod-loop e2fsprogs kmod-spi-bitbang kmod-bcm63xx-spi \ 
    13         kmod-ipt-nathelper-extra \ 
     13        kmod-ipt-nathelper-extra kmod-input-gpio-buttons \ 
    1414        wpa-supplicant iw 
    1515endef 
Note: See TracChangeset for help on using the changeset viewer.