Anton Vorontsov | 453316a | 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 | |
| 6 | #define FSL_SERDES_CLK_100 0 |
| 7 | #define FSL_SERDES_CLK_125 1 |
| 8 | #define FSL_SERDES_CLK_150 3 |
| 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 |
| 16 | extern void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd); |
| 17 | #else |
| 18 | static void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd) {} |
| 19 | #endif /* CONFIG_FSL_SERDES */ |
| 20 | |
| 21 | #endif /* __FSL_SERDES_H */ |