0041-USB-DWC2-add-ltq-params.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- a/drivers/usb/dwc2/platform.c
  2. +++ b/drivers/usb/dwc2/platform.c
  3. @@ -145,6 +145,34 @@ static int __dwc2_lowlevel_hw_enable(str
  4. return ret;
  5. }
  6. +static const struct dwc2_core_params params_ltq = {
  7. + .otg_cap = 2, /* non-HNP/non-SRP */
  8. + .otg_ver = -1,
  9. + .dma_enable = -1,
  10. + .dma_desc_enable = -1,
  11. + .speed = -1,
  12. + .enable_dynamic_fifo = -1,
  13. + .en_multiple_tx_fifo = -1,
  14. + .host_rx_fifo_size = 288, /* 288 DWORDs */
  15. + .host_nperio_tx_fifo_size = 128, /* 128 DWORDs */
  16. + .host_perio_tx_fifo_size = 96, /* 96 DWORDs */
  17. + .max_transfer_size = -1,
  18. + .max_packet_count = 511,
  19. + .host_channels = -1,
  20. + .phy_type = -1,
  21. + .phy_utmi_width = -1,
  22. + .phy_ulpi_ddr = -1,
  23. + .phy_ulpi_ext_vbus = -1,
  24. + .i2c_enable = -1,
  25. + .ulpi_fs_ls = -1,
  26. + .host_support_fs_ls_low_power = -1,
  27. + .host_ls_low_power_phy_clk = -1,
  28. + .ts_dline = -1,
  29. + .reload_ctl = -1,
  30. + .ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT,
  31. + .uframe_sched = -1,
  32. +};
  33. +
  34. /**
  35. * dwc2_lowlevel_hw_enable - enable platform lowlevel hw resources
  36. * @hsotg: The driver state
  37. @@ -310,6 +338,8 @@ static int dwc2_driver_remove(struct pla
  38. static const struct of_device_id dwc2_of_match_table[] = {
  39. { .compatible = "brcm,bcm2835-usb", .data = &params_bcm2835 },
  40. { .compatible = "rockchip,rk3066-usb", .data = &params_rk3066 },
  41. + { .compatible = "lantiq,ifxhcd-arx100-dwc2", .data = &params_ltq },
  42. + { .compatible = "lantiq,ifxhcd-xrx200-dwc2", .data = &params_ltq },
  43. { .compatible = "snps,dwc2", .data = NULL },
  44. { .compatible = "samsung,s3c6400-hsotg", .data = NULL},
  45. {},