blob: 7349267541130c9388b67466e0fe15bdf7595bec [file] [log] [blame]
Peter Chenc10b4f02013-08-14 12:44:06 +03001/*
Peter Chen5332ff12014-01-10 13:51:31 +08002 * Copyright (C) 2013-2014 Freescale Semiconductor, Inc.
Peter Chenc10b4f02013-08-14 12:44:06 +03003 *
4 * Author: Peter Chen
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __DRIVERS_USB_CHIPIDEA_OTG_H
12#define __DRIVERS_USB_CHIPIDEA_OTG_H
13
Li Jun0c33bf72014-04-23 15:56:38 +080014u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
15void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
Peter Chenc10b4f02013-08-14 12:44:06 +030016int ci_hdrc_otg_init(struct ci_hdrc *ci);
Peter Chencbec6bd2013-08-14 12:44:10 +030017void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
18enum ci_role ci_otg_role(struct ci_hdrc *ci);
Peter Chena107f8c2013-08-14 12:44:11 +030019void ci_handle_vbus_change(struct ci_hdrc *ci);
Peter Chenc10b4f02013-08-14 12:44:06 +030020
21#endif /* __DRIVERS_USB_CHIPIDEA_OTG_H */