|
@@ -17,6 +17,7 @@
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/of_gpio.h>
|
|
|
#include <linux/platform_data/usb-ehci-s5p.h>
|
|
|
+#include <linux/usb/samsung_usb_phy.h>
|
|
|
#include <plat/usb-phy.h>
|
|
|
|
|
|
#define EHCI_INSNREG00(base) (base + 0x90)
|
|
@@ -164,7 +165,7 @@ static int s5p_ehci_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
|
|
|
if (pdata->phy_init)
|
|
|
- pdata->phy_init(pdev, S5P_USB_PHY_HOST);
|
|
|
+ pdata->phy_init(pdev, USB_PHY_TYPE_HOST);
|
|
|
|
|
|
ehci = hcd_to_ehci(hcd);
|
|
|
ehci->caps = hcd->regs;
|
|
@@ -198,7 +199,7 @@ static int s5p_ehci_remove(struct platform_device *pdev)
|
|
|
usb_remove_hcd(hcd);
|
|
|
|
|
|
if (pdata && pdata->phy_exit)
|
|
|
- pdata->phy_exit(pdev, S5P_USB_PHY_HOST);
|
|
|
+ pdata->phy_exit(pdev, USB_PHY_TYPE_HOST);
|
|
|
|
|
|
clk_disable_unprepare(s5p_ehci->clk);
|
|
|
|
|
@@ -229,7 +230,7 @@ static int s5p_ehci_suspend(struct device *dev)
|
|
|
rc = ehci_suspend(hcd, do_wakeup);
|
|
|
|
|
|
if (pdata && pdata->phy_exit)
|
|
|
- pdata->phy_exit(pdev, S5P_USB_PHY_HOST);
|
|
|
+ pdata->phy_exit(pdev, USB_PHY_TYPE_HOST);
|
|
|
|
|
|
clk_disable_unprepare(s5p_ehci->clk);
|
|
|
|
|
@@ -246,7 +247,7 @@ static int s5p_ehci_resume(struct device *dev)
|
|
|
clk_prepare_enable(s5p_ehci->clk);
|
|
|
|
|
|
if (pdata && pdata->phy_init)
|
|
|
- pdata->phy_init(pdev, S5P_USB_PHY_HOST);
|
|
|
+ pdata->phy_init(pdev, USB_PHY_TYPE_HOST);
|
|
|
|
|
|
/* DMA burst Enable */
|
|
|
writel(EHCI_INSNREG00_ENABLE_DMA_BURST, EHCI_INSNREG00(hcd->regs));
|