ehci-vct.c 812 B

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