blob: 4f7e2821b8ee192c2653b4a92787f449c95a971f [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
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
Stefan Roesedb720b72017-04-24 18:45:21 +030045#define PHY_TYPE_SFI 23
Stefan Roesef4fed5c2017-04-24 18:45:24 +030046#define PHY_TYPE_IGNORE 24
47#define PHY_TYPE_MAX 25
Stefan Roese8f64e262016-05-23 11:12:05 +020048#define PHY_TYPE_INVALID 0xff
49
50#define PHY_POLARITY_NO_INVERT 0
51#define PHY_POLARITY_TXD_INVERT 1
52#define PHY_POLARITY_RXD_INVERT 2
53#define PHY_POLARITY_ALL_INVERT \
54 (PHY_POLARITY_TXD_INVERT | PHY_POLARITY_RXD_INVERT)
55
Stefan Roeseb781f572017-04-24 18:45:23 +030056#define UTMI_PHY_TO_USB3_HOST0 0
57#define UTMI_PHY_TO_USB3_HOST1 1
58#define UTMI_PHY_TO_USB3_DEVICE0 2
Stefan Roese8f64e262016-05-23 11:12:05 +020059#define UTMI_PHY_INVALID 0xff
60
61#endif /* _COMPHY_DATA_H_ */
62