* [PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants
@ 2015-06-10 16:48 Gustavo Zacarias
2015-06-11 7:29 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2015-06-10 16:48 UTC (permalink / raw)
To: netdev; +Cc: Gustavo Zacarias
Add PHY IDs for Davicom DM9161B and DM9161C variants.
Tested with a DM9161C on a custom Atmel-based SAM9X25 board in RMII
mode.
The DM9161B uses the same model id with just the LSB bit of the version
id changing (which is masked out).
For all intents and purposes they're the same as the DM9161A with an
added GPSI mode and better fabrication process.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
drivers/net/phy/davicom.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c
index 0d16c7d..2a32870 100644
--- a/drivers/net/phy/davicom.c
+++ b/drivers/net/phy/davicom.c
@@ -158,6 +158,18 @@ static struct phy_driver dm91xx_driver[] = {
.config_intr = dm9161_config_intr,
.driver = { .owner = THIS_MODULE,},
}, {
+ .phy_id = 0x0181b8b0,
+ .name = "Davicom DM9161B/C",
+ .phy_id_mask = 0x0ffffff0,
+ .features = PHY_BASIC_FEATURES,
+ .flags = PHY_HAS_INTERRUPT,
+ .config_init = dm9161_config_init,
+ .config_aneg = dm9161_config_aneg,
+ .read_status = genphy_read_status,
+ .ack_interrupt = dm9161_ack_interrupt,
+ .config_intr = dm9161_config_intr,
+ .driver = { .owner = THIS_MODULE,},
+}, {
.phy_id = 0x0181b8a0,
.name = "Davicom DM9161A",
.phy_id_mask = 0x0ffffff0,
@@ -186,6 +198,7 @@ module_phy_driver(dm91xx_driver);
static struct mdio_device_id __maybe_unused davicom_tbl[] = {
{ 0x0181b880, 0x0ffffff0 },
+ { 0x0181b8b0, 0x0ffffff0 },
{ 0x0181b8a0, 0x0ffffff0 },
{ 0x00181b80, 0x0ffffff0 },
{ }
--
2.3.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants
2015-06-10 16:48 [PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants Gustavo Zacarias
@ 2015-06-11 7:29 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-06-11 7:29 UTC (permalink / raw)
To: gustavo; +Cc: netdev
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date: Wed, 10 Jun 2015 13:48:20 -0300
> Add PHY IDs for Davicom DM9161B and DM9161C variants.
> Tested with a DM9161C on a custom Atmel-based SAM9X25 board in RMII
> mode.
>
> The DM9161B uses the same model id with just the LSB bit of the version
> id changing (which is masked out).
>
> For all intents and purposes they're the same as the DM9161A with an
> added GPSI mode and better fabrication process.
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-11 7:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10 16:48 [PATCH net-next] net: phy: davicom: add IDs for DM9161B and C variants Gustavo Zacarias
2015-06-11 7:29 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).