1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Texas Instruments Keystone SerDes driver
6 * Texas Instruments Incorporated, <www.ti.com>
9 #ifndef __TI_KEYSTONE_SERDES_H__
10 #define __TI_KEYSTONE_SERDES_H__
12 /* SERDES Reference clock */
13 enum ks2_serdes_clock {
14 SERDES_CLOCK_100M, /* 100 MHz */
15 SERDES_CLOCK_122P88M, /* 122.88 MHz */
16 SERDES_CLOCK_125M, /* 125 MHz */
17 SERDES_CLOCK_156P25M, /* 156.25 MHz */
18 SERDES_CLOCK_312P5M, /* 312.5 MHz */
21 /* SERDES Lane Baud Rate */
22 enum ks2_serdes_rate {
23 SERDES_RATE_4P9152G, /* 4.9152 GBaud */
24 SERDES_RATE_5G, /* 5 GBaud */
25 SERDES_RATE_6P144G, /* 6.144 GBaud */
26 SERDES_RATE_6P25G, /* 6.25 GBaud */
27 SERDES_RATE_10p3125g, /* 10.3215 GBaud */
28 SERDES_RATE_12p5g, /* 12.5 GBaud */
31 /* SERDES Lane Rate Mode */
32 enum ks2_serdes_rate_mode {
39 enum ks2_serdes_interface {
41 SERDES_PHY_PCSR, /* XGE SERDES */
45 enum ks2_serdes_clock clk;
46 enum ks2_serdes_rate rate;
47 enum ks2_serdes_rate_mode rate_mode;
48 enum ks2_serdes_interface intf;
52 int ks2_serdes_init(u32 base, struct ks2_serdes *serdes, u32 num_lanes);
54 #endif /* __TI_KEYSTONE_SERDES_H__ */