blob: 7d62dcf7fa51c90c7202d4e31a1273df04e6ece4 [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
Igal Libermanffd5d2f2017-04-26 15:40:00 +03009#define COMPHY_SPEED_1_25G 0
10#define COMPHY_SPEED_1_5G 1
11#define COMPHY_SPEED_2_5G 2
12#define COMPHY_SPEED_3G 3
13#define COMPHY_SPEED_3_125G 4
14#define COMPHY_SPEED_5G 5
15#define COMPHY_SPEED_5_15625G 6
16#define COMPHY_SPEED_6G 7
17#define COMPHY_SPEED_6_25G 8
18#define COMPHY_SPEED_10_3125G 9
19#define COMPHY_SPEED_MAX 10
20#define COMPHY_SPEED_INVALID 0xff
Stefan Roese8f64e262016-05-23 11:12:05 +020021
Igal Libermanffd5d2f2017-04-26 15:40:00 +030022#define COMPHY_TYPE_UNCONNECTED 0
23#define COMPHY_TYPE_PEX0 1
24#define COMPHY_TYPE_PEX1 2
25#define COMPHY_TYPE_PEX2 3
26#define COMPHY_TYPE_PEX3 4
27#define COMPHY_TYPE_SATA0 5
28#define COMPHY_TYPE_SATA1 6
29#define COMPHY_TYPE_SATA2 7
30#define COMPHY_TYPE_SATA3 8
31#define COMPHY_TYPE_SGMII0 9
32#define COMPHY_TYPE_SGMII1 10
33#define COMPHY_TYPE_SGMII2 11
34#define COMPHY_TYPE_SGMII3 12
35#define COMPHY_TYPE_QSGMII 13
36#define COMPHY_TYPE_USB3 14
37#define COMPHY_TYPE_USB3_HOST0 15
38#define COMPHY_TYPE_USB3_HOST1 16
39#define COMPHY_TYPE_USB3_DEVICE 17
40#define COMPHY_TYPE_XAUI0 18
41#define COMPHY_TYPE_XAUI1 19
42#define COMPHY_TYPE_XAUI2 20
43#define COMPHY_TYPE_XAUI3 21
44#define COMPHY_TYPE_RXAUI0 22
45#define COMPHY_TYPE_RXAUI1 23
46#define COMPHY_TYPE_SFI 24
47#define COMPHY_TYPE_IGNORE 25
48#define COMPHY_TYPE_MAX 26
49#define COMPHY_TYPE_INVALID 0xff
Stefan Roese8f64e262016-05-23 11:12:05 +020050
Igal Libermanffd5d2f2017-04-26 15:40:00 +030051#define COMPHY_POLARITY_NO_INVERT 0
52#define COMPHY_POLARITY_TXD_INVERT 1
53#define COMPHY_POLARITY_RXD_INVERT 2
54#define COMPHY_POLARITY_ALL_INVERT \
55 (COMPHY_POLARITY_TXD_INVERT | COMPHY_POLARITY_RXD_INVERT)
Stefan Roese8f64e262016-05-23 11:12:05 +020056
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