usb: dwc2: Set AHB burst size to INCR
Changed AHB burst size from INCR4 to INCR by default. With this value driver shows excellent DMA performance. Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Razmik Karapetyan <razmik@synopsys.com> Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
d1ac8c802d
commit
1b52d2fac4
|
@ -408,7 +408,7 @@ enum dwc2_ep0_state {
|
||||||
* @ahbcfg: This field allows the default value of the GAHBCFG
|
* @ahbcfg: This field allows the default value of the GAHBCFG
|
||||||
* register to be overridden
|
* register to be overridden
|
||||||
* -1 - GAHBCFG value will be set to 0x06
|
* -1 - GAHBCFG value will be set to 0x06
|
||||||
* (INCR4, default)
|
* (INCR, default)
|
||||||
* all others - GAHBCFG value will be overridden with
|
* all others - GAHBCFG value will be overridden with
|
||||||
* this value
|
* this value
|
||||||
* Not all bits can be controlled like this, the
|
* Not all bits can be controlled like this, the
|
||||||
|
|
|
@ -280,7 +280,7 @@ static void dwc2_set_default_params(struct dwc2_hsotg *hsotg)
|
||||||
p->hibernation = false;
|
p->hibernation = false;
|
||||||
p->max_packet_count = hw->max_packet_count;
|
p->max_packet_count = hw->max_packet_count;
|
||||||
p->max_transfer_size = hw->max_transfer_size;
|
p->max_transfer_size = hw->max_transfer_size;
|
||||||
p->ahbcfg = GAHBCFG_HBSTLEN_INCR4 << GAHBCFG_HBSTLEN_SHIFT;
|
p->ahbcfg = GAHBCFG_HBSTLEN_INCR << GAHBCFG_HBSTLEN_SHIFT;
|
||||||
|
|
||||||
if ((hsotg->dr_mode == USB_DR_MODE_HOST) ||
|
if ((hsotg->dr_mode == USB_DR_MODE_HOST) ||
|
||||||
(hsotg->dr_mode == USB_DR_MODE_OTG)) {
|
(hsotg->dr_mode == USB_DR_MODE_OTG)) {
|
||||||
|
|
Loading…
Reference in New Issue