blob: 5a06a095677afcc3adde4dea7a2689488f076fe3 [file] [log] [blame]
Kumar Galab7c3ccf2010-04-20 10:02:24 -05001/*
2 * Copyright 2010 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Galab7c3ccf2010-04-20 10:02:24 -05005 */
6
7#ifndef __FSL_MPC83XX_SERDES_H
8#define __FSL_MPC83XX_SERDES_H
9
10#include <config.h>
11
12#define FSL_SERDES_CLK_100 (0 << 28)
13#define FSL_SERDES_CLK_125 (1 << 28)
14#define FSL_SERDES_CLK_150 (3 << 28)
15#define FSL_SERDES_PROTO_SATA 0
16#define FSL_SERDES_PROTO_PEX 1
17#define FSL_SERDES_PROTO_PEX_X2 2
18#define FSL_SERDES_PROTO_SGMII 3
19#define FSL_SERDES_VDD_1V 1
20
21extern void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd);
22
23#endif /* __FSL_MPC83XX_SERDES_H */