blob: fcccb8f9b329cd4d197b7a02f4b01982654ba0fd [file] [log] [blame]
York Sun0789dc92012-12-23 19:25:27 +00001/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
York Sun0789dc92012-12-23 19:25:27 +00005 */
6
7#ifndef __CROSSBAR_CONNECTIONS_H__
8#define __CROSSBAR_CONNECTIONS_H__
9
10#define NUM_CON_VSC3316 8
11#define NUM_CON_VSC3308 4
12
13static const int8_t vsc16_tx_amc[8][2] = { {15, 3}, {0, 2}, {7, 4}, {9, 10},
14 {5, 11}, {4, 5}, {2, 6}, {12, 9} };
15
Shaohui Xie3d8095e2013-08-19 18:43:07 +080016static int8_t vsc16_tx_sfp[8][2] = { {15, 7}, {0, 1}, {7, 8}, {9, 0},
Shaveta Leekha93201602013-03-25 07:40:17 +000017 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
York Sun0789dc92012-12-23 19:25:27 +000018
Shaohui Xie3d8095e2013-08-19 18:43:07 +080019static int8_t vsc16_tx_4sfp_sgmii_12_56[8][2] = { {15, 7}, {0, 1},
Shaveta Leekha93201602013-03-25 07:40:17 +000020 {7, 8}, {9, 0}, {2, 14}, {12, 15},
21 {-1, -1}, {-1, -1} };
22
23static const int8_t vsc16_tx_4sfp_sgmii_34[8][2] = { {15, 7}, {0, 1},
24 {7, 8}, {9, 0}, {5, 14}, {4, 15},
25 {-1, -1}, {-1, -1} };
York Sun0789dc92012-12-23 19:25:27 +000026
Shaveta Leekha8d2ba982014-02-26 16:06:30 +053027static int8_t vsc16_tx_sfp_sgmii_aurora[8][2] = { {15, 7}, {0, 1},
28 {7, 8}, {9, 0}, {5, 14},
29 {4, 15}, {2, 12}, {12, 13} };
30
York Sun0789dc92012-12-23 19:25:27 +000031#ifdef CONFIG_PPC_B4420
Shaohui Xie3d8095e2013-08-19 18:43:07 +080032static int8_t vsc16_tx_sgmii_lane_cd[8][2] = { {5, 14}, {4, 15},
York Sun0789dc92012-12-23 19:25:27 +000033 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
34#endif
Shaveta Leekha93201602013-03-25 07:40:17 +000035
York Sun0789dc92012-12-23 19:25:27 +000036static const int8_t vsc16_tx_aurora[8][2] = { {2, 13}, {12, 12}, {-1, -1},
37 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
38
39static const int8_t vsc16_rx_amc[8][2] = { {3, 15}, {2, 1}, {4, 8}, {10, 9},
40 {11, 11}, {5, 10}, {6, 3}, {9, 12} };
41
Shaohui Xie3d8095e2013-08-19 18:43:07 +080042static int8_t vsc16_rx_sfp[8][2] = { {8, 15}, {0, 1}, {7, 8}, {1, 9},
York Sun0789dc92012-12-23 19:25:27 +000043 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
44
Shaohui Xie3d8095e2013-08-19 18:43:07 +080045static int8_t vsc16_rx_4sfp_sgmii_12_56[8][2] = { {8, 15}, {0, 1},
Shaveta Leekha93201602013-03-25 07:40:17 +000046 {7, 8}, {1, 9}, {14, 3}, {15, 12},
47 {-1, -1}, {-1, -1} };
48
49static const int8_t vsc16_rx_4sfp_sgmii_34[8][2] = { {8, 15}, {0, 1},
50 {7, 8}, {1, 9}, {14, 11}, {15, 10},
51 {-1, -1}, {-1, -1} };
York Sun0789dc92012-12-23 19:25:27 +000052
Shaveta Leekha8d2ba982014-02-26 16:06:30 +053053static int8_t vsc16_rx_sfp_sgmii_aurora[8][2] = { {8, 15}, {0, 1},
54 {7, 8}, {1, 9}, {14, 11},
55 {15, 10}, {13, 3}, {12, 12} };
56
York Sun0789dc92012-12-23 19:25:27 +000057#ifdef CONFIG_PPC_B4420
Shaohui Xie3d8095e2013-08-19 18:43:07 +080058static int8_t vsc16_rx_sgmii_lane_cd[8][2] = { {14, 11}, {15, 10},
York Sun0789dc92012-12-23 19:25:27 +000059 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
60#endif
61
Shaveta Leekha93201602013-03-25 07:40:17 +000062static const int8_t vsc16_rx_aurora[8][2] = { {13, 3}, {12, 12}, {-1, -1},
York Sun0789dc92012-12-23 19:25:27 +000063 {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
64
65static const int8_t vsc08_tx_amc[4][2] = { {2, 2}, {3, 3}, {7, 4}, {1, 5} };
66
Shaveta Leekha93201602013-03-25 07:40:17 +000067static const int8_t vsc08_tx_sfp[4][2] = { {2, 1}, {3, 0}, {7, 6}, {1, 7} };
York Sun0789dc92012-12-23 19:25:27 +000068
69static const int8_t vsc08_rx_amc[4][2] = { {2, 3}, {3, 4}, {4, 7}, {5, 1} };
70
Shaveta Leekha93201602013-03-25 07:40:17 +000071static const int8_t vsc08_rx_sfp[4][2] = { {1, 3}, {0, 4}, {6, 7}, {7, 1} };
York Sun0789dc92012-12-23 19:25:27 +000072
73#endif