]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.h
Merge branch 'master' of git://git.denx.de/u-boot-ti
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc85xx / fsl_corenet_serdes.h
1 /*
2  * Copyright 2009-2010 Freescale Semiconductor, Inc.
3  *
4  * Author: Roy Zang <tie-fei.zang@freescale.com>
5  *
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.
10  *
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.
15  *
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,
19  * MA 02111-1307 USA
20  */
21
22 #ifndef __FSL_CORENET_SERDES_H
23 #define __FSL_CORENET_SERDES_H
24
25 #define SRDS_MAX_LANES          18
26 #define SRDS_MAX_BANK           3
27
28 enum srds_bank {
29         FSL_SRDS_BANK_1  = 0,
30         FSL_SRDS_BANK_2  = 1,
31         FSL_SRDS_BANK_3  = 2,
32 };
33
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);
39
40 #ifdef CONFIG_SYS_P4080_ERRATUM_SERDES8
41 extern uint16_t srds_lpd_b[SRDS_MAX_BANK];
42 #endif
43
44 #endif /* __FSL_CORENET_SERDES_H */