usb_ehci.c 605 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * From Coreboot
  3. * Copyright (C) 2008-2009 coresystems GmbH
  4. *
  5. * SPDX-License-Identifier: GPL-2.0
  6. */
  7. #include <common.h>
  8. #include <asm/io.h>
  9. #include <asm/pci.h>
  10. #include <asm/arch/pch.h>
  11. void bd82x6x_usb_ehci_init(pci_dev_t dev)
  12. {
  13. u32 reg32;
  14. /* Disable Wake on Disconnect in RMH */
  15. reg32 = readl(RCB_REG(0x35b0));
  16. reg32 |= 0x22;
  17. writel(reg32, RCB_REG(0x35b0));
  18. debug("EHCI: Setting up controller.. ");
  19. reg32 = x86_pci_read_config32(dev, PCI_COMMAND);
  20. reg32 |= PCI_COMMAND_MASTER;
  21. /* reg32 |= PCI_COMMAND_SERR; */
  22. x86_pci_write_config32(dev, PCI_COMMAND, reg32);
  23. debug("done.\n");
  24. }