Skip to content

Commit

Permalink
mvsw61xx: add support for MV88E6352
Browse files Browse the repository at this point in the history
MV88E6352 is used on Linksys WRT3200ACM

Signed-off-by: Imre Kaloz <[email protected]>
  • Loading branch information
kaloz authored and Noltari committed Jan 13, 2017
1 parent 89ecfa7 commit f24ffb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/linux/generic/files/drivers/net/phy/mvsw61xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,9 @@ static int mvsw61xx_probe(struct platform_device *pdev)
case MV_IDENT_VALUE_6176:
model_str = MV_IDENT_STR_6176;
break;
case MV_IDENT_VALUE_6352:
model_str = MV_IDENT_STR_6352;
break;
default:
dev_err(&pdev->dev, "No compatible switch found at 0x%02x\n",
state->base_addr);
Expand Down Expand Up @@ -916,6 +919,7 @@ static const struct of_device_id mvsw61xx_match[] = {
{ .compatible = "marvell,88e6171" },
{ .compatible = "marvell,88e6172" },
{ .compatible = "marvell,88e6176" },
{ .compatible = "marvell,88e6352" },
{ }
};
MODULE_DEVICE_TABLE(of, mvsw61xx_match);
Expand Down
3 changes: 3 additions & 0 deletions target/linux/generic/files/drivers/net/phy/mvsw61xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ enum {
#define MV_IDENT_VALUE_6176 0x1760
#define MV_IDENT_STR_6176 "MV88E6176"

#define MV_IDENT_VALUE_6352 0x3520
#define MV_IDENT_STR_6352 "MV88E6352"

#define MV_PVID_MASK 0x0fff

#define MV_FDB_HI_MASK 0x00ff
Expand Down

0 comments on commit f24ffb9

Please sign in to comment.