3 * Copyright (C) 2008-2009 coresystems GmbH
5 * SPDX-License-Identifier: GPL-2.0
10 #include <asm/arch/pch.h>
12 void bd82x6x_usb_xhci_init(pci_dev_t dev)
16 debug("XHCI: Setting up controller.. ");
18 /* lock overcurrent map */
19 reg32 = x86_pci_read_config32(dev, 0x44);
21 x86_pci_write_config32(dev, 0x44, reg32);
23 /* Enable clock gating */
24 reg32 = x86_pci_read_config32(dev, 0x40);
25 reg32 &= ~((1 << 20) | (1 << 21));
26 reg32 |= (1 << 19) | (1 << 18) | (1 << 17);
27 reg32 |= (1 << 10) | (1 << 9) | (1 << 8);
28 reg32 |= (1 << 31); /* lock */
29 x86_pci_write_config32(dev, 0x40, reg32);