Peter Chen | c10b4f0 | 2013-08-14 12:44:06 +0300 | [diff] [blame] | 1 | /* |
Peter Chen | 5332ff1 | 2014-01-10 13:51:31 +0800 | [diff] [blame] | 2 | * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. |
Peter Chen | c10b4f0 | 2013-08-14 12:44:06 +0300 | [diff] [blame] | 3 | * |
| 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 Jun | 0c33bf7 | 2014-04-23 15:56:38 +0800 | [diff] [blame^] | 14 | u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask); |
| 15 | void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data); |
Peter Chen | c10b4f0 | 2013-08-14 12:44:06 +0300 | [diff] [blame] | 16 | int ci_hdrc_otg_init(struct ci_hdrc *ci); |
Peter Chen | cbec6bd | 2013-08-14 12:44:10 +0300 | [diff] [blame] | 17 | void ci_hdrc_otg_destroy(struct ci_hdrc *ci); |
| 18 | enum ci_role ci_otg_role(struct ci_hdrc *ci); |
Peter Chen | a107f8c | 2013-08-14 12:44:11 +0300 | [diff] [blame] | 19 | void ci_handle_vbus_change(struct ci_hdrc *ci); |
Peter Chen | c10b4f0 | 2013-08-14 12:44:06 +0300 | [diff] [blame] | 20 | |
| 21 | #endif /* __DRIVERS_USB_CHIPIDEA_OTG_H */ |