diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2010-10-08 19:24:56 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-10-08 19:24:56 +0000 |
commit | ab06fb0caea2469fdf212a7655517a836a8dede6 (patch) | |
tree | b218e0f043178726b4ac3cabdfe4ff78c2e6f65d /src/southbridge/intel/i82801ax/i82801ax_pci.c | |
parent | 3b8db813809f3485ceaa77bf91595e64cc588d92 (diff) |
Round 2 of i82801AX fixes to get it into a usable shape.
- Remove left-overs from more generic code in i82801xx times, and fix
register names as needed.
- Simplify IDE init code (and save some ROM space too).
- Simplify PIRQ code.
- Use u8 et al instead of uint8_t everywhere.
- Random other fixes.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5925 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801ax/i82801ax_pci.c')
-rw-r--r-- | src/southbridge/intel/i82801ax/i82801ax_pci.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/southbridge/intel/i82801ax/i82801ax_pci.c b/src/southbridge/intel/i82801ax/i82801ax_pci.c index 32da3167f6..293ce582c2 100644 --- a/src/southbridge/intel/i82801ax/i82801ax_pci.c +++ b/src/southbridge/intel/i82801ax/i82801ax_pci.c @@ -26,16 +26,12 @@ static void pci_init(struct device *dev) { - uint16_t reg16; + u16 reg16; - /* Clear system errors */ - reg16 = pci_read_config16(dev, 0x06); - reg16 |= 0xf900; /* Clear possible errors */ - pci_write_config16(dev, 0x06, reg16); - - reg16 = pci_read_config16(dev, 0x1e); - reg16 |= 0xf800; /* Clear possible errors */ - pci_write_config16(dev, 0x1e, reg16); + /* Clear possible errors. */ + reg16 = pci_read_config16(dev, PCI_STATUS); + reg16 |= 0xf900; + pci_write_config16(dev, PCI_STATUS, reg16); } static struct device_operations pci_ops = { @@ -46,15 +42,16 @@ static struct device_operations pci_ops = { .scan_bus = pci_scan_bridge, }; +/* 82801AA (ICH) */ static const struct pci_driver i82801aa_pci __pci_driver = { .ops = &pci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2418, }; +/* 82801AB (ICH0) */ static const struct pci_driver i82801ab_pci __pci_driver = { .ops = &pci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2428, }; - |