[coreboot-gerrit] New patch to review for coreboot: util/inteltool: Fix bay trail ahci device

Marshall Dawson (marshalldawson3rd@gmail.com) gerrit at coreboot.org
Fri Nov 18 01:44:34 CET 2016


Marshall Dawson (marshalldawson3rd at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17464

-gerrit

commit 473578efea12fcf60bc93265e2a2789c6fad3eb8
Author: Marshall Dawson <marshalldawson3rd at gmail.com>
Date:   Thu Nov 17 16:51:13 2016 -0700

    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 at gmail.com>
---
 util/inteltool/inteltool.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index c7ca631..6596900 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);



More information about the coreboot-gerrit mailing list