update for rk29 config switch
authoryangkai <yk@rock-chips.com>
Thu, 2 Aug 2012 03:24:17 +0000 (11:24 +0800)
committeryangkai <yk@rock-chips.com>
Thu, 2 Aug 2012 03:24:17 +0000 (11:24 +0800)
drivers/usb/dwc_otg/dwc_otg_cil.c
drivers/usb/dwc_otg/dwc_otg_pcd.c
drivers/usb/gadget/epautoconf.c [changed mode: 0644->0755]
drivers/usb/gadget/f_adb.c

index ec4f27fb998149e9acc307309e1e7990bc1a090f..9f44adc2796fb97ee8578e76e766f9bf04886ee0 100755 (executable)
@@ -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)
        {
index b6e4d28c4d66a55b05cd21600197aaec4b160539..6f6d975e09c69a3868b2cc7998308d57e0e634d8 100755 (executable)
@@ -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",        
old mode 100644 (file)
new mode 100755 (executable)
index 9b7360f..23e3077
@@ -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:
index 83e1f59385a2f3f697b5433a00c6b2e1796502ae..076da888fae8e6566cfb5d01216acb6bc8782a8c 100755 (executable)
@@ -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 = {