summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2016-11-17 16:51:13 -0700
committerMartin Roth <martinroth@google.com>2016-11-21 23:38:40 +0100
commit5c325491ca2f791c46b2b3ca34f4ad1c750ac6f4 (patch)
tree03af579cd7e15c352b792a09b93bfdad1996b219
parent8955d5572f94585db16bec9f50b4304852add630 (diff)
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>
-rw-r--r--util/inteltool/inteltool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index c7ca63185b..6596900782 100644
--- a/util/inteltool/inteltool.c
+++ b/util/inteltool/inteltool.c
@@ -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);