phy-default-porting-layer.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef PHY_DEFAULT_PORTING_LAYER_H
  8. #define PHY_DEFAULT_PORTING_LAYER_H
  9. #define MAX_LANE_NR 6
  10. #warning "Using default comphy params - you may need to suit them to your board"
  11. static const struct xfi_params
  12. xfi_static_values_tab[AP_NUM][CP_NUM][MAX_LANE_NR] = {
  13. [0 ... AP_NUM-1][0 ... CP_NUM-1][0 ... MAX_LANE_NR-1] = {
  14. .g1_ffe_res_sel = 0x3, .g1_ffe_cap_sel = 0xf, .align90 = 0x5f,
  15. .g1_dfe_res = 0x2, .g1_amp = 0x1c, .g1_emph = 0xe,
  16. .g1_emph_en = 0x1, .g1_tx_amp_adj = 0x1, .g1_tx_emph_en = 0x1,
  17. .g1_tx_emph = 0x0, .g1_rx_selmuff = 0x1, .g1_rx_selmufi = 0x0,
  18. .g1_rx_selmupf = 0x2, .g1_rx_selmupi = 0x2, .valid = 1
  19. }
  20. };
  21. static const struct sata_params
  22. sata_static_values_tab[AP_NUM][CP_NUM][MAX_LANE_NR] = {
  23. [0 ... AP_NUM-1][0 ... CP_NUM-1][0 ... MAX_LANE_NR-1] = {
  24. .g1_amp = 0x8, .g2_amp = 0xa, .g3_amp = 0x1e,
  25. .g1_emph = 0x1, .g2_emph = 0x2, .g3_emph = 0xe,
  26. .g1_emph_en = 0x1, .g2_emph_en = 0x1, .g3_emph_en = 0x1,
  27. .g1_tx_amp_adj = 0x1, .g2_tx_amp_adj = 0x1,
  28. .g3_tx_amp_adj = 0x1,
  29. .g1_tx_emph_en = 0x0, .g2_tx_emph_en = 0x0,
  30. .g3_tx_emph_en = 0x0,
  31. .g1_tx_emph = 0x1, .g2_tx_emph = 0x1, .g3_tx_emph = 0x1,
  32. .g3_dfe_res = 0x1, .g3_ffe_res_sel = 0x4, .g3_ffe_cap_sel = 0xf,
  33. .align90 = 0x61,
  34. .g1_rx_selmuff = 0x3, .g2_rx_selmuff = 0x3,
  35. .g3_rx_selmuff = 0x3,
  36. .g1_rx_selmufi = 0x0, .g2_rx_selmufi = 0x0,
  37. .g3_rx_selmufi = 0x3,
  38. .g1_rx_selmupf = 0x1, .g2_rx_selmupf = 0x1,
  39. .g3_rx_selmupf = 0x2,
  40. .g1_rx_selmupi = 0x0, .g2_rx_selmupi = 0x0,
  41. .g3_rx_selmupi = 0x2,
  42. .polarity_invert = COMPHY_POLARITY_NO_INVERT,
  43. .valid = 0x1
  44. },
  45. };
  46. static const struct usb_params
  47. usb_static_values_tab[AP_NUM][CP_NUM][MAX_LANE_NR] = {
  48. [0 ... AP_NUM-1][0 ... CP_NUM-1][0 ... MAX_LANE_NR-1] = {
  49. .polarity_invert = COMPHY_POLARITY_NO_INVERT
  50. },
  51. };
  52. #endif /* PHY_DEFAULT_PORTING_LAYER_H */