usb: chipidea: add sys inputs for OTG fsm input
This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4dcf720c5d
commit
15f75defac
@@ -95,6 +95,7 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
|
||||
int ci_otg_fsm_work(struct ci_hdrc *ci);
|
||||
irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
|
||||
void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
|
||||
void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
|
||||
|
||||
#else
|
||||
|
||||
@@ -118,6 +119,11 @@ static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci)
|
||||
|
||||
}
|
||||
|
||||
static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __DRIVERS_USB_CHIPIDEA_OTG_FSM_H */
|
||||
|
Reference in New Issue
Block a user