mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
update for rk29 config switch
This commit is contained in:
@@ -729,8 +729,8 @@ void dwc_otg_core_dev_init(dwc_otg_core_if_t *_core_if)
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[0], 0x01000130 ); //ep1 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[1], 0x00800230 ); //ep3 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[2], 0x008002b0 ); //ep5 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[2], 0x00800330 ); //ep7 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[2], 0x001003b0 ); //ep9 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[3], 0x00800330 ); //ep7 tx fifo
|
||||
dwc_write_reg32( &global_regs->dptxfsiz_dieptxf[4], 0x001003b0 ); //ep9 tx fifo
|
||||
#endif
|
||||
if(_core_if->en_multiple_tx_fifo && _core_if->dma_enable)
|
||||
{
|
||||
|
||||
@@ -304,7 +304,7 @@ static int dwc_otg_pcd_ep_enable(struct usb_ep *_ep,
|
||||
|
||||
if(ep->dwc_ep.is_in)
|
||||
{
|
||||
#ifdef CONFIG_ARCH_RK30
|
||||
#ifndef CONFIG_ARCH_RK29
|
||||
if(!pcd->otg_dev->core_if->en_multiple_tx_fifo)
|
||||
{
|
||||
ep->dwc_ep.tx_fifo_num = 0;
|
||||
@@ -1353,7 +1353,11 @@ void dwc_otg_pcd_reinit(dwc_otg_pcd_t *_pcd)
|
||||
"ep2in",
|
||||
"ep3in",
|
||||
"ep4in",
|
||||
#ifdef CONFIG_ARCH_RK29
|
||||
"ep5in-int",
|
||||
#else
|
||||
"ep5in",
|
||||
#endif
|
||||
"ep6in",
|
||||
"ep7in",
|
||||
"ep8in",
|
||||
|
||||
7
drivers/usb/gadget/epautoconf.c
Normal file → Executable file
7
drivers/usb/gadget/epautoconf.c
Normal file → Executable file
@@ -94,7 +94,7 @@ ep_matches (
|
||||
/* bulk endpoints handle interrupt transfers,
|
||||
* except the toggle-quirky iso-synch kind
|
||||
*/
|
||||
if ('s' == tmp[2]) // == "-iso"
|
||||
if ('n' != tmp[2]) // == "-int"
|
||||
return 0;
|
||||
/* for now, avoid PXA "interrupt-in";
|
||||
* it's documented as never using DATA1.
|
||||
@@ -112,6 +112,10 @@ ep_matches (
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
#ifdef CONFIG_ARCH_RK29
|
||||
if (USB_ENDPOINT_XFER_INT == type)
|
||||
return 0;
|
||||
#endif
|
||||
tmp = ep->name + strlen (ep->name);
|
||||
}
|
||||
|
||||
@@ -145,6 +149,7 @@ ep_matches (
|
||||
/* INT: limit 64 bytes full speed, 1024 high speed */
|
||||
if (!gadget->is_dualspeed && max > 64)
|
||||
return 0;
|
||||
break;
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case USB_ENDPOINT_XFER_ISOC:
|
||||
|
||||
@@ -72,7 +72,7 @@ static struct usb_endpoint_descriptor adb_highspeed_in_desc = {
|
||||
.bDescriptorType = USB_DT_ENDPOINT,
|
||||
.bEndpointAddress = USB_DIR_IN,
|
||||
.bmAttributes = USB_ENDPOINT_XFER_BULK,
|
||||
.wMaxPacketSize = __constant_cpu_to_le16(64),
|
||||
.wMaxPacketSize = __constant_cpu_to_le16(512),
|
||||
};
|
||||
|
||||
static struct usb_endpoint_descriptor adb_highspeed_out_desc = {
|
||||
|
||||
Reference in New Issue
Block a user