From fa2df758f226f5b06537c6e6f8e27072b94644c5 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 27 Aug 2003 14:33:13 +0000 Subject: support for new mobos and fixes git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1087 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/tyan/s2885/ti_firewire.c | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/mainboard/tyan/s2885/ti_firewire.c (limited to 'src/mainboard/tyan/s2885/ti_firewire.c') diff --git a/src/mainboard/tyan/s2885/ti_firewire.c b/src/mainboard/tyan/s2885/ti_firewire.c new file mode 100644 index 0000000000..be6cec2f8e --- /dev/null +++ b/src/mainboard/tyan/s2885/ti_firewire.c @@ -0,0 +1,44 @@ +/* Copyright 2003 Tyan */ + +/* Author: Yinghai Lu + * + */ + + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + + +static void ti_firewire_init(struct device *dev) +{ + uint16_t word; + + word = pci_read_config16(dev, 0x4); + word |= ((1 << 2) |(1<<4)); // Command: 3--> 17 + pci_write_config16(dev, 0x4, word); + + printk_debug("TI_FIREWIRE_FIXUP: done \n"); + +} + +static struct device_operations ti_firewire_ops = { + .read_resources = pci_dev_read_resources, + .set_resources = pci_dev_set_resources, + .init = ti_firewire_init, + .scan_bus = 0, +}; + +static struct pci_driver ti_firewire_driver __pci_driver = { + .ops = &ti_firewire_ops, + .vendor = 0x104c, + .device = 0x8023, +}; + -- cgit v1.2.3