2 * This file is part of the coreboot project.
4 * (C) Copyright 2008 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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 #include <device/device.h>
23 #include <device/pci.h>
24 #include <device/pci_ops.h>
25 #include <device/pci_ids.h>
26 #include <console/console.h>
27 #include <device/cardbus.h>
30 static void pcixx12_init(device_t dev)
32 /* cardbus controller function 1 for CF Socket */
33 printk(BIOS_DEBUG, "TI PCIxx12 init\n");
36 static void pcixx12_read_resources(device_t dev)
38 cardbus_read_resources(dev);
41 static void pcixx12_set_resources(device_t dev)
43 printk(BIOS_DEBUG, "%s In set resources \n",dev_path(dev));
45 pci_dev_set_resources(dev);
47 printk(BIOS_DEBUG, "%s done set resources \n",dev_path(dev));
50 static struct device_operations ti_pcixx12_ops = {
51 .read_resources = pcixx12_read_resources,
52 .set_resources = pcixx12_set_resources,
53 .enable_resources = cardbus_enable_resources,
55 .scan_bus = pci_scan_bridge,
58 static const struct pci_driver ti_pcixx12_driver __pci_driver = {
59 .ops = &ti_pcixx12_ops,
64 static void southbridge_init(device_t dev)
66 // struct southbridge_ti_pcixx12_config *config = dev->chip_info;
69 struct chip_operations southbridge_ti_pcixx12_ops = {
70 CHIP_NAME("Texas Instruments PCIxx12 Cardbus Controller")
71 .enable_dev = southbridge_init,