aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/common.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-28 03:41:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-29 20:24:35 -0400
commitb002ff6e268b6024d6927a1ce330a14ca162b6ab (patch)
tree83bd5dde6f872396cd42762b59f96cf9c024d30a /drivers/usb/renesas_usbhs/common.h
parentbc57381e634782009b1cb2e86b18013699ada576 (diff)
usb: renesas_usbhs: add autonomy mode
Current renesas_usbhs was designed to save power when USB is not connected. And it assumed platform uses callback to notify connection/disconnection by external interrupt. But some SuperH / platform board doesn't have such feature. This patch adds autonomy mode which detect USB connection/disconnection by internal interrupt. But power will be always ON when autonomy mode is selected. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.h')
-rw-r--r--drivers/usb/renesas_usbhs/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/common.h b/drivers/usb/renesas_usbhs/common.h
index 0157eb805cf6..0aadcb402764 100644
--- a/drivers/usb/renesas_usbhs/common.h
+++ b/drivers/usb/renesas_usbhs/common.h
@@ -105,6 +105,7 @@ struct usbhs_priv;
105#define SACKE (1 << 4) /* Setup Transaction ACK Interrupt Enable */ 105#define SACKE (1 << 4) /* Setup Transaction ACK Interrupt Enable */
106 106
107/* INTSTS0 */ 107/* INTSTS0 */
108#define VBINT (1 << 15) /* VBUS0_0 and VBUS1_0 Interrupt Status */
108#define DVST (1 << 12) /* Device State Transition Interrupt Status */ 109#define DVST (1 << 12) /* Device State Transition Interrupt Status */
109#define CTRT (1 << 11) /* Control Stage Interrupt Status */ 110#define CTRT (1 << 11) /* Control Stage Interrupt Status */
110#define BEMP (1 << 10) /* Buffer Empty Interrupt Status */ 111#define BEMP (1 << 10) /* Buffer Empty Interrupt Status */
@@ -182,6 +183,8 @@ struct usbhs_priv {
182 183
183 spinlock_t lock; 184 spinlock_t lock;
184 185
186 u32 flags;
187
185 /* 188 /*
186 * module control 189 * module control
187 */ 190 */