2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-05-23 09:12:05 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015-2016 Marvell International Ltd.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMPHY_DATA_H_
|
|
|
|
#define _COMPHY_DATA_H_
|
|
|
|
|
2017-04-26 12:40:00 +00:00
|
|
|
#define COMPHY_SPEED_1_25G 0
|
|
|
|
#define COMPHY_SPEED_1_5G 1
|
|
|
|
#define COMPHY_SPEED_2_5G 2
|
|
|
|
#define COMPHY_SPEED_3G 3
|
|
|
|
#define COMPHY_SPEED_3_125G 4
|
|
|
|
#define COMPHY_SPEED_5G 5
|
|
|
|
#define COMPHY_SPEED_5_15625G 6
|
|
|
|
#define COMPHY_SPEED_6G 7
|
|
|
|
#define COMPHY_SPEED_6_25G 8
|
|
|
|
#define COMPHY_SPEED_10_3125G 9
|
|
|
|
#define COMPHY_SPEED_MAX 10
|
|
|
|
#define COMPHY_SPEED_INVALID 0xff
|
2016-05-23 09:12:05 +00:00
|
|
|
|
2017-04-26 12:40:00 +00:00
|
|
|
#define COMPHY_TYPE_UNCONNECTED 0
|
|
|
|
#define COMPHY_TYPE_PEX0 1
|
|
|
|
#define COMPHY_TYPE_PEX1 2
|
|
|
|
#define COMPHY_TYPE_PEX2 3
|
|
|
|
#define COMPHY_TYPE_PEX3 4
|
|
|
|
#define COMPHY_TYPE_SATA0 5
|
|
|
|
#define COMPHY_TYPE_SATA1 6
|
|
|
|
#define COMPHY_TYPE_SATA2 7
|
|
|
|
#define COMPHY_TYPE_SATA3 8
|
|
|
|
#define COMPHY_TYPE_SGMII0 9
|
|
|
|
#define COMPHY_TYPE_SGMII1 10
|
|
|
|
#define COMPHY_TYPE_SGMII2 11
|
|
|
|
#define COMPHY_TYPE_SGMII3 12
|
|
|
|
#define COMPHY_TYPE_QSGMII 13
|
|
|
|
#define COMPHY_TYPE_USB3 14
|
|
|
|
#define COMPHY_TYPE_USB3_HOST0 15
|
|
|
|
#define COMPHY_TYPE_USB3_HOST1 16
|
|
|
|
#define COMPHY_TYPE_USB3_DEVICE 17
|
|
|
|
#define COMPHY_TYPE_XAUI0 18
|
|
|
|
#define COMPHY_TYPE_XAUI1 19
|
|
|
|
#define COMPHY_TYPE_XAUI2 20
|
|
|
|
#define COMPHY_TYPE_XAUI3 21
|
|
|
|
#define COMPHY_TYPE_RXAUI0 22
|
|
|
|
#define COMPHY_TYPE_RXAUI1 23
|
|
|
|
#define COMPHY_TYPE_SFI 24
|
|
|
|
#define COMPHY_TYPE_IGNORE 25
|
|
|
|
#define COMPHY_TYPE_MAX 26
|
|
|
|
#define COMPHY_TYPE_INVALID 0xff
|
2016-05-23 09:12:05 +00:00
|
|
|
|
2017-04-26 12:40:00 +00:00
|
|
|
#define COMPHY_POLARITY_NO_INVERT 0
|
|
|
|
#define COMPHY_POLARITY_TXD_INVERT 1
|
|
|
|
#define COMPHY_POLARITY_RXD_INVERT 2
|
|
|
|
#define COMPHY_POLARITY_ALL_INVERT \
|
|
|
|
(COMPHY_POLARITY_TXD_INVERT | COMPHY_POLARITY_RXD_INVERT)
|
2016-05-23 09:12:05 +00:00
|
|
|
|
2017-04-24 15:45:23 +00:00
|
|
|
#define UTMI_PHY_TO_USB3_HOST0 0
|
|
|
|
#define UTMI_PHY_TO_USB3_HOST1 1
|
|
|
|
#define UTMI_PHY_TO_USB3_DEVICE0 2
|
2016-05-23 09:12:05 +00:00
|
|
|
#define UTMI_PHY_INVALID 0xff
|
|
|
|
|
|
|
|
#endif /* _COMPHY_DATA_H_ */
|
|
|
|
|