mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-25 07:06:40 +08:00
57677be5ef
This patch adds OTG fsm related initialization when do otg init, add a seperate file for OTG fsm related utilities. 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>
30 lines
596 B
C
30 lines
596 B
C
/*
|
|
* Copyright (C) 2014 Freescale Semiconductor, Inc.
|
|
*
|
|
* Author: Jun Li
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __DRIVERS_USB_CHIPIDEA_OTG_FSM_H
|
|
#define __DRIVERS_USB_CHIPIDEA_OTG_FSM_H
|
|
|
|
#include <linux/usb/otg-fsm.h>
|
|
|
|
#ifdef CONFIG_USB_OTG_FSM
|
|
|
|
int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
|
|
|
|
#else
|
|
|
|
static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __DRIVERS_USB_CHIPIDEA_OTG_FSM_H */
|