diff options
author | Dan Haab <dhaab@luxul.com> | 2015-04-22 15:58:33 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-21 15:53:53 -0400 |
commit | 24f2970fd32134ff8eb3387a54a1ef7ccac3f28f (patch) | |
tree | 703fc41549021685599cf865d8fe5ef2b84dd827 /arch | |
parent | 411520af8ec9456886359b42628e583ac58e7e44 (diff) |
MIPS: BCM47XX: Support Luxul XWR-1750 board
Signed-off-by: Dan Haab <dhaab@luxul.com>
Acked-by: Rafał Miłecki <zajec5@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Dan Haab <dhaab@luxul.com>
Patchwork: https://patchwork.linux-mips.org/patch/9831/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/bcm47xx/board.c | 1 | ||||
-rw-r--r-- | arch/mips/bcm47xx/buttons.c | 11 | ||||
-rw-r--r-- | arch/mips/bcm47xx/leds.c | 14 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | 2 |
4 files changed, 28 insertions, 0 deletions
diff --git a/arch/mips/bcm47xx/board.c b/arch/mips/bcm47xx/board.c index bd56415f2f3b..a88975a55c4d 100644 --- a/arch/mips/bcm47xx/board.c +++ b/arch/mips/bcm47xx/board.c | |||
@@ -149,6 +149,7 @@ struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = { | |||
149 | /* board_id */ | 149 | /* board_id */ |
150 | static const | 150 | static const |
151 | struct bcm47xx_board_type_list1 bcm47xx_board_list_board_id[] __initconst = { | 151 | struct bcm47xx_board_type_list1 bcm47xx_board_list_board_id[] __initconst = { |
152 | {{BCM47XX_BOARD_LUXUL_XWR_1750_V1, "Luxul XWR-1750 V1"}, "luxul_xwr1750_v1"}, | ||
152 | {{BCM47XX_BOARD_NETGEAR_WGR614V8, "Netgear WGR614 V8"}, "U12H072T00_NETGEAR"}, | 153 | {{BCM47XX_BOARD_NETGEAR_WGR614V8, "Netgear WGR614 V8"}, "U12H072T00_NETGEAR"}, |
153 | {{BCM47XX_BOARD_NETGEAR_WGR614V9, "Netgear WGR614 V9"}, "U12H094T00_NETGEAR"}, | 154 | {{BCM47XX_BOARD_NETGEAR_WGR614V9, "Netgear WGR614 V9"}, "U12H094T00_NETGEAR"}, |
154 | {{BCM47XX_BOARD_NETGEAR_WGR614_V10, "Netgear WGR614 V10"}, "U12H139T01_NETGEAR"}, | 155 | {{BCM47XX_BOARD_NETGEAR_WGR614_V10, "Netgear WGR614 V10"}, "U12H139T01_NETGEAR"}, |
diff --git a/arch/mips/bcm47xx/buttons.c b/arch/mips/bcm47xx/buttons.c index 276276a8c6d7..08a4abf09a33 100644 --- a/arch/mips/bcm47xx/buttons.c +++ b/arch/mips/bcm47xx/buttons.c | |||
@@ -299,6 +299,13 @@ bcm47xx_buttons_linksys_wrtsl54gs[] __initconst = { | |||
299 | BCM47XX_GPIO_KEY(6, KEY_RESTART), | 299 | BCM47XX_GPIO_KEY(6, KEY_RESTART), |
300 | }; | 300 | }; |
301 | 301 | ||
302 | /* Luxul */ | ||
303 | |||
304 | static const struct gpio_keys_button | ||
305 | bcm47xx_buttons_luxul_xwr_1750_v1[] = { | ||
306 | BCM47XX_GPIO_KEY(14, BTN_TASK), | ||
307 | }; | ||
308 | |||
302 | /* Microsoft */ | 309 | /* Microsoft */ |
303 | 310 | ||
304 | static const struct gpio_keys_button | 311 | static const struct gpio_keys_button |
@@ -555,6 +562,10 @@ int __init bcm47xx_buttons_register(void) | |||
555 | err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrtsl54gs); | 562 | err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrtsl54gs); |
556 | break; | 563 | break; |
557 | 564 | ||
565 | case BCM47XX_BOARD_LUXUL_XWR_1750_V1: | ||
566 | err = bcm47xx_copy_bdata(bcm47xx_buttons_luxul_xwr_1750_v1); | ||
567 | break; | ||
568 | |||
558 | case BCM47XX_BOARD_MICROSOFT_MN700: | 569 | case BCM47XX_BOARD_MICROSOFT_MN700: |
559 | err = bcm47xx_copy_bdata(bcm47xx_buttons_microsoft_nm700); | 570 | err = bcm47xx_copy_bdata(bcm47xx_buttons_microsoft_nm700); |
560 | break; | 571 | break; |
diff --git a/arch/mips/bcm47xx/leds.c b/arch/mips/bcm47xx/leds.c index 0e4ade342333..d20ae63eb3c2 100644 --- a/arch/mips/bcm47xx/leds.c +++ b/arch/mips/bcm47xx/leds.c | |||
@@ -370,6 +370,16 @@ bcm47xx_leds_linksys_wrtsl54gs[] __initconst = { | |||
370 | BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), | 370 | BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), |
371 | }; | 371 | }; |
372 | 372 | ||
373 | /* Luxul */ | ||
374 | |||
375 | static const struct gpio_led | ||
376 | bcm47xx_leds_luxul_xwr_1750_v1[] __initconst = { | ||
377 | BCM47XX_GPIO_LED(5, "green", "5ghz", 0, LEDS_GPIO_DEFSTATE_OFF), | ||
378 | BCM47XX_GPIO_LED(12, "green", "usb", 0, LEDS_GPIO_DEFSTATE_OFF), | ||
379 | BCM47XX_GPIO_LED_TRIGGER(13, "green", "status", 0, "timer"), | ||
380 | BCM47XX_GPIO_LED(15, "green", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), | ||
381 | }; | ||
382 | |||
373 | /* Microsoft */ | 383 | /* Microsoft */ |
374 | 384 | ||
375 | static const struct gpio_led | 385 | static const struct gpio_led |
@@ -623,6 +633,10 @@ void __init bcm47xx_leds_register(void) | |||
623 | bcm47xx_set_pdata(bcm47xx_leds_linksys_wrtsl54gs); | 633 | bcm47xx_set_pdata(bcm47xx_leds_linksys_wrtsl54gs); |
624 | break; | 634 | break; |
625 | 635 | ||
636 | case BCM47XX_BOARD_LUXUL_XWR_1750_V1: | ||
637 | bcm47xx_set_pdata(bcm47xx_leds_luxul_xwr_1750_v1); | ||
638 | break; | ||
639 | |||
626 | case BCM47XX_BOARD_MICROSOFT_MN700: | 640 | case BCM47XX_BOARD_MICROSOFT_MN700: |
627 | bcm47xx_set_pdata(bcm47xx_leds_microsoft_nm700); | 641 | bcm47xx_set_pdata(bcm47xx_leds_microsoft_nm700); |
628 | break; | 642 | break; |
diff --git a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h index c41d1dce1062..2afb84072ad0 100644 --- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h +++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | |||
@@ -80,6 +80,8 @@ enum bcm47xx_board { | |||
80 | BCM47XX_BOARD_LINKSYS_WRT610NV2, | 80 | BCM47XX_BOARD_LINKSYS_WRT610NV2, |
81 | BCM47XX_BOARD_LINKSYS_WRTSL54GS, | 81 | BCM47XX_BOARD_LINKSYS_WRTSL54GS, |
82 | 82 | ||
83 | BCM47XX_BOARD_LUXUL_XWR_1750_V1, | ||
84 | |||
83 | BCM47XX_BOARD_MICROSOFT_MN700, | 85 | BCM47XX_BOARD_MICROSOFT_MN700, |
84 | 86 | ||
85 | BCM47XX_BOARD_MOTOROLA_WE800G, | 87 | BCM47XX_BOARD_MOTOROLA_WE800G, |