Skip to content

Commit fc605b9

Browse files
Rafał Miłeckitsbogend
authored andcommitted
MIPS: BCM47XX: Add support for Linksys E2500 V3
It's a BCM5358 based home WiFi router. 16 MiB flash, 64 MiB RAM, BCM5325 switch, on-SoC 802.11n radio. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent e8254a8 commit fc605b9

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

arch/mips/bcm47xx/board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = {
130130
{{BCM47XX_BOARD_LINKSYS_E1000V21, "Linksys E1000 V2.1"}, "E1000", "2.1"},
131131
{{BCM47XX_BOARD_LINKSYS_E1200V2, "Linksys E1200 V2"}, "E1200", "2.0"},
132132
{{BCM47XX_BOARD_LINKSYS_E2000V1, "Linksys E2000 V1"}, "Linksys E2000", "1.0"},
133+
{{BCM47XX_BOARD_LINKSYS_E2500V3, "Linksys E2500 V3"}, "E2500", "1.0"},
133134
/* like WRT610N v2.0 */
134135
{{BCM47XX_BOARD_LINKSYS_E3000V1, "Linksys E3000 V1"}, "E300", "1.0"},
135136
{{BCM47XX_BOARD_LINKSYS_E3200V1, "Linksys E3200 V1"}, "E3200", "1.0"},

arch/mips/bcm47xx/buttons.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ bcm47xx_buttons_linksys_e2000v1[] __initconst = {
222222
BCM47XX_GPIO_KEY(8, KEY_RESTART),
223223
};
224224

225+
static const struct gpio_keys_button
226+
bcm47xx_buttons_linksys_e2500v3[] __initconst = {
227+
BCM47XX_GPIO_KEY(9, KEY_WPS_BUTTON),
228+
BCM47XX_GPIO_KEY(10, KEY_RESTART),
229+
};
230+
225231
static const struct gpio_keys_button
226232
bcm47xx_buttons_linksys_e3000v1[] __initconst = {
227233
BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON),
@@ -617,6 +623,9 @@ int __init bcm47xx_buttons_register(void)
617623
case BCM47XX_BOARD_LINKSYS_E2000V1:
618624
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2000v1);
619625
break;
626+
case BCM47XX_BOARD_LINKSYS_E2500V3:
627+
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2500v3);
628+
break;
620629
case BCM47XX_BOARD_LINKSYS_E3000V1:
621630
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e3000v1);
622631
break;

arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ enum bcm47xx_board {
6161
BCM47XX_BOARD_LINKSYS_E1000V21,
6262
BCM47XX_BOARD_LINKSYS_E1200V2,
6363
BCM47XX_BOARD_LINKSYS_E2000V1,
64+
BCM47XX_BOARD_LINKSYS_E2500V3,
6465
BCM47XX_BOARD_LINKSYS_E3000V1,
6566
BCM47XX_BOARD_LINKSYS_E3200V1,
6667
BCM47XX_BOARD_LINKSYS_E4200V1,

0 commit comments

Comments
 (0)