diff options
author | Li Jun <b47624@freescale.com> | 2014-05-17 03:15:34 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 10:57:01 -0600 |
commit | 2ddc3ad014efe67b6331e385f04527ee76c7b670 (patch) | |
tree | 8a06172a51768c49339e4b8f621d2f137221d3fa /include/linux | |
parent | 3ae4a332338e5a8e1ae1a6e48e952f13312ac86e (diff) |
MLK-11340-30 usb: common: otg-fsm: add HNP polling request sending funciton
This patch adds OTG status selector request sending function, can be used
to poll peripheral if it wants to be host.
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit aeb26447ee561dcd525448a8542a1912a581a1e8)
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/otg-fsm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h index 733e21ba9a99..5743f44584fa 100644 --- a/include/linux/usb/otg-fsm.h +++ b/include/linux/usb/otg-fsm.h @@ -40,6 +40,14 @@ #define PROTO_HOST (1) #define PROTO_GADGET (2) +#define OTG_STS_SELECTOR 0xF000 /* OTG status selector, according to + * OTG and EH 2.0 Charpter 6.2.3 + * Table:6-4 + */ +#define HOST_REQUEST_FLAG 1 /* Host request flag, according to + * OTG and EH 2.0 Charpter 6.2.3 + * Table:6-5 + */ enum otg_fsm_timer { /* Standard OTG timers */ A_WAIT_VRISE, @@ -243,6 +251,7 @@ static inline int otg_start_gadget(struct otg_fsm *fsm, int on) return fsm->ops->start_gadget(fsm, on); } +int otg_hnp_polling(struct otg_fsm *fsm); int otg_statemachine(struct otg_fsm *fsm); #endif /* __LINUX_USB_OTG_FSM_H */ |