diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-19 22:07:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-19 22:27:07 +0200 |
commit | aa9aef77c76113725d9dbf124c4dab414326b0a3 (patch) | |
tree | 1a3a54f7bbf096cd44fbfb8afcc9f6f9605309c9 /drivers/net/dsa/bcm_sf2.h | |
parent | net: dsa: allow switch drivers to specify phy_device::dev_flags (diff) | |
download | linux-aa9aef77c76113725d9dbf124c4dab414326b0a3.tar.xz linux-aa9aef77c76113725d9dbf124c4dab414326b0a3.zip |
net: dsa: bcm_sf2: communicate integrated PHY revision to PHY driver
The integrated BCM7xxx PHY contains no useful revision information
in its MII_PHYSID2 bits 3:0, that information is instead contained in
the SWITCH_REG_PHY_REVISION register.
Read this register, store its value, and return it by implementing the
dsa_switch::get_phy_flags() callback accordingly. The register layout is
already matching what the BCM7xxx PHY driver is expecting to find.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index 260bab313e58..d3bd52dc40d2 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -26,6 +26,7 @@ struct bcm_sf2_hw_params { u16 top_rev; u16 core_rev; + u16 gphy_rev; u32 num_gphy; u8 num_acb_queue; u8 num_rgmii; |