1 /*
2  * Copyright (C) 2015-2016 Marvell International Ltd.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef _COMPHY_DATA_H_
8 #define _COMPHY_DATA_H_
9 
10 #define PHY_SPEED_1_25G			0
11 #define PHY_SPEED_1_5G			1
12 #define PHY_SPEED_2_5G			2
13 #define PHY_SPEED_3G			3
14 #define PHY_SPEED_3_125G		4
15 #define PHY_SPEED_5G			5
16 #define PHY_SPEED_6G			6
17 #define PHY_SPEED_6_25G			7
18 #define PHY_SPEED_10_3125G		8
19 #define PHY_SPEED_MAX			9
20 #define PHY_SPEED_INVALID		0xff
21 
22 #define PHY_TYPE_UNCONNECTED		0
23 #define PHY_TYPE_PEX0			1
24 #define PHY_TYPE_PEX1			2
25 #define PHY_TYPE_PEX2			3
26 #define PHY_TYPE_PEX3			4
27 #define PHY_TYPE_SATA0			5
28 #define PHY_TYPE_SATA1			6
29 #define PHY_TYPE_SATA2			7
30 #define PHY_TYPE_SATA3			8
31 #define PHY_TYPE_SGMII0			9
32 #define PHY_TYPE_SGMII1			10
33 #define PHY_TYPE_SGMII2			11
34 #define PHY_TYPE_SGMII3			12
35 #define PHY_TYPE_QSGMII			13
36 #define PHY_TYPE_USB3_HOST0		14
37 #define PHY_TYPE_USB3_HOST1		15
38 #define PHY_TYPE_USB3_DEVICE		16
39 #define PHY_TYPE_XAUI0			17
40 #define PHY_TYPE_XAUI1			18
41 #define PHY_TYPE_XAUI2			19
42 #define PHY_TYPE_XAUI3			20
43 #define PHY_TYPE_RXAUI0			21
44 #define PHY_TYPE_RXAUI1			22
45 #define PHY_TYPE_KR			23
46 #define PHY_TYPE_MAX			24
47 #define PHY_TYPE_INVALID		0xff
48 
49 #define PHY_POLARITY_NO_INVERT		0
50 #define PHY_POLARITY_TXD_INVERT		1
51 #define PHY_POLARITY_RXD_INVERT		2
52 #define PHY_POLARITY_ALL_INVERT		\
53 	(PHY_POLARITY_TXD_INVERT | PHY_POLARITY_RXD_INVERT)
54 
55 #define UTMI_PHY_TO_USB_HOST0		0
56 #define UTMI_PHY_TO_USB_HOST1		1
57 #define UTMI_PHY_TO_USB_DEVICE0		2
58 #define UTMI_PHY_INVALID		0xff
59 
60 #endif /* _COMPHY_DATA_H_ */
61 
62