blob: 08544fa758bfd3f290a2d386e299442b0d32af21 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roese8f64e262016-05-23 11:12:05 +02002/*
3 * Copyright (C) 2015-2016 Marvell International Ltd.
Stefan Roese8f64e262016-05-23 11:12:05 +02004 */
5
6#ifndef _COMPHY_DATA_H_
7#define _COMPHY_DATA_H_
8
9#define PHY_SPEED_1_25G 0
10#define PHY_SPEED_1_5G 1
11#define PHY_SPEED_2_5G 2
12#define PHY_SPEED_3G 3
13#define PHY_SPEED_3_125G 4
14#define PHY_SPEED_5G 5
Igal Liberman989b96f2017-04-24 18:45:28 +030015#define PHY_SPEED_5_15625G 6
16#define PHY_SPEED_6G 7
17#define PHY_SPEED_6_25G 8
18#define PHY_SPEED_10_3125G 9
19#define PHY_SPEED_MAX 10
Stefan Roese8f64e262016-05-23 11:12:05 +020020#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
jinghua68bcfed2017-04-24 15:51:03 +080036#define PHY_TYPE_USB3 14
37#define PHY_TYPE_USB3_HOST0 15
38#define PHY_TYPE_USB3_HOST1 16
39#define PHY_TYPE_USB3_DEVICE 17
40#define PHY_TYPE_XAUI0 18
41#define PHY_TYPE_XAUI1 19
42#define PHY_TYPE_XAUI2 20
43#define PHY_TYPE_XAUI3 21
44#define PHY_TYPE_RXAUI0 22
45#define PHY_TYPE_RXAUI1 23
46#define PHY_TYPE_SFI 24
47#define PHY_TYPE_IGNORE 25
48#define PHY_TYPE_MAX 26
Stefan Roese8f64e262016-05-23 11:12:05 +020049#define PHY_TYPE_INVALID 0xff
50
51#define PHY_POLARITY_NO_INVERT 0
52#define PHY_POLARITY_TXD_INVERT 1
53#define PHY_POLARITY_RXD_INVERT 2
54#define PHY_POLARITY_ALL_INVERT \
55 (PHY_POLARITY_TXD_INVERT | PHY_POLARITY_RXD_INVERT)
56
Stefan Roeseb781f572017-04-24 18:45:23 +030057#define UTMI_PHY_TO_USB3_HOST0 0
58#define UTMI_PHY_TO_USB3_HOST1 1
59#define UTMI_PHY_TO_USB3_DEVICE0 2
Stefan Roese8f64e262016-05-23 11:12:05 +020060#define UTMI_PHY_INVALID 0xff
61
62#endif /* _COMPHY_DATA_H_ */
63