Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Kumar Gala | b7c3ccf | 2010-04-20 10:02:24 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2010 Freescale Semiconductor, Inc. |
Kumar Gala | b7c3ccf | 2010-04-20 10:02:24 -0500 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __FSL_MPC83XX_SERDES_H |
| 7 | #define __FSL_MPC83XX_SERDES_H |
| 8 | |
Mario Six | 7fdcf28 | 2018-08-06 10:23:46 +0200 | [diff] [blame] | 9 | #ifndef CONFIG_MPC83XX_SERDES |
| 10 | |
Kumar Gala | b7c3ccf | 2010-04-20 10:02:24 -0500 | [diff] [blame] | 11 | #include <config.h> |
| 12 | |
| 13 | #define FSL_SERDES_CLK_100 (0 << 28) |
| 14 | #define FSL_SERDES_CLK_125 (1 << 28) |
| 15 | #define FSL_SERDES_CLK_150 (3 << 28) |
| 16 | #define FSL_SERDES_PROTO_SATA 0 |
| 17 | #define FSL_SERDES_PROTO_PEX 1 |
| 18 | #define FSL_SERDES_PROTO_PEX_X2 2 |
| 19 | #define FSL_SERDES_PROTO_SGMII 3 |
| 20 | #define FSL_SERDES_VDD_1V 1 |
| 21 | |
| 22 | extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd); |
| 23 | |
Mario Six | 7fdcf28 | 2018-08-06 10:23:46 +0200 | [diff] [blame] | 24 | #endif /* !CONFIG_MPC83XX_SERDES */ |
| 25 | |
Kumar Gala | b7c3ccf | 2010-04-20 10:02:24 -0500 | [diff] [blame] | 26 | #endif /* __FSL_MPC83XX_SERDES_H */ |