aboutsummaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-01-24 01:40:46 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-01-24 01:40:46 +0000
commitbb38f3213b6889db9fcdab79086bb860f3a32547 (patch)
tree64a5d355f078462b98c3db16ecb48818ef0621c0 /util/superiotool/superiotool.c
parent5142dcd530e27c5a94612a532b2deaf229670223 (diff)
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 6786b0a47f..2afc2bfa62 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(