blob: 6da4b6ff942ddf7167f08b9dce70829bcaac8910 [file] [log] [blame]
Anton Vorontsov453316a2008-03-24 17:40:32 +03001#ifndef __FSL_SERDES_H
2#define __FSL_SERDES_H
3
4#include <config.h>
5
Anton Vorontsov6f9cc662008-10-02 18:31:56 +04006#define FSL_SERDES_CLK_100 (0 << 28)
7#define FSL_SERDES_CLK_125 (1 << 28)
8#define FSL_SERDES_CLK_150 (3 << 28)
Anton Vorontsov453316a2008-03-24 17:40:32 +03009#define FSL_SERDES_PROTO_SATA 0
10#define FSL_SERDES_PROTO_PEX 1
11#define FSL_SERDES_PROTO_PEX_X2 2
12#define FSL_SERDES_PROTO_SGMII 3
13#define FSL_SERDES_VDD_1V 1
14
15#ifdef CONFIG_FSL_SERDES
Anton Vorontsov6f9cc662008-10-02 18:31:56 +040016extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd);
Anton Vorontsov453316a2008-03-24 17:40:32 +030017#else
Anton Vorontsov6f9cc662008-10-02 18:31:56 +040018static void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd) {}
Anton Vorontsov453316a2008-03-24 17:40:32 +030019#endif /* CONFIG_FSL_SERDES */
20
21#endif /* __FSL_SERDES_H */