Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015-2016 Marvell International Ltd. |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _COMPHY_DATA_H_ |
| 7 | #define _COMPHY_DATA_H_ |
| 8 | |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 9 | #define COMPHY_SPEED_1_25G 0 |
Marcin Wojtas | bfb758b | 2019-10-15 12:30:39 +0200 | [diff] [blame] | 10 | #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 Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 17 | #define COMPHY_SPEED_INVALID 0xff |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 18 | |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 19 | #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 Wojtas | bfb758b | 2019-10-15 12:30:39 +0200 | [diff] [blame] | 26 | #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 Liberman | d7297e3 | 2018-05-14 11:20:54 +0300 | [diff] [blame] | 35 | #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 Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 40 | #define COMPHY_TYPE_INVALID 0xff |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 41 | |
Igal Liberman | ffd5d2f | 2017-04-26 15:40:00 +0300 | [diff] [blame] | 42 | #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 Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 47 | |
Stefan Roese | b781f57 | 2017-04-24 18:45:23 +0300 | [diff] [blame] | 48 | #define UTMI_PHY_TO_USB3_HOST0 0 |
| 49 | #define UTMI_PHY_TO_USB3_HOST1 1 |
| 50 | #define UTMI_PHY_TO_USB3_DEVICE0 2 |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 51 | #define UTMI_PHY_INVALID 0xff |
| 52 | |
| 53 | #endif /* _COMPHY_DATA_H_ */ |