b4860qds_crossbar_con.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2012 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef __CROSSBAR_CONNECTIONS_H__
  6. #define __CROSSBAR_CONNECTIONS_H__
  7. #define NUM_CON_VSC3316 8
  8. #define NUM_CON_VSC3308 4
  9. static const int8_t vsc16_tx_amc[8][2] = { {15, 3}, {0, 2}, {7, 4}, {9, 10},
  10. {5, 11}, {4, 5}, {2, 6}, {12, 9} };
  11. static int8_t vsc16_tx_sfp[8][2] = { {15, 7}, {0, 1}, {7, 8}, {9, 0},
  12. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  13. static int8_t vsc16_tx_4sfp_sgmii_12_56[8][2] = { {15, 7}, {0, 1},
  14. {7, 8}, {9, 0}, {2, 14}, {12, 15},
  15. {-1, -1}, {-1, -1} };
  16. static const int8_t vsc16_tx_4sfp_sgmii_34[8][2] = { {15, 7}, {0, 1},
  17. {7, 8}, {9, 0}, {5, 14}, {4, 15},
  18. {-1, -1}, {-1, -1} };
  19. static int8_t vsc16_tx_sfp_sgmii_aurora[8][2] = { {15, 7}, {0, 1},
  20. {7, 8}, {9, 0}, {5, 14},
  21. {4, 15}, {2, 12}, {12, 13} };
  22. #ifdef CONFIG_ARCH_B4420
  23. static int8_t vsc16_tx_sgmii_lane_cd[8][2] = { {5, 14}, {4, 15},
  24. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  25. #endif
  26. static const int8_t vsc16_tx_aurora[8][2] = { {2, 13}, {12, 12}, {-1, -1},
  27. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  28. static const int8_t vsc16_rx_amc[8][2] = { {3, 15}, {2, 1}, {4, 8}, {10, 9},
  29. {11, 11}, {5, 10}, {6, 3}, {9, 12} };
  30. static int8_t vsc16_rx_sfp[8][2] = { {8, 15}, {0, 1}, {7, 8}, {1, 9},
  31. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  32. static int8_t vsc16_rx_4sfp_sgmii_12_56[8][2] = { {8, 15}, {0, 1},
  33. {7, 8}, {1, 9}, {14, 3}, {15, 12},
  34. {-1, -1}, {-1, -1} };
  35. static const int8_t vsc16_rx_4sfp_sgmii_34[8][2] = { {8, 15}, {0, 1},
  36. {7, 8}, {1, 9}, {14, 11}, {15, 10},
  37. {-1, -1}, {-1, -1} };
  38. static int8_t vsc16_rx_sfp_sgmii_aurora[8][2] = { {8, 15}, {0, 1},
  39. {7, 8}, {1, 9}, {14, 11},
  40. {15, 10}, {13, 3}, {12, 12} };
  41. #ifdef CONFIG_ARCH_B4420
  42. static int8_t vsc16_rx_sgmii_lane_cd[8][2] = { {14, 11}, {15, 10},
  43. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  44. #endif
  45. static const int8_t vsc16_rx_aurora[8][2] = { {13, 3}, {12, 12}, {-1, -1},
  46. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  47. static const int8_t vsc08_tx_amc[4][2] = { {2, 2}, {3, 3}, {7, 4}, {1, 5} };
  48. static const int8_t vsc08_tx_sfp[4][2] = { {2, 1}, {3, 0}, {7, 6}, {1, 7} };
  49. static const int8_t vsc08_rx_amc[4][2] = { {2, 3}, {3, 4}, {4, 7}, {5, 1} };
  50. static const int8_t vsc08_rx_sfp[4][2] = { {1, 3}, {0, 4}, {6, 7}, {7, 1} };
  51. #endif