aboutsummaryrefslogtreecommitdiff
path: root/include/linux/xhci/xhci-mtk-power.h
blob: 4d362eadcbfb2ff00a09a414bd6ca442c4a02aad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _XHCI_MTK_POWER_H
#define _XHCI_MTK_POWER_H

#include <linux/usb.h>

void enableXhciAllPortPower(struct xhci_hcd *xhci);
void disableXhciAllPortPower(struct xhci_hcd *xhci);
void enableAllClockPower(struct xhci_hcd *xhci, bool is_reset);
void disableAllClockPower(struct xhci_hcd *xhci);
#if 0
void disablePortClockPower(int port_index, int port_rev);
void enablePortClockPower(int port_index, int port_rev);
#endif

#ifdef CONFIG_USB_MTK_DUALMODE
void mtk_switch2host(void);
void mtk_switch2device(bool skip);
#endif

#endif