usb: renesas_usbhs: add autonomy mode
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 28 Apr 2011 07:41:20 +0000 (16:41 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:35 +0000 (17:24 -0700)
commitb002ff6e268b6024d6927a1ce330a14ca162b6ab
tree83bd5dde6f872396cd42762b59f96cf9c024d30a
parentbc57381e634782009b1cb2e86b18013699ada576
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>
drivers/usb/renesas_usbhs/common.c
drivers/usb/renesas_usbhs/common.h
drivers/usb/renesas_usbhs/mod.c
drivers/usb/renesas_usbhs/mod.h