mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
ARM: OMAP: USB: Fix linker error when ULPI is not defined
Fix the linker error for missing ulpi_reset when ulpi is not defined in the board config. Signed-off-by: Dan Murphy <dmurphy@ti.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
d3d037ae18
commit
120503f32e
1 changed files with 7 additions and 0 deletions
|
@ -79,6 +79,7 @@ static void omap_usbhs_hsic_init(int port)
|
||||||
writel(reg, &usbtll->channel_conf + port);
|
writel(reg, &usbtll->channel_conf + port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_USB_ULPI
|
||||||
static void omap_ehci_soft_phy_reset(int port)
|
static void omap_ehci_soft_phy_reset(int port)
|
||||||
{
|
{
|
||||||
struct ulpi_viewport ulpi_vp;
|
struct ulpi_viewport ulpi_vp;
|
||||||
|
@ -88,6 +89,12 @@ static void omap_ehci_soft_phy_reset(int port)
|
||||||
|
|
||||||
ulpi_reset(&ulpi_vp);
|
ulpi_reset(&ulpi_vp);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static void omap_ehci_soft_phy_reset(int port)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline int __board_usb_init(void)
|
inline int __board_usb_init(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue