xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/fsl_mpc83xx_serdes.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
17e1afb62SKumar Gala /*
27e1afb62SKumar Gala  * Copyright 2010 Freescale Semiconductor, Inc.
37e1afb62SKumar Gala  *
4*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
57e1afb62SKumar Gala  */
67e1afb62SKumar Gala 
77e1afb62SKumar Gala #ifndef __FSL_MPC83XX_SERDES_H
87e1afb62SKumar Gala #define __FSL_MPC83XX_SERDES_H
97e1afb62SKumar Gala 
107e1afb62SKumar Gala #include <config.h>
117e1afb62SKumar Gala 
127e1afb62SKumar Gala #define FSL_SERDES_CLK_100		(0 << 28)
137e1afb62SKumar Gala #define FSL_SERDES_CLK_125		(1 << 28)
147e1afb62SKumar Gala #define FSL_SERDES_CLK_150		(3 << 28)
157e1afb62SKumar Gala #define FSL_SERDES_PROTO_SATA		0
167e1afb62SKumar Gala #define FSL_SERDES_PROTO_PEX		1
177e1afb62SKumar Gala #define FSL_SERDES_PROTO_PEX_X2		2
187e1afb62SKumar Gala #define FSL_SERDES_PROTO_SGMII		3
197e1afb62SKumar Gala #define FSL_SERDES_VDD_1V		1
207e1afb62SKumar Gala 
217e1afb62SKumar Gala extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd);
227e1afb62SKumar Gala 
237e1afb62SKumar Gala #endif /* __FSL_MPC83XX_SERDES_H */
24