2 * Copyright 2009-2010 Freescale Semiconductor, Inc.
4 * Author: Roy Zang <tie-fei.zang@freescale.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 #ifndef __FSL_CORENET_SERDES_H
23 #define __FSL_CORENET_SERDES_H
25 #define SRDS_MAX_LANES 18
26 #define SRDS_MAX_BANK 3
34 int is_serdes_prtcl_valid(u32 prtcl);
35 int serdes_get_lane_idx(int lane);
36 int serdes_get_bank(int lane);
37 int serdes_lane_enabled(int lane);
38 enum srds_prtcl serdes_get_prtcl(int cfg, int lane);
40 #ifdef CONFIG_SYS_P4080_ERRATUM_SERDES8
41 extern uint16_t srds_lpd_b[SRDS_MAX_BANK];
44 #endif /* __FSL_CORENET_SERDES_H */