aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/etc/uci-defaults
Commit message (Expand)AuthorAgeFilesLines
* mvebu: split base-files across subtargetsAdrian Schmutzler2020-01-212-79/+0
* mvebu: use device-tree board detectionTomasz Maciej Nowak2019-05-112-3/+3
* mvebu: add support for WRT32X (venom)Michael Gray2018-05-141-1/+1
* treewide: use the generic board_name functionMathias Kresin2017-07-152-4/+4
* mvebu: set fan_ctrl.sh only on mambaHans Geiblinger2017-01-241-0/+23
* mvebu: fixup wifi macs for Linksys boardsImre Kaloz2015-12-101-0/+17
* mvebu: switch network and led config defaults to board detection frameworkJo-Philipp Wich2015-11-302-83/+0
* Revert "mvebu: migrate led and network setup to board detection framework"Jo-Philipp Wich2015-11-222-0/+83
* mvebu: migrate led and network setup to board detection frameworkJo-Philipp Wich2015-11-202-83/+0
* mvebu: add support for the Linksys WRT1900ACS (Shelby)Imre Kaloz2015-10-083-1/+9
* mvebu: better integrate xp-gpLuka Perkov2015-04-161-0/+3
* mvebu: add support for the Linksys Caiman and CobraImre Kaloz2015-04-163-1/+17
* mvebu: better integrate 385-ap-dbLuka Perkov2015-04-151-1/+3
* mvebu: migrate mamba support to the upstreamed codeImre Kaloz2015-04-123-3/+3
* mvebu: handle other SKUs as wellImre Kaloz2015-04-121-2/+11
* mvebu: set default regdomainImre Kaloz2015-03-201-0/+30
* mvebu: set default WRT1900AC switch configImre Kaloz2015-02-231-1/+4
* targets: files in uci-defaults do not need to be executablesLuka Perkov2015-02-071-0/+0
* mvebu: fixups for the new driverImre Kaloz2015-01-161-3/+3
* enable handling of the wan led on the WRT1900ACImre Kaloz2014-07-101-1/+1
* set led triggers for the Linksys WRT1900ACImre Kaloz2014-07-011-0/+22
* automatically generate network configImre Kaloz2014-06-291-0/+29
d max_packet_count should work, so remove it. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- drivers/usb/dwc2/platform.c | 46 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -92,7 +92,14 @@ static void dwc2_set_rk_params(struct dw p->power_down = DWC2_POWER_DOWN_PARAM_NONE; } -static void dwc2_set_ltq_params(struct dwc2_hsotg *hsotg) +static void dwc2_set_ltq_danube_params(struct dwc2_hsotg *hsotg) +{ + struct dwc2_core_params *p = &hsotg->params; + + p->otg_cap = DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE; +} + +static void dwc2_set_ltq_ase_params(struct dwc2_hsotg *hsotg) { struct dwc2_core_params *p = &hsotg->params; @@ -100,12 +107,20 @@ static void dwc2_set_ltq_params(struct d p->host_rx_fifo_size = 288; p->host_nperio_tx_fifo_size = 128; p->host_perio_tx_fifo_size = 96; - p->max_transfer_size = 65535; - p->max_packet_count = 511; p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT; } +static void dwc2_set_ltq_xrx200_params(struct dwc2_hsotg *hsotg) +{ + struct dwc2_core_params *p = &hsotg->params; + + p->otg_cap = DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE; + p->host_rx_fifo_size = 288; + p->host_nperio_tx_fifo_size = 128; + p->host_perio_tx_fifo_size = 136; +} + static void dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg) { struct dwc2_core_params *p = &hsotg->params; @@ -196,8 +211,11 @@ const struct of_device_id dwc2_of_match_ { .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params }, { .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params }, { .compatible = "rockchip,rk3066-usb", .data = dwc2_set_rk_params }, - { .compatible = "lantiq,arx100-usb", .data = dwc2_set_ltq_params }, - { .compatible = "lantiq,xrx200-usb", .data = dwc2_set_ltq_params }, + { .compatible = "lantiq,danube-usb", .data = &dwc2_set_ltq_danube_params }, + { .compatible = "lantiq,ase-usb", .data = &dwc2_set_ltq_ase_params }, + { .compatible = "lantiq,arx100-usb", .data = &dwc2_set_ltq_ase_params }, + { .compatible = "lantiq,xrx200-usb", .data = &dwc2_set_ltq_xrx200_params }, + { .compatible = "lantiq,xrx300-usb", .data = &dwc2_set_ltq_xrx200_params }, { .compatible = "snps,dwc2" }, { .compatible = "samsung,s3c6400-hsotg", .data = dwc2_set_s3c6400_params },