lantiq: Add sensible hw-defaults for dwc2
[openwrt/openwrt.git] / target / linux / lantiq / patches-3.18 / 0041-USB-DWC2-add-ltq-params.patch
1 --- a/drivers/usb/dwc2/platform.c 2015-02-09 19:37:34.553109992 +0200
2 +++ b/drivers/usb/dwc2/platform.c 2015-02-09 19:38:30.090111260 +0200
3 @@ -105,6 +105,34 @@
4 .uframe_sched = -1,
5 };
6
7 +static const struct dwc2_core_params params_ltq = {
8 + .otg_cap = -1,
9 + .otg_ver = -1,
10 + .dma_enable = -1,
11 + .dma_desc_enable = -1,
12 + .speed = -1,
13 + .enable_dynamic_fifo = -1,
14 + .en_multiple_tx_fifo = -1,
15 + .host_rx_fifo_size = 240, /* 240 DWORDs */
16 + .host_nperio_tx_fifo_size = 240, /* 240 DWORDs */
17 + .host_perio_tx_fifo_size = 32, /* 32 DWORDs */
18 + .max_transfer_size = -1,
19 + .max_packet_count = -1,
20 + .host_channels = -1,
21 + .phy_type = -1,
22 + .phy_utmi_width = -1,
23 + .phy_ulpi_ddr = -1,
24 + .phy_ulpi_ext_vbus = -1,
25 + .i2c_enable = -1,
26 + .ulpi_fs_ls = -1,
27 + .host_support_fs_ls_low_power = -1,
28 + .host_ls_low_power_phy_clk = -1,
29 + .ts_dline = -1,
30 + .reload_ctl = -1,
31 + .ahbcfg = -1,
32 + .uframe_sched = -1,
33 +};
34 +
35 /**
36 * dwc2_driver_remove() - Called when the DWC_otg core is unregistered with the
37 * DWC_otg driver
38 @@ -128,6 +156,7 @@
39 static const struct of_device_id dwc2_of_match_table[] = {
40 { .compatible = "brcm,bcm2835-usb", .data = &params_bcm2835 },
41 { .compatible = "rockchip,rk3066-usb", .data = &params_rk3066 },
42 + { .compatible = "lantiq,ifxhcd-xrx200-dwc2", .data = &params_ltq },
43 { .compatible = "snps,dwc2", .data = NULL },
44 {},
45 };