]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/include/asm/arch-ls102xa/fsl_serdes.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / include / asm / arch-ls102xa / fsl_serdes.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
d60a2099
WH
2/*
3 * Copyright 2014 Freescale Semiconductor, Inc.
d60a2099
WH
4 */
5
6#ifndef __FSL_SERDES_H
7#define __FSL_SERDES_H
8
9#include <config.h>
10
11enum srds_prtcl {
71fe2225
HZ
12 /*
13 * Nobody will check whether the device 'NONE' has been configured,
14 * So use it to indicate if the serdes_prtcl_map has been initialized.
15 */
d60a2099
WH
16 NONE = 0,
17 PCIE1,
18 PCIE2,
19 SATA1,
20 SGMII_TSEC1,
21 SGMII_TSEC2,
22};
23
24enum srds {
25 FSL_SRDS_1 = 0,
26 FSL_SRDS_2 = 1,
27};
28
29int is_serdes_configured(enum srds_prtcl device);
30void fsl_serdes_init(void);
31const char *serdes_clock_to_string(u32 clock);
32
33int serdes_get_first_lane(u32 sd, enum srds_prtcl device);
34enum srds_prtcl serdes_get_prtcl(int serdes, int cfg, int lane);
35
36#endif /* __FSL_SERDES_H */