ehci-ixp4xx.c 932 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * (C) Copyright 2008, Michael Trimarchi <trimarchimichael@yahoo.it>
  3. *
  4. * Author: Michael Trimarchi <trimarchimichael@yahoo.it>
  5. * This code is based on ehci freescale driver
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <common.h>
  10. #include <usb.h>
  11. #include "ehci.h"
  12. /*
  13. * Create the appropriate control structures to manage
  14. * a new EHCI host controller.
  15. */
  16. int ehci_hcd_init(int index, enum usb_init_type init,
  17. struct ehci_hccr **hccr, struct ehci_hcor **hcor)
  18. {
  19. *hccr = (struct ehci_hccr *)(0xcd000100);
  20. *hcor = (struct ehci_hcor *)((uint32_t) *hccr
  21. + HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
  22. printf("IXP4XX init hccr %x and hcor %x hc_length %d\n",
  23. (uint32_t)*hccr, (uint32_t)*hcor,
  24. (uint32_t)HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
  25. return 0;
  26. }
  27. /*
  28. * Destroy the appropriate control structures corresponding
  29. * the the EHCI host controller.
  30. */
  31. int ehci_hcd_stop(int index)
  32. {
  33. return 0;
  34. }