183d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 27e1afb62SKumar Gala /* 37e1afb62SKumar Gala * Copyright 2010 Freescale Semiconductor, Inc. 47e1afb62SKumar Gala */ 57e1afb62SKumar Gala 67e1afb62SKumar Gala #ifndef __FSL_MPC83XX_SERDES_H 77e1afb62SKumar Gala #define __FSL_MPC83XX_SERDES_H 87e1afb62SKumar Gala 9*d2166319SMario Six #ifndef CONFIG_MPC83XX_SERDES 10*d2166319SMario Six 117e1afb62SKumar Gala #include <config.h> 127e1afb62SKumar Gala 137e1afb62SKumar Gala #define FSL_SERDES_CLK_100 (0 << 28) 147e1afb62SKumar Gala #define FSL_SERDES_CLK_125 (1 << 28) 157e1afb62SKumar Gala #define FSL_SERDES_CLK_150 (3 << 28) 167e1afb62SKumar Gala #define FSL_SERDES_PROTO_SATA 0 177e1afb62SKumar Gala #define FSL_SERDES_PROTO_PEX 1 187e1afb62SKumar Gala #define FSL_SERDES_PROTO_PEX_X2 2 197e1afb62SKumar Gala #define FSL_SERDES_PROTO_SGMII 3 207e1afb62SKumar Gala #define FSL_SERDES_VDD_1V 1 217e1afb62SKumar Gala 227e1afb62SKumar Gala extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd); 237e1afb62SKumar Gala 24*d2166319SMario Six #endif /* !CONFIG_MPC83XX_SERDES */ 25*d2166319SMario Six 267e1afb62SKumar Gala #endif /* __FSL_MPC83XX_SERDES_H */ 27