diff options
author | kuninori.morimoto.gx@renesas.com <kuninori.morimoto.gx@renesas.com> | 2012-10-15 23:24:19 -0700 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-16 13:09:50 +0300 |
commit | 4cd2f5998757a41038deb55a0cb8319bdf67575a (patch) | |
tree | 081ee4cedaea1ceedb4e7d524d50b978d55966fc /drivers/usb/renesas_usbhs/common.c | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
download | lwn-4cd2f5998757a41038deb55a0cb8319bdf67575a.tar.gz lwn-4cd2f5998757a41038deb55a0cb8319bdf67575a.zip |
usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support
This patch adds usbhs_sys_function_pullup() to control
D+ line for USB function, and enabled pullup support on mod_gadget.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 072edc1cc55f..3bf922ab045e 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -132,6 +132,11 @@ void usbhs_sys_function_ctrl(struct usbhs_priv *priv, int enable) usbhs_bset(priv, SYSCFG, mask, enable ? val : 0); } +void usbhs_sys_function_pullup(struct usbhs_priv *priv, int enable) +{ + usbhs_bset(priv, SYSCFG, DPRPU, enable ? DPRPU : 0); +} + void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode) { usbhs_write(priv, TESTMODE, mode); |