util/inteltool: Fix bay trail ahci device

Use a unique bus/device/function if a bay trail LPC bridge was found.

TEST=Run on MinnowBoard MAX Turbot and customer's LynxPoint-LP.

Change-Id: Ib4b50aaf9817ac94f46c28925081540676226d84
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/17464
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Marshall Dawson 2016-11-17 16:51:13 -07:00 committed by Martin Roth
parent 8955d5572f
commit 5c325491ca
1 changed files with 4 additions and 1 deletions

View File

@ -428,7 +428,10 @@ int main(int argc, char *argv[])
gfx = 0;
}
ahci = pci_get_dev(pacc, 0, 0, 0x1f, 2);
if (sb->device_id == PCI_DEVICE_ID_INTEL_BAYTRAIL_LPC)
ahci = pci_get_dev(pacc, 0, 0, 0x13, 0);
else
ahci = pci_get_dev(pacc, 0, 0, 0x1f, 2);
if (ahci) {
pci_fill_info(ahci, PCI_FILL_IDENT|PCI_FILL_BASES|PCI_FILL_SIZES|PCI_FILL_CLASS);