diff options
author | Li Jun <b47624@freescale.com> | 2014-05-17 03:15:34 +0800 |
---|---|---|
committer | Li Jun <jun.li@freescale.com> | 2015-01-21 22:11:11 +0800 |
commit | 3a4d19586165d19975001caeb8697381379f666b (patch) | |
tree | 1edb7de5304e8309b92cb347d51cc06842ebe94e /include | |
parent | bb64937134ae6665d0f56d8b5f4266f82a7e5e6d (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 3d39d5195cc9..92ce7595b4d7 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, @@ -241,6 +249,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 */ |