From bb38f3213b6889db9fcdab79086bb860f3a32547 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sun, 24 Jan 2010 01:40:46 +0000 Subject: 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 Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5047 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/superiotool.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/superiotool/superiotool.c') 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( -- cgit v1.2.3