mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 19:23:07 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
54 lines
1.3 KiB
C
54 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Texas Instruments Keystone SerDes driver
|
|
*
|
|
* (C) Copyright 2014
|
|
* Texas Instruments Incorporated, <www.ti.com>
|
|
*/
|
|
|
|
#ifndef __TI_KEYSTONE_SERDES_H__
|
|
#define __TI_KEYSTONE_SERDES_H__
|
|
|
|
/* SERDES Reference clock */
|
|
enum ks2_serdes_clock {
|
|
SERDES_CLOCK_100M, /* 100 MHz */
|
|
SERDES_CLOCK_122P88M, /* 122.88 MHz */
|
|
SERDES_CLOCK_125M, /* 125 MHz */
|
|
SERDES_CLOCK_156P25M, /* 156.25 MHz */
|
|
SERDES_CLOCK_312P5M, /* 312.5 MHz */
|
|
};
|
|
|
|
/* SERDES Lane Baud Rate */
|
|
enum ks2_serdes_rate {
|
|
SERDES_RATE_4P9152G, /* 4.9152 GBaud */
|
|
SERDES_RATE_5G, /* 5 GBaud */
|
|
SERDES_RATE_6P144G, /* 6.144 GBaud */
|
|
SERDES_RATE_6P25G, /* 6.25 GBaud */
|
|
SERDES_RATE_10p3125g, /* 10.3215 GBaud */
|
|
SERDES_RATE_12p5g, /* 12.5 GBaud */
|
|
};
|
|
|
|
/* SERDES Lane Rate Mode */
|
|
enum ks2_serdes_rate_mode {
|
|
SERDES_FULL_RATE,
|
|
SERDES_HALF_RATE,
|
|
SERDES_QUARTER_RATE,
|
|
};
|
|
|
|
/* SERDES PHY TYPE */
|
|
enum ks2_serdes_interface {
|
|
SERDES_PHY_SGMII,
|
|
SERDES_PHY_PCSR, /* XGE SERDES */
|
|
};
|
|
|
|
struct ks2_serdes {
|
|
enum ks2_serdes_clock clk;
|
|
enum ks2_serdes_rate rate;
|
|
enum ks2_serdes_rate_mode rate_mode;
|
|
enum ks2_serdes_interface intf;
|
|
u32 loopback;
|
|
};
|
|
|
|
int ks2_serdes_init(u32 base, struct ks2_serdes *serdes, u32 num_lanes);
|
|
|
|
#endif /* __TI_KEYSTONE_SERDES_H__ */
|