s5pc1xx: usb: remove unused features
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 26 Feb 2010 05:51:53 +0000 (14:51 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 26 Feb 2010 05:51:53 +0000 (14:51 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
cpu/arm_cortexa8/s5pc1xx/usb-hs-otg.c

index 8cc6181..6d87337 100644 (file)
@@ -25,8 +25,6 @@
 #include <asm/arch/power.h>
 #include "usb-hs-otg.h"
 
-#define SUSPEND_RESUME_ON 0
-
 u32 remode_wakeup;
 u16 config_value;
 
@@ -1483,11 +1481,6 @@ static void s5p_usb_reset(void)
        /*clear device address */
        s5pc1xx_otg_write_reg(s5pc1xx_otg_read_reg(OTG_DCFG) & ~(0x7f << 4),
                        OTG_DCFG);
-
-       if (SUSPEND_RESUME_ON) {
-               s5pc1xx_otg_write_reg(s5pc1xx_otg_read_reg(OTG_PCGCCTRL) & ~(1 << 0),
-                               OTG_PCGCCTRL);
-       }
 }
 
 static int s5p_usb_set_init(void)
@@ -1623,24 +1616,12 @@ void s5p_udc_int_hndlr(void)
                        return;
        }
 
-       if (int_status & INT_RESUME) {
+       if (int_status & INT_RESUME)
                s5pc1xx_otg_write_reg(INT_RESUME, OTG_GINTSTS);
 
-               if (SUSPEND_RESUME_ON) {
-                       s5pc1xx_otg_write_reg(s5pc1xx_otg_read_reg(OTG_PCGCCTRL) &
-                                       ~(1 << 0), OTG_PCGCCTRL);
-               }
-       }
-
-       if (int_status & INT_SUSPEND) {
+       if (int_status & INT_SUSPEND)
                s5pc1xx_otg_write_reg(INT_SUSPEND, OTG_GINTSTS);
 
-               if (SUSPEND_RESUME_ON) {
-                       s5pc1xx_otg_write_reg(s5pc1xx_otg_read_reg(OTG_PCGCCTRL) |
-                                       (1 << 0), OTG_PCGCCTRL);
-               }
-       }
-
        if (int_status & INT_RX_FIFO_NOT_EMPTY) {
                s5pc1xx_otg_write_reg(INT_RESUME | INT_OUT_EP | INT_IN_EP |
                                INT_ENUMDONE | INT_RESET | INT_SUSPEND,