Remove VIA CN700 northbridge support
[coreboot.git] / src / northbridge / via / cx700 / usb.c
blob31d3340cca88e1f9fca96932b5f6a727b47d129b
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <console/console.h>
17 #include <device/device.h>
18 #include <device/pci.h>
19 #include <device/pci_ids.h>
21 static void usb_init(struct device *dev)
23 u32 reg32;
24 u8 reg8;
26 /* USB Specification says the device must be Bus Master */
27 printk(BIOS_DEBUG, "UHCI: Setting up controller.. ");
29 reg32 = pci_read_config32(dev, PCI_COMMAND);
30 pci_write_config32(dev, PCI_COMMAND, reg32 | PCI_COMMAND_MASTER);
32 reg8 = pci_read_config8(dev, 0xca);
33 reg8 |= (1 << 0);
34 pci_write_config8(dev, 0xca, reg8);
36 printk(BIOS_DEBUG, "done.\n");
39 static struct device_operations usb_ops = {
40 .read_resources = pci_dev_read_resources,
41 .set_resources = pci_dev_set_resources,
42 .enable_resources = pci_dev_enable_resources,
43 .init = usb_init,
44 .enable = 0,
45 .ops_pci = 0,
48 static const struct pci_driver via_usb_driver __pci_driver = {
49 .ops = &usb_ops,
50 .vendor = PCI_VENDOR_ID_VIA,
51 .device = 0x3038,