mfd: wm8350-i2c: Make sure the i2c regmap functions are compiled
[linux/fpc-iii.git] / drivers / usb / chipidea / otg.h
blob449bee07f4fe00a9e9f4f0e2f8b297f1d1518090
1 /*
2 * Copyright (C) 2013-2014 Freescale Semiconductor, Inc.
4 * Author: Peter Chen
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 */
11 #ifndef __DRIVERS_USB_CHIPIDEA_OTG_H
12 #define __DRIVERS_USB_CHIPIDEA_OTG_H
14 static inline void ci_clear_otg_interrupt(struct ci_hdrc *ci, u32 bits)
16 /* Only clear request bits */
17 hw_write(ci, OP_OTGSC, OTGSC_INT_STATUS_BITS, bits);
20 static inline void ci_enable_otg_interrupt(struct ci_hdrc *ci, u32 bits)
22 hw_write(ci, OP_OTGSC, bits | OTGSC_INT_STATUS_BITS, bits);
25 static inline void ci_disable_otg_interrupt(struct ci_hdrc *ci, u32 bits)
27 hw_write(ci, OP_OTGSC, bits | OTGSC_INT_STATUS_BITS, 0);
30 int ci_hdrc_otg_init(struct ci_hdrc *ci);
31 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
32 enum ci_role ci_otg_role(struct ci_hdrc *ci);
33 void ci_handle_vbus_change(struct ci_hdrc *ci);
35 #endif /* __DRIVERS_USB_CHIPIDEA_OTG_H */