summaryrefslogtreecommitdiff
path: root/include/linux/marvell_phy.h
diff options
context:
space:
mode:
authorWang Dongsheng <dongsheng.wang@hxt-semitech.com>2018-07-01 23:15:46 -0700
committerDavid S. Miller <davem@davemloft.net>2018-07-04 11:34:09 +0900
commit077772468ec141b22e1e7c0c58bc09e2f9dc8762 (patch)
tree9f316e56938b28b2a315b6640ca41571186b8fe5 /include/linux/marvell_phy.h
parent248c690a2dc8725b5a5e06a1e0cdd65c7da06801 (diff)
net: phy: marvell: change default m88e1510 LED configuration
The m88e1121 LED default configuration does not apply m88e151x. So add a function to relpace m88e1121 LED configuration. Signed-off-by: Wang Dongsheng <dongsheng.wang@hxt-semitech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/marvell_phy.h')
-rw-r--r--include/linux/marvell_phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h
index 4f5f8c21e283..1eb6f244588d 100644
--- a/include/linux/marvell_phy.h
+++ b/include/linux/marvell_phy.h
@@ -27,6 +27,8 @@
*/
#define MARVELL_PHY_ID_88E6390 0x01410f90
+#define MARVELL_PHY_FAMILY_ID(id) ((id) >> 4)
+
/* struct phy_device dev_flags definitions */
#define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001
#define MARVELL_PHY_M1118_DNS323_LEDS 0x00000002