Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2012 Freescale Semiconductor, Inc. |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __CROSSBAR_CONNECTIONS_H__ |
| 7 | #define __CROSSBAR_CONNECTIONS_H__ |
| 8 | |
| 9 | #define NUM_CON_VSC3316 8 |
| 10 | #define NUM_CON_VSC3308 4 |
| 11 | |
| 12 | static const int8_t vsc16_tx_amc[8][2] = { {15, 3}, {0, 2}, {7, 4}, {9, 10}, |
| 13 | {5, 11}, {4, 5}, {2, 6}, {12, 9} }; |
| 14 | |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 15 | static int8_t vsc16_tx_sfp[8][2] = { {15, 7}, {0, 1}, {7, 8}, {9, 0}, |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 16 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 17 | |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 18 | static int8_t vsc16_tx_4sfp_sgmii_12_56[8][2] = { {15, 7}, {0, 1}, |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 19 | {7, 8}, {9, 0}, {2, 14}, {12, 15}, |
| 20 | {-1, -1}, {-1, -1} }; |
| 21 | |
| 22 | static const int8_t vsc16_tx_4sfp_sgmii_34[8][2] = { {15, 7}, {0, 1}, |
| 23 | {7, 8}, {9, 0}, {5, 14}, {4, 15}, |
| 24 | {-1, -1}, {-1, -1} }; |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 25 | |
Shaveta Leekha | 8d2ba98 | 2014-02-26 16:06:30 +0530 | [diff] [blame] | 26 | static int8_t vsc16_tx_sfp_sgmii_aurora[8][2] = { {15, 7}, {0, 1}, |
| 27 | {7, 8}, {9, 0}, {5, 14}, |
| 28 | {4, 15}, {2, 12}, {12, 13} }; |
| 29 | |
York Sun | fda566d | 2016-11-18 11:56:57 -0800 | [diff] [blame] | 30 | #ifdef CONFIG_ARCH_B4420 |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 31 | static int8_t vsc16_tx_sgmii_lane_cd[8][2] = { {5, 14}, {4, 15}, |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 32 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
| 33 | #endif |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 34 | |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 35 | static const int8_t vsc16_tx_aurora[8][2] = { {2, 13}, {12, 12}, {-1, -1}, |
| 36 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
| 37 | |
| 38 | static const int8_t vsc16_rx_amc[8][2] = { {3, 15}, {2, 1}, {4, 8}, {10, 9}, |
| 39 | {11, 11}, {5, 10}, {6, 3}, {9, 12} }; |
| 40 | |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 41 | static int8_t vsc16_rx_sfp[8][2] = { {8, 15}, {0, 1}, {7, 8}, {1, 9}, |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 42 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
| 43 | |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 44 | static int8_t vsc16_rx_4sfp_sgmii_12_56[8][2] = { {8, 15}, {0, 1}, |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 45 | {7, 8}, {1, 9}, {14, 3}, {15, 12}, |
| 46 | {-1, -1}, {-1, -1} }; |
| 47 | |
| 48 | static const int8_t vsc16_rx_4sfp_sgmii_34[8][2] = { {8, 15}, {0, 1}, |
| 49 | {7, 8}, {1, 9}, {14, 11}, {15, 10}, |
| 50 | {-1, -1}, {-1, -1} }; |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 51 | |
Shaveta Leekha | 8d2ba98 | 2014-02-26 16:06:30 +0530 | [diff] [blame] | 52 | static int8_t vsc16_rx_sfp_sgmii_aurora[8][2] = { {8, 15}, {0, 1}, |
| 53 | {7, 8}, {1, 9}, {14, 11}, |
| 54 | {15, 10}, {13, 3}, {12, 12} }; |
| 55 | |
York Sun | fda566d | 2016-11-18 11:56:57 -0800 | [diff] [blame] | 56 | #ifdef CONFIG_ARCH_B4420 |
Shaohui Xie | 3d8095e | 2013-08-19 18:43:07 +0800 | [diff] [blame] | 57 | static int8_t vsc16_rx_sgmii_lane_cd[8][2] = { {14, 11}, {15, 10}, |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 58 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
| 59 | #endif |
| 60 | |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 61 | static const int8_t vsc16_rx_aurora[8][2] = { {13, 3}, {12, 12}, {-1, -1}, |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 62 | {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} }; |
| 63 | |
| 64 | static const int8_t vsc08_tx_amc[4][2] = { {2, 2}, {3, 3}, {7, 4}, {1, 5} }; |
| 65 | |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 66 | static const int8_t vsc08_tx_sfp[4][2] = { {2, 1}, {3, 0}, {7, 6}, {1, 7} }; |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 67 | |
| 68 | static const int8_t vsc08_rx_amc[4][2] = { {2, 3}, {3, 4}, {4, 7}, {5, 1} }; |
| 69 | |
Shaveta Leekha | 9320160 | 2013-03-25 07:40:17 +0000 | [diff] [blame] | 70 | static const int8_t vsc08_rx_sfp[4][2] = { {1, 3}, {0, 4}, {6, 7}, {7, 1} }; |
York Sun | 0789dc9 | 2012-12-23 19:25:27 +0000 | [diff] [blame] | 71 | |
| 72 | #endif |