Initial commit
[kernel/linux-3.0.git] / arch / arm / plat-s5p / include / plat / usb-phy.h
1 /*
2  * Copyright (C) 2011 Samsung Electronics Co.Ltd
3  * Author: Joonyoung Shim <jy0922.shim@samsung.com>
4  *
5  * This program is free software; you can redistribute  it and/or modify it
6  * under  the terms of  the GNU General  Public License as published by the
7  * Free Software Foundation;  either version 2 of the  License, or (at your
8  * option) any later version.
9  */
10
11 #ifndef __PLAT_S5P_USB_PHY_H
12 #define __PLAT_S5P_USB_PHY_H
13
14 enum s5p_usb_phy_type {
15         S5P_USB_PHY_DEVICE,
16         S5P_USB_PHY_HOST,
17         S5P_USB_PHY_DRD,
18         S5P_USB_PHY_OTGHOST,
19 };
20
21 #if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB) || \
22         defined(CONFIG_CDMA_MODEM_MDM6600)
23 enum s5p_host_state {
24         S5P_HOST_OFF,
25         S5P_HOST_ON,
26 };
27 #endif
28
29 extern int s5p_usb_phy_init(struct platform_device *pdev, int type);
30 extern int s5p_usb_phy_exit(struct platform_device *pdev, int type);
31 extern int s5p_usb_phy_suspend(struct platform_device *pdev, int type);
32 extern int s5p_usb_phy_resume(struct platform_device *pdev, int type);
33 extern int exynos4_check_usb_op(void);
34
35 #endif /* __PLAT_S5P_REGS_USB_PHY_H */