mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-24 19:08:50 +09:00
![Simon Glass](/assets/img/avatar_default.png)
Adjust this code to support a live device tree. This should be implemented as a PHY driver but that is left as an exercise for the maintainer. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
40 lines
663 B
C
40 lines
663 B
C
/*
|
|
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <errno.h>
|
|
|
|
#include <asm/arch-tegra/xusb-padctl.h>
|
|
|
|
struct tegra_xusb_phy * __weak tegra_xusb_phy_get(unsigned int type)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
int __weak tegra_xusb_phy_prepare(struct tegra_xusb_phy *phy)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
int __weak tegra_xusb_phy_enable(struct tegra_xusb_phy *phy)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
int __weak tegra_xusb_phy_disable(struct tegra_xusb_phy *phy)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
int __weak tegra_xusb_phy_unprepare(struct tegra_xusb_phy *phy)
|
|
{
|
|
return -ENOSYS;
|
|
}
|
|
|
|
void __weak tegra_xusb_padctl_init(void)
|
|
{
|
|
}
|