diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2003-08-27 14:33:13 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-08-27 14:33:13 +0000 |
commit | fa2df758f226f5b06537c6e6f8e27072b94644c5 (patch) | |
tree | c5cb52825577c8d3825121283e020ad44a3fccd8 /src/mainboard/tyan/s2885/ti_firewire.c | |
parent | bee6575d7cdc065be6f8b83f9217602e44f29c20 (diff) |
support for new mobos and fixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1087 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/tyan/s2885/ti_firewire.c')
-rw-r--r-- | src/mainboard/tyan/s2885/ti_firewire.c | 44 |
1 files changed, 44 insertions, 0 deletions
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 <delay.h> +#include <stdlib.h> +#include <string.h> +#include <arch/io.h> + +#include <console/console.h> +#include <device/device.h> +#include <device/pci.h> +#include <device/pci_ids.h> +#include <device/pci_ops.h> + + +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, +}; + |