diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-01-24 01:40:46 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-01-24 01:40:46 +0000 |
commit | bb38f3213b6889db9fcdab79086bb860f3a32547 (patch) | |
tree | 64a5d355f078462b98c3db16ecb48818ef0621c0 /util/superiotool/superiotool.c | |
parent | 5142dcd530e27c5a94612a532b2deaf229670223 (diff) | |
download | coreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.tar.gz coreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.tar.bz2 coreboot-bb38f3213b6889db9fcdab79086bb860f3a32547.zip |
Add VIA VT82C686A/VT82C686B detection support to superiotool.
This adds an additional requirement to superiotool: libpci.
The PCI code is conditional on PCI_SUPPORT. You can set the
CONFIG_PCI variable in the Makefile to 'no' to disable it.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5047 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r-- | util/superiotool/superiotool.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index 6786b0a47f08..2afc2bfa62b6 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c @@ -282,6 +282,13 @@ int main(int argc, char *argv[]) print_version(); +#ifdef PCI_SUPPORT + /* Do some basic libpci init. */ + pacc = pci_alloc(); + pci_init(pacc); + pci_scan_bus(pacc); +#endif + for (i = 0; i < ARRAY_SIZE(superio_ports_table); i++) { for (j = 0; superio_ports_table[i].ports[j] != EOT; j++) superio_ports_table[i].probe_idregs( |