Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _MARVELL_PHY_H
0003 #define _MARVELL_PHY_H
0004 
0005 /* Mask used for ID comparisons */
0006 #define MARVELL_PHY_ID_MASK     0xfffffff0
0007 
0008 /* Known PHY IDs */
0009 #define MARVELL_PHY_ID_88E1101      0x01410c60
0010 #define MARVELL_PHY_ID_88E1112      0x01410c90
0011 #define MARVELL_PHY_ID_88E1111      0x01410cc0
0012 #define MARVELL_PHY_ID_88E1118      0x01410e10
0013 #define MARVELL_PHY_ID_88E1121R     0x01410cb0
0014 #define MARVELL_PHY_ID_88E1145      0x01410cd0
0015 #define MARVELL_PHY_ID_88E1149R     0x01410e50
0016 #define MARVELL_PHY_ID_88E1240      0x01410e30
0017 #define MARVELL_PHY_ID_88E1318S     0x01410e90
0018 #define MARVELL_PHY_ID_88E1340S     0x01410dc0
0019 #define MARVELL_PHY_ID_88E1116R     0x01410e40
0020 #define MARVELL_PHY_ID_88E1510      0x01410dd0
0021 #define MARVELL_PHY_ID_88E1540      0x01410eb0
0022 #define MARVELL_PHY_ID_88E1545      0x01410ea0
0023 #define MARVELL_PHY_ID_88E1548P     0x01410ec0
0024 #define MARVELL_PHY_ID_88E3016      0x01410e60
0025 #define MARVELL_PHY_ID_88X3310      0x002b09a0
0026 #define MARVELL_PHY_ID_88E2110      0x002b09b0
0027 #define MARVELL_PHY_ID_88X2222      0x01410f10
0028 
0029 /* Marvel 88E1111 in Finisar SFP module with modified PHY ID */
0030 #define MARVELL_PHY_ID_88E1111_FINISAR  0x01ff0cc0
0031 
0032 /* These Ethernet switch families contain embedded PHYs, but they do
0033  * not have a model ID. So the switch driver traps reads to the ID2
0034  * register and returns the switch family ID
0035  */
0036 #define MARVELL_PHY_ID_88E6341_FAMILY   0x01410f41
0037 #define MARVELL_PHY_ID_88E6390_FAMILY   0x01410f90
0038 #define MARVELL_PHY_ID_88E6393_FAMILY   0x002b0b9b
0039 
0040 #define MARVELL_PHY_FAMILY_ID(id)   ((id) >> 4)
0041 
0042 /* struct phy_device dev_flags definitions */
0043 #define MARVELL_PHY_M1145_FLAGS_RESISTANCE  0x00000001
0044 #define MARVELL_PHY_M1118_DNS323_LEDS       0x00000002
0045 #define MARVELL_PHY_LED0_LINK_LED1_ACTIVE   0x00000004
0046 
0047 #endif /* _MARVELL_PHY_H */