X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm63xx%2Fpatches-3.10%2F300-reset_buttons.patch;h=c64d40549674cc483892560f0838ab785d031a2a;hb=d0ad8c00b6cc0716feae5d12c2ae5b4717c4ac29;hp=fcd3c52ecd5962ccbafa20ff6df6e025aefa4ba6;hpb=7ef37c8e3e5a787f91581fa78b527d78b5e0dc1c;p=oweals%2Fopenwrt.git diff --git a/target/linux/brcm63xx/patches-3.10/300-reset_buttons.patch b/target/linux/brcm63xx/patches-3.10/300-reset_buttons.patch index fcd3c52ecd..c64d405496 100644 --- a/target/linux/brcm63xx/patches-3.10/300-reset_buttons.patch +++ b/target/linux/brcm63xx/patches-3.10/300-reset_buttons.patch @@ -1,25 +1,25 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -12,6 +12,8 @@ +@@ -10,6 +10,8 @@ + #include + #include #include - #include - #include +#include +#include #include #include #include -@@ -36,6 +38,9 @@ +@@ -26,6 +28,9 @@ #define HCS_OFFSET_128K 0x20000 +#define BCM963XX_KEYS_POLL_INTERVAL 20 +#define BCM963XX_KEYS_DEBOUNCE_INTERVAL (BCM963XX_KEYS_POLL_INTERVAL * 3) + - static struct board_info board; - /* -@@ -379,6 +384,16 @@ static struct board_info __initdata boar + * known 3368 boards + */ +@@ -367,6 +372,16 @@ static struct board_info __initdata boar .active_low = 1, }, }, @@ -36,7 +36,7 @@ }; static struct board_info __initdata board_96348gw = { -@@ -437,6 +452,16 @@ static struct board_info __initdata boar +@@ -425,6 +440,16 @@ static struct board_info __initdata boar .active_low = 1, }, }, @@ -53,7 +53,26 @@ }; static struct board_info __initdata board_FAST2404 = { -@@ -870,11 +895,23 @@ static struct platform_device bcm63xx_gp +--- a/arch/mips/bcm63xx/boards/board_common.c ++++ b/arch/mips/bcm63xx/boards/board_common.c +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -32,6 +33,8 @@ + + #define PFX "board: " + ++#define BCM963XX_KEYS_POLL_INTERVAL 20 ++ + static struct board_info board; + + /* +@@ -151,11 +154,23 @@ static struct platform_device bcm63xx_gp .dev.platform_data = &bcm63xx_led_data, }; @@ -77,7 +96,7 @@ if (board.has_uart0) bcm63xx_uart_register(0); -@@ -934,5 +971,16 @@ int __init board_register_devices(void) +@@ -217,5 +232,16 @@ int __init board_register_devices(void) gpio_request_one(board.ephy_reset_gpio, board.ephy_reset_gpio_flags, "ephy-reset");