summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801ca
diff options
context:
space:
mode:
authorEd Swierk <eswierk@arastra.com>2008-04-01 02:36:59 +0000
committerEd Swierk <eswierk@arastra.com>2008-04-01 02:36:59 +0000
commitc4e052cd5089019dc67b4fa176bca6d8d19de30d (patch)
tree86802951111145e526401af3029372e6ef51fc05 /src/southbridge/intel/i82801ca
parent2c6b33ce3e2eb287e6a0b25d46b96ba7876fe17a (diff)
downloadcoreboot-c4e052cd5089019dc67b4fa176bca6d8d19de30d.tar.xz
The early init code of several Intel southbridge chipsets calls
pci_locate_device() to locate the SMBus controller and LPC bridge devices on the PCI bus. Since these devices are always located at a fixed PCI bus:device:function, the code can be simplified by hardcoding the devices. Signed-off-by: Ed Swierk <eswierk@arastra.com> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3205 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801ca')
-rw-r--r--src/southbridge/intel/i82801ca/i82801ca_early_smbus.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/southbridge/intel/i82801ca/i82801ca_early_smbus.c b/src/southbridge/intel/i82801ca/i82801ca_early_smbus.c
index 8d80135d5d..d33e40484c 100644
--- a/src/southbridge/intel/i82801ca/i82801ca_early_smbus.c
+++ b/src/southbridge/intel/i82801ca/i82801ca_early_smbus.c
@@ -3,12 +3,8 @@
static void enable_smbus(void)
{
- device_t dev;
- dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_SMB), 0);
- if (dev == PCI_DEV_INVALID) {
- die("SMBUS controller not found\r\n");
- }
-
+ device_t dev = PCI_DEV(0x0, 0x1f, 0x3);
+
print_debug("SMBus controller enabled\r\n");
/* set smbus iobase */
pci_write_config32(dev, SMB_BASE, SMBUS_IO_BASE | PCI_BASE_ADDRESS_SPACE_IO);