blob: 8a4924123881fd2b22ff5419078bc7e22e63bcf2 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roese33357862016-05-23 11:12:05 +02002/*
3 * Copyright (C) 2015-2016 Marvell International Ltd.
Stefan Roese33357862016-05-23 11:12:05 +02004 */
5
6#ifndef _COMPHY_DATA_H_
7#define _COMPHY_DATA_H_
8
Igal Liberman2dbba242017-04-26 15:40:00 +03009#define COMPHY_SPEED_1_25G 0
Marcin Wojtas5ed3dc22019-10-15 12:30:39 +020010#define COMPHY_SPEED_2_5G 1
11#define COMPHY_SPEED_3_125G 2
12#define COMPHY_SPEED_5G 3
13#define COMPHY_SPEED_5_15625G 4
14#define COMPHY_SPEED_6G 5
15#define COMPHY_SPEED_10_3125G 6
16#define COMPHY_SPEED_MAX 7
Igal Liberman2dbba242017-04-26 15:40:00 +030017#define COMPHY_SPEED_INVALID 0xff
Stefan Roese33357862016-05-23 11:12:05 +020018
Igal Liberman2dbba242017-04-26 15:40:00 +030019#define COMPHY_TYPE_UNCONNECTED 0
20#define COMPHY_TYPE_PEX0 1
21#define COMPHY_TYPE_PEX1 2
22#define COMPHY_TYPE_PEX2 3
23#define COMPHY_TYPE_PEX3 4
24#define COMPHY_TYPE_SATA0 5
25#define COMPHY_TYPE_SATA1 6
Marcin Wojtas5ed3dc22019-10-15 12:30:39 +020026#define COMPHY_TYPE_SGMII0 7
27#define COMPHY_TYPE_SGMII1 8
28#define COMPHY_TYPE_SGMII2 9
29#define COMPHY_TYPE_USB3 10
30#define COMPHY_TYPE_USB3_HOST0 11
31#define COMPHY_TYPE_USB3_HOST1 12
32#define COMPHY_TYPE_USB3_DEVICE 13
33#define COMPHY_TYPE_RXAUI0 14
34#define COMPHY_TYPE_RXAUI1 15
Igal Liberman341e5482018-05-14 11:20:54 +030035#define COMPHY_TYPE_SFI0 16
36#define COMPHY_TYPE_SFI1 17
37#define COMPHY_TYPE_AP 18
38#define COMPHY_TYPE_IGNORE 19
39#define COMPHY_TYPE_MAX 20
Igal Liberman2dbba242017-04-26 15:40:00 +030040#define COMPHY_TYPE_INVALID 0xff
Stefan Roese33357862016-05-23 11:12:05 +020041
Igal Liberman2dbba242017-04-26 15:40:00 +030042#define COMPHY_POLARITY_NO_INVERT 0
43#define COMPHY_POLARITY_TXD_INVERT 1
44#define COMPHY_POLARITY_RXD_INVERT 2
45#define COMPHY_POLARITY_ALL_INVERT \
46 (COMPHY_POLARITY_TXD_INVERT | COMPHY_POLARITY_RXD_INVERT)
Stefan Roese33357862016-05-23 11:12:05 +020047
Stefan Roesee89acc42017-04-24 18:45:23 +030048#define UTMI_PHY_TO_USB3_HOST0 0
49#define UTMI_PHY_TO_USB3_HOST1 1
50#define UTMI_PHY_TO_USB3_DEVICE0 2
Stefan Roese33357862016-05-23 11:12:05 +020051#define UTMI_PHY_INVALID 0xff
52
53#endif /* _COMPHY_DATA_H_ */