From cce5040153689f9e4908f04c2bb61819984d221f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 7 Nov 2007 22:09:02 +0000 Subject: Add initial support for all known ICH* southbridges to the i82801xx code for the following parts: - AC97 audio/modem - Onboard network interface cards (NICs) - USB 1.1 controllers - SMBus controllers Some other parts are still missing and will be added later. Use PCI ID #defines from pci_ids.h everywhere. Constify various structs. Also, fix some random cosmetic issues in the code. All of this is relatively trivial and tested by manually building all boards which currently use the i82801xx code. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2951 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/intel/i82801xx/i82801xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/southbridge/intel/i82801xx/i82801xx.c') diff --git a/src/southbridge/intel/i82801xx/i82801xx.c b/src/southbridge/intel/i82801xx/i82801xx.c index c2ff949734..a0d34bde82 100644 --- a/src/southbridge/intel/i82801xx/i82801xx.c +++ b/src/southbridge/intel/i82801xx/i82801xx.c @@ -30,7 +30,7 @@ void i82801xx_enable(device_t dev) unsigned int index = 0; uint16_t cur_disable_mask, new_disable_mask; - /* All 82801 devices should be on bus 0. */ + /* All 82801xx devices should be on bus 0. */ unsigned int devfn = PCI_DEVFN(0x1f, 0); // LPC device_t lpc_dev = dev_find_slot(0, devfn); // 0 if (!lpc_dev) @@ -50,10 +50,11 @@ void i82801xx_enable(device_t dev) if (index == 0) { index = 14; } + cur_disable_mask = pci_read_config16(lpc_dev, FUNC_DIS); - new_disable_mask = cur_disable_mask & ~(1 << index); // enable it + new_disable_mask = cur_disable_mask & ~(1 << index); /* Enable it. */ if (!dev->enabled) { - new_disable_mask |= (1 << index); // disable it, if desired + new_disable_mask |= (1 << index); /* Disable it, if desired. */ } if (new_disable_mask != cur_disable_mask) { pci_write_config16(lpc_dev, FUNC_DIS, new_disable_mask); @@ -61,6 +62,6 @@ void i82801xx_enable(device_t dev) } struct chip_operations southbridge_intel_i82801xx_ops = { - CHIP_NAME("Intel i82801 Series Southbridge") + CHIP_NAME("Intel 82801 Series Southbridge") .enable_dev = i82801xx_enable, }; -- cgit v1.2.3