linux/include/linux/marvell_phy.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _MARVELL_PHY_H
#define _MARVELL_PHY_H

/* Mask used for ID comparisons */
#define MARVELL_PHY_ID_MASK

/* Known PHY IDs */
#define MARVELL_PHY_ID_88E1101
#define MARVELL_PHY_ID_88E3082
#define MARVELL_PHY_ID_88E1112
#define MARVELL_PHY_ID_88E1111
#define MARVELL_PHY_ID_88E1118
#define MARVELL_PHY_ID_88E1121R
#define MARVELL_PHY_ID_88E1145
#define MARVELL_PHY_ID_88E1149R
#define MARVELL_PHY_ID_88E1240
#define MARVELL_PHY_ID_88E1318S
#define MARVELL_PHY_ID_88E1340S
#define MARVELL_PHY_ID_88E1116R
#define MARVELL_PHY_ID_88E1510
#define MARVELL_PHY_ID_88E1540
#define MARVELL_PHY_ID_88E1545
#define MARVELL_PHY_ID_88E1548P
#define MARVELL_PHY_ID_88E3016
#define MARVELL_PHY_ID_88X3310
#define MARVELL_PHY_ID_88E2110
#define MARVELL_PHY_ID_88X2222
#define MARVELL_PHY_ID_88Q2110
#define MARVELL_PHY_ID_88Q2220

/* Marvel 88E1111 in Finisar SFP module with modified PHY ID */
#define MARVELL_PHY_ID_88E1111_FINISAR

/* ID from 88E6020, assumed to be the same for the whole 6250 family */
#define MARVELL_PHY_ID_88E6250_FAMILY
/* These Ethernet switch families contain embedded PHYs, but they do
 * not have a model ID. So the switch driver traps reads to the ID2
 * register and returns the switch family ID
 */
#define MARVELL_PHY_ID_88E6341_FAMILY
#define MARVELL_PHY_ID_88E6390_FAMILY
#define MARVELL_PHY_ID_88E6393_FAMILY

#define MARVELL_PHY_FAMILY_ID(id)

/* struct phy_device dev_flags definitions */
#define MARVELL_PHY_M1145_FLAGS_RESISTANCE
#define MARVELL_PHY_M1118_DNS323_LEDS
#define MARVELL_PHY_LED0_LINK_LED1_ACTIVE

#endif /* _MARVELL_PHY_H */