b4860qds_crossbar_con.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright 2012 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. */
  19. #ifndef __CROSSBAR_CONNECTIONS_H__
  20. #define __CROSSBAR_CONNECTIONS_H__
  21. #define NUM_CON_VSC3316 8
  22. #define NUM_CON_VSC3308 4
  23. static const int8_t vsc16_tx_amc[8][2] = { {15, 3}, {0, 2}, {7, 4}, {9, 10},
  24. {5, 11}, {4, 5}, {2, 6}, {12, 9} };
  25. static const int8_t vsc16_tx_sfp[8][2] = { {15, 7}, {0, 1}, {7, 8}, {9, 0},
  26. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  27. static const int8_t vsc16_tx_4sfp_sgmii_12_56[8][2] = { {15, 7}, {0, 1},
  28. {7, 8}, {9, 0}, {2, 14}, {12, 15},
  29. {-1, -1}, {-1, -1} };
  30. static const int8_t vsc16_tx_4sfp_sgmii_34[8][2] = { {15, 7}, {0, 1},
  31. {7, 8}, {9, 0}, {5, 14}, {4, 15},
  32. {-1, -1}, {-1, -1} };
  33. #ifdef CONFIG_PPC_B4420
  34. static const int8_t vsc16_tx_sgmii_lane_cd[8][2] = { {5, 14}, {4, 15},
  35. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  36. #endif
  37. static const int8_t vsc16_tx_aurora[8][2] = { {2, 13}, {12, 12}, {-1, -1},
  38. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  39. static 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. static const int8_t vsc16_rx_sfp[8][2] = { {8, 15}, {0, 1}, {7, 8}, {1, 9},
  42. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  43. static const int8_t vsc16_rx_4sfp_sgmii_12_56[8][2] = { {8, 15}, {0, 1},
  44. {7, 8}, {1, 9}, {14, 3}, {15, 12},
  45. {-1, -1}, {-1, -1} };
  46. static const int8_t vsc16_rx_4sfp_sgmii_34[8][2] = { {8, 15}, {0, 1},
  47. {7, 8}, {1, 9}, {14, 11}, {15, 10},
  48. {-1, -1}, {-1, -1} };
  49. #ifdef CONFIG_PPC_B4420
  50. static const int8_t vsc16_rx_sgmii_lane_cd[8][2] = { {14, 11}, {15, 10},
  51. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  52. #endif
  53. static const int8_t vsc16_rx_aurora[8][2] = { {13, 3}, {12, 12}, {-1, -1},
  54. {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1}, {-1, -1} };
  55. static const int8_t vsc08_tx_amc[4][2] = { {2, 2}, {3, 3}, {7, 4}, {1, 5} };
  56. static const int8_t vsc08_tx_sfp[4][2] = { {2, 1}, {3, 0}, {7, 6}, {1, 7} };
  57. static const int8_t vsc08_rx_amc[4][2] = { {2, 3}, {3, 4}, {4, 7}, {5, 1} };
  58. static const int8_t vsc08_rx_sfp[4][2] = { {1, 3}, {0, 4}, {6, 7}, {7, 1} };
  59. #endif