Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4265cbfd authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Olof Johansson
Browse files

ARM: tegra: export usb phy symbols



The ehci driver can be a module, so the functions provided
by the tegra platform code used by ehci-tegra need to
be exported.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAlan Ott <alan@signal11.us>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 249c5172
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/err.h>
#include <linux/export.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/gpio.h>
@@ -730,6 +731,7 @@ struct tegra_usb_phy *tegra_usb_phy_open(int instance, void __iomem *regs,
	kfree(phy);
	kfree(phy);
	return ERR_PTR(err);
	return ERR_PTR(err);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_open);


int tegra_usb_phy_power_on(struct tegra_usb_phy *phy)
int tegra_usb_phy_power_on(struct tegra_usb_phy *phy)
{
{
@@ -738,6 +740,7 @@ int tegra_usb_phy_power_on(struct tegra_usb_phy *phy)
	else
	else
		return utmi_phy_power_on(phy);
		return utmi_phy_power_on(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_power_on);


void tegra_usb_phy_power_off(struct tegra_usb_phy *phy)
void tegra_usb_phy_power_off(struct tegra_usb_phy *phy)
{
{
@@ -746,18 +749,21 @@ void tegra_usb_phy_power_off(struct tegra_usb_phy *phy)
	else
	else
		utmi_phy_power_off(phy);
		utmi_phy_power_off(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_power_off);


void tegra_usb_phy_preresume(struct tegra_usb_phy *phy)
void tegra_usb_phy_preresume(struct tegra_usb_phy *phy)
{
{
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_preresume(phy);
		utmi_phy_preresume(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_preresume);


void tegra_usb_phy_postresume(struct tegra_usb_phy *phy)
void tegra_usb_phy_postresume(struct tegra_usb_phy *phy)
{
{
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_postresume(phy);
		utmi_phy_postresume(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_postresume);


void tegra_ehci_phy_restore_start(struct tegra_usb_phy *phy,
void tegra_ehci_phy_restore_start(struct tegra_usb_phy *phy,
				 enum tegra_usb_phy_port_speed port_speed)
				 enum tegra_usb_phy_port_speed port_speed)
@@ -765,24 +771,28 @@ void tegra_ehci_phy_restore_start(struct tegra_usb_phy *phy,
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_restore_start(phy, port_speed);
		utmi_phy_restore_start(phy, port_speed);
}
}
EXPORT_SYMBOL_GPL(tegra_ehci_phy_restore_start);


void tegra_ehci_phy_restore_end(struct tegra_usb_phy *phy)
void tegra_ehci_phy_restore_end(struct tegra_usb_phy *phy)
{
{
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_restore_end(phy);
		utmi_phy_restore_end(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_ehci_phy_restore_end);


void tegra_usb_phy_clk_disable(struct tegra_usb_phy *phy)
void tegra_usb_phy_clk_disable(struct tegra_usb_phy *phy)
{
{
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_clk_disable(phy);
		utmi_phy_clk_disable(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_clk_disable);


void tegra_usb_phy_clk_enable(struct tegra_usb_phy *phy)
void tegra_usb_phy_clk_enable(struct tegra_usb_phy *phy)
{
{
	if (!phy_is_ulpi(phy))
	if (!phy_is_ulpi(phy))
		utmi_phy_clk_enable(phy);
		utmi_phy_clk_enable(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_clk_enable);


void tegra_usb_phy_close(struct tegra_usb_phy *phy)
void tegra_usb_phy_close(struct tegra_usb_phy *phy)
{
{
@@ -794,3 +804,4 @@ void tegra_usb_phy_close(struct tegra_usb_phy *phy)
	clk_put(phy->pll_u);
	clk_put(phy->pll_u);
	kfree(phy);
	kfree(phy);
}
}
EXPORT_SYMBOL_GPL(tegra_usb_phy_close);