Merge branches 'pm-cpufreq' and 'pm-cpufreq-sched' into linux-next
[deliverable/linux.git] / drivers / usb / chipidea / otg.h
CommitLineData
c10b4f03 1/*
5332ff1f 2 * Copyright (C) 2013-2014 Freescale Semiconductor, Inc.
c10b4f03
PC
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
0c33bf78
LJ
14u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
15void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
c10b4f03 16int ci_hdrc_otg_init(struct ci_hdrc *ci);
cbec6bd5
PC
17void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
18enum ci_role ci_otg_role(struct ci_hdrc *ci);
a107f8c5 19void ci_handle_vbus_change(struct ci_hdrc *ci);
be6b0c1b
PC
20static inline void ci_otg_queue_work(struct ci_hdrc *ci)
21{
22 disable_irq_nosync(ci->irq);
23 queue_work(ci->wq, &ci->work);
24}
c10b4f03
PC
25
26#endif /* __DRIVERS_USB_CHIPIDEA_OTG_H */
This page took 0.22695 seconds and 5 git commands to generate.