diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-04-17 08:12:00 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-04-17 08:12:00 +0000 |
commit | 9c02b23a776e4e502574eaecfde4bb5030de3350 (patch) | |
tree | c79c891a42f7f89b92f23d9479cbc1943ecaaa01 /target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch | |
parent | 9e03c362595a569f343282592994a9c6dc5aff84 (diff) | |
download | mtk-20170518-9c02b23a776e4e502574eaecfde4bb5030de3350.zip mtk-20170518-9c02b23a776e4e502574eaecfde4bb5030de3350.tar.gz mtk-20170518-9c02b23a776e4e502574eaecfde4bb5030de3350.tar.bz2 |
brcm47xx: add buttons support for WRT310N v2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45474
Diffstat (limited to 'target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch b/target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch index 725afa8..e08f5a9 100644 --- a/target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch +++ b/target/linux/brcm47xx/patches-3.18/320-MIPS-BCM47XX-Devices-database-update-for-4.x.patch @@ -10,10 +10,16 @@ {{BCM47XX_BOARD_LINKSYS_WRT610NV2, "Linksys WRT610N V2"}, "WRT610N", "2.0"}, --- a/arch/mips/bcm47xx/buttons.c +++ b/arch/mips/bcm47xx/buttons.c -@@ -270,6 +270,12 @@ bcm47xx_buttons_linksys_wrt310nv1[] __in +@@ -270,6 +270,18 @@ bcm47xx_buttons_linksys_wrt310nv1[] __in }; static const struct gpio_keys_button ++bcm47xx_buttons_linksys_wrt310n_v2[] __initconst = { ++ BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON), ++ BCM47XX_GPIO_KEY(6, KEY_RESTART), ++}; ++ ++static const struct gpio_keys_button +bcm47xx_buttons_linksys_wrt320n_v1[] __initconst = { + BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON), + BCM47XX_GPIO_KEY(8, KEY_RESTART), @@ -23,10 +29,13 @@ bcm47xx_buttons_linksys_wrt54g3gv2[] __initconst = { BCM47XX_GPIO_KEY(5, KEY_WIMAX), BCM47XX_GPIO_KEY(6, KEY_RESTART), -@@ -537,6 +543,9 @@ int __init bcm47xx_buttons_register(void +@@ -537,6 +549,12 @@ int __init bcm47xx_buttons_register(void case BCM47XX_BOARD_LINKSYS_WRT310NV1: err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310nv1); break; ++ case BCM47XX_BOARD_LINKSYS_WRT310NV2: ++ err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310n_v2); ++ break; + case BCM47XX_BOARD_LINKSYS_WRT320N_V1: + err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt320n_v1); + break; |