update for rk29 config switch

This commit is contained in:
yangkai
2012-08-02 11:24:17 +08:00
parent 394711f6ff
commit 6519f4a136
4 changed files with 14 additions and 5 deletions

View File

@@ -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)
{

View File

@@ -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
View 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:

View File

@@ -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 = {