diff options
author | Li Jun <b47624@freescale.com> | 2014-05-17 03:15:34 +0800 |
---|---|---|
committer | Li Jun <B47624@freescale.com> | 2014-06-26 16:50:06 +0800 |
commit | 1cdff41f78377a5c318013f7baa9c56880a56595 (patch) | |
tree | 40748e1b30c8d0cd2fb6538b835592e9cdbfee10 /include | |
parent | e4f6fd0ec67b34ca9ed40dfd009e75c66fb71d94 (diff) |
ENGR00319720-3 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>
Diffstat (limited to 'include')
-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 1deea98838b2..d4bf33b1ad6f 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, @@ -240,6 +248,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 */ |