xusb-padctl-dummy.c 706 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
  4. */
  5. #include <common.h>
  6. #include <errno.h>
  7. #include <asm/arch-tegra/xusb-padctl.h>
  8. struct tegra_xusb_phy * __weak tegra_xusb_phy_get(unsigned int type)
  9. {
  10. return NULL;
  11. }
  12. int __weak tegra_xusb_phy_prepare(struct tegra_xusb_phy *phy)
  13. {
  14. return -ENOSYS;
  15. }
  16. int __weak tegra_xusb_phy_enable(struct tegra_xusb_phy *phy)
  17. {
  18. return -ENOSYS;
  19. }
  20. int __weak tegra_xusb_phy_disable(struct tegra_xusb_phy *phy)
  21. {
  22. return -ENOSYS;
  23. }
  24. int __weak tegra_xusb_phy_unprepare(struct tegra_xusb_phy *phy)
  25. {
  26. return -ENOSYS;
  27. }
  28. void __weak tegra_xusb_padctl_init(void)
  29. {
  30. }
  31. void __weak tegra_xusb_padctl_exit(void)
  32. {
  33. }