Anton Vorontsov | 202f9e0 | 2008-03-24 17:40:32 +0300 | [diff] [blame] | 1 | #ifndef __FSL_SERDES_H |
| 2 | #define __FSL_SERDES_H |
| 3 | |
| 4 | #include <config.h> |
| 5 | |
Anton Vorontsov | 2af91a9 | 2008-10-02 18:31:56 +0400 | [diff] [blame^] | 6 | #define FSL_SERDES_CLK_100 (0 << 28) |
| 7 | #define FSL_SERDES_CLK_125 (1 << 28) |
| 8 | #define FSL_SERDES_CLK_150 (3 << 28) |
Anton Vorontsov | 202f9e0 | 2008-03-24 17:40:32 +0300 | [diff] [blame] | 9 | #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 Vorontsov | 2af91a9 | 2008-10-02 18:31:56 +0400 | [diff] [blame^] | 16 | extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd); |
Anton Vorontsov | 202f9e0 | 2008-03-24 17:40:32 +0300 | [diff] [blame] | 17 | #else |
Anton Vorontsov | 2af91a9 | 2008-10-02 18:31:56 +0400 | [diff] [blame^] | 18 | static void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd) {} |
Anton Vorontsov | 202f9e0 | 2008-03-24 17:40:32 +0300 | [diff] [blame] | 19 | #endif /* CONFIG_FSL_SERDES */ |
| 20 | |
| 21 | #endif /* __FSL_SERDES_H */ |