This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / usb / gadget / omap_udc.h
index c9e6854..bd5420c 100644 (file)
@@ -146,14 +146,11 @@ struct omap_ep {
        u8                              bmAttributes;
        unsigned                        double_buf:1;
        unsigned                        stopped:1;
-       unsigned                        fnf:1;
+       unsigned                        ackwait:1;
        unsigned                        has_dma:1;
-       u8                              ackwait;
        u8                              dma_channel;
-       u16                             dma_counter;
        int                             lch;
        struct omap_udc                 *udc;
-       struct timer_list               timer;
 };
 
 struct omap_udc {
@@ -171,6 +168,7 @@ struct omap_udc {
        unsigned                        ep0_set_config:1;
        unsigned                        ep0_reset_config:1;
        unsigned                        ep0_setup:1;
+       unsigned                        hmc:6;
 
        struct completion               *done;
 };
@@ -195,14 +193,7 @@ struct omap_udc {
 
 /*-------------------------------------------------------------------------*/
 
-#define        MOD_CONF_CTRL_0_REG     __REG32(MOD_CONF_CTRL_0)
-#define        VBUS_W2FC_1510          (1 << 17)       /* 0 gpio0, 1 dvdd2 pin */
-
-#define        FUNC_MUX_CTRL_0_REG     __REG32(FUNC_MUX_CTRL_0)
-#define        VBUS_CTRL_1510          (1 << 19)       /* 1 connected (software) */
-#define        VBUS_MODE_1510          (1 << 18)       /* 0 hardware, 1 software */
-
-#define        HMC_1510        ((MOD_CONF_CTRL_0_REG >> 1) & 0x3f)
+// #define     HMC_1510        ((MOD_CONF_CTRL_0_REG >> 1) & 0x3f)
 #define        HMC_1610        (OTG_SYSCON_2_REG & 0x3f)
-#define        HMC             (cpu_is_omap15xx() ? HMC_1510 : HMC_1610)
+#define        HMC              HMC_1610