/* * Copyright (C) 2011 Samsung Electronics Co.Ltd * Author: Joonyoung Shim * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */ #ifndef __PLAT_S5P_EHCI_H #define __PLAT_S5P_EHCI_H struct s5p_ehci_platdata { int (*phy_init)(struct platform_device *pdev, int type); int (*phy_exit)(struct platform_device *pdev, int type); int (*phy_suspend)(struct platform_device *pdev, int type); int (*phy_resume)(struct platform_device *pdev, int type); #if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB) ||\ defined(CONFIG_CDMA_MODEM_MDM6600) /* for SAMSUNG Modem*/ void (*noti_host_states)(struct platform_device *pdev, int type); int (*get_cp_active_state)(void); #endif }; struct s5p_ohci_platdata { int (*phy_init)(struct platform_device *pdev, int type); int (*phy_exit)(struct platform_device *pdev, int type); int (*phy_suspend)(struct platform_device *pdev, int type); int (*phy_resume)(struct platform_device *pdev, int type); }; extern void s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd); extern void s5p_ohci_set_platdata(struct s5p_ohci_platdata *pd); #if defined(CONFIG_LINK_DEVICE_HSIC) || defined(CONFIG_LINK_DEVICE_USB) ||\ defined(CONFIG_CDMA_MODEM_MDM6600) int s5p_ehci_port_control(struct platform_device *pdev, int port, int enable); #endif #endif /* __PLAT_S5P_EHCI_H */