ehci-vct.c 815 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <usb.h>
  8. #include "ehci.h"
  9. int vct_ehci_hcd_init(u32 *hccr, u32 *hcor);
  10. /*
  11. * Create the appropriate control structures to manage
  12. * a new EHCI host controller.
  13. */
  14. int ehci_hcd_init(int index, enum usb_init_type init,
  15. struct ehci_hccr **hccr, struct ehci_hcor **hcor)
  16. {
  17. int ret;
  18. u32 vct_hccr;
  19. u32 vct_hcor;
  20. /*
  21. * Init VCT specific stuff
  22. */
  23. ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor);
  24. if (ret)
  25. return ret;
  26. *hccr = (struct ehci_hccr *)vct_hccr;
  27. *hcor = (struct ehci_hcor *)vct_hcor;
  28. return 0;
  29. }
  30. /*
  31. * Destroy the appropriate control structures corresponding
  32. * the the EHCI host controller.
  33. */
  34. int ehci_hcd_stop(int index)
  35. {
  36. return 0;
  37. }