aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
-rw-r--r--drivers/usb/host/ehci-tegra.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index ed201ae879cb..e3eddc31ac83 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -611,7 +611,7 @@ static const struct dev_pm_ops tegra_ehci_pm_ops = {
611/* Bits of PORTSC1, which will get cleared by writing 1 into them */ 611/* Bits of PORTSC1, which will get cleared by writing 1 into them */
612#define TEGRA_PORTSC1_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC) 612#define TEGRA_PORTSC1_RWC_BITS (PORT_CSC | PORT_PEC | PORT_OCC)
613 613
614void tegra_ehci_set_pts(struct usb_phy *x, u8 pts_val) 614static void tegra_ehci_set_pts(struct usb_phy *x, u8 pts_val)
615{ 615{
616 unsigned long val; 616 unsigned long val;
617 struct usb_hcd *hcd = bus_to_hcd(x->otg->host); 617 struct usb_hcd *hcd = bus_to_hcd(x->otg->host);
@@ -622,9 +622,8 @@ void tegra_ehci_set_pts(struct usb_phy *x, u8 pts_val)
622 val |= TEGRA_USB_PORTSC1_PTS(pts_val & 3); 622 val |= TEGRA_USB_PORTSC1_PTS(pts_val & 3);
623 writel(val, base + TEGRA_USB_PORTSC1); 623 writel(val, base + TEGRA_USB_PORTSC1);
624} 624}
625EXPORT_SYMBOL_GPL(tegra_ehci_set_pts);
626 625
627void tegra_ehci_set_phcd(struct usb_phy *x, bool enable) 626static void tegra_ehci_set_phcd(struct usb_phy *x, bool enable)
628{ 627{
629 unsigned long val; 628 unsigned long val;
630 struct usb_hcd *hcd = bus_to_hcd(x->otg->host); 629 struct usb_hcd *hcd = bus_to_hcd(x->otg->host);
@@ -637,7 +636,6 @@ void tegra_ehci_set_phcd(struct usb_phy *x, bool enable)
637 val &= ~TEGRA_USB_PORTSC1_PHCD; 636 val &= ~TEGRA_USB_PORTSC1_PHCD;
638 writel(val, base + TEGRA_USB_PORTSC1); 637 writel(val, base + TEGRA_USB_PORTSC1);
639} 638}
640EXPORT_SYMBOL_GPL(tegra_ehci_set_phcd);
641 639
642static u64 tegra_ehci_dma_mask = DMA_BIT_MASK(32); 640static u64 tegra_ehci_dma_mask = DMA_BIT_MASK(32);
643 641
@@ -738,7 +736,9 @@ static int tegra_ehci_probe(struct platform_device *pdev)
738 736
739 tegra->phy = tegra_usb_phy_open(&pdev->dev, instance, hcd->regs, 737 tegra->phy = tegra_usb_phy_open(&pdev->dev, instance, hcd->regs,
740 pdata->phy_config, 738 pdata->phy_config,
741 TEGRA_USB_PHY_MODE_HOST); 739 TEGRA_USB_PHY_MODE_HOST,
740 tegra_ehci_set_pts,
741 tegra_ehci_set_phcd);
742 if (IS_ERR(tegra->phy)) { 742 if (IS_ERR(tegra->phy)) {
743 dev_err(&pdev->dev, "Failed to open USB phy\n"); 743 dev_err(&pdev->dev, "Failed to open USB phy\n");
744 err = -ENXIO; 744 err = -ENXIO;