platform_data.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * platform_data.h - USB DWC3 Platform Data Support
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
  5. * Author: Felipe Balbi <balbi@ti.com>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 of
  9. * the License as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include <linux/usb/ch9.h>
  20. #include <linux/usb/otg.h>
  21. struct dwc3_platform_data {
  22. enum usb_device_speed maximum_speed;
  23. enum usb_dr_mode dr_mode;
  24. bool tx_fifo_resize;
  25. bool usb3_lpm_capable;
  26. unsigned is_utmi_l1_suspend:1;
  27. u8 hird_threshold;
  28. u8 lpm_nyet_threshold;
  29. unsigned disable_scramble_quirk:1;
  30. unsigned has_lpm_erratum:1;
  31. unsigned u2exit_lfps_quirk:1;
  32. unsigned u2ss_inp3_quirk:1;
  33. unsigned req_p1p2p3_quirk:1;
  34. unsigned del_p1p2p3_quirk:1;
  35. unsigned del_phy_power_chg_quirk:1;
  36. unsigned lfps_filter_quirk:1;
  37. unsigned rx_detect_poll_quirk:1;
  38. unsigned dis_u3_susphy_quirk:1;
  39. unsigned dis_u2_susphy_quirk:1;
  40. unsigned dis_enblslpm_quirk:1;
  41. unsigned tx_de_emphasis_quirk:1;
  42. unsigned tx_de_emphasis:2;
  43. u32 fladj_value;
  44. const char *hsphy_interface;
  45. };