From patchwork Sun Nov 7 12:46:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05/16] Add VT8237A id to vt8237r_early_smbus Date: Sun, 07 Nov 2010 12:46:27 -0000 From: Tobias Diedrich X-Patchwork-Id: 2261 Message-Id: <20101107124725.900476304@yamamaya.is-a-geek.org> To: coreboot@coreboot.org Cc: Rudolf Marek , Tobias Diedrich This adds the VT8237A LPC pci_locate_device call in vt8237r_early_smbus.c Depends on the "Introduce get_vt8237_lpc() function" patch. Signed-off-by: Tobias Diedrich Acked-by: Rudolf Marek --- Index: src/southbridge/via/vt8237r/vt8237r_early_smbus.c =================================================================== --- src/southbridge/via/vt8237r/vt8237r_early_smbus.c.orig 2010-11-03 23:32:52.000000000 +0100 +++ src/southbridge/via/vt8237r/vt8237r_early_smbus.c 2010-11-03 23:32:54.000000000 +0100 @@ -146,6 +146,11 @@ dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT8237S_LPC), 0); + if (dev != PCI_DEV_INVALID) + return dev; + + dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, + PCI_DEVICE_ID_VIA_VT8237A_LPC), 0); return dev; }