[coreboot-gerrit] Patch set updated for coreboot: southbridge/intel: Use i82801gx code for NM10

Damien Zammit (damien@zamaudio.com) gerrit at coreboot.org
Fri Nov 20 07:23:30 CET 2015


Damien Zammit (damien at zamaudio.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12431

-gerrit

commit ca02dc4d127556db8b162e0fba50e7df187829d7
Author: Damien Zammit <damien at zamaudio.com>
Date:   Sat Nov 14 01:03:39 2015 +1100

    southbridge/intel: Use i82801gx code for NM10
    
    It works as an ICH7 on Intel D510MO mainboard
    
    Change-Id: Ib8c76c001dffee8f93e3d6aa3156d4413b2e842a
    Signed-off-by: Damien Zammit <damien at zamaudio.com>
---
 src/southbridge/intel/i82801gx/lpc.c | 39 ++++++++++++++----------------------
 1 file changed, 15 insertions(+), 24 deletions(-)

diff --git a/src/southbridge/intel/i82801gx/lpc.c b/src/southbridge/intel/i82801gx/lpc.c
index 57ff0dd..cf5fd53 100644
--- a/src/southbridge/intel/i82801gx/lpc.c
+++ b/src/southbridge/intel/i82801gx/lpc.c
@@ -697,30 +697,21 @@ static struct device_operations device_ops = {
 	.ops_pci		= &pci_ops,
 };
 
-/* 82801GH (ICH7 DH) */
-static const struct pci_driver ich7_dh_lpc __pci_driver = {
+/* 27b0: 82801GH (ICH7 DH) */
+/* 27b8: 82801GB/GR (ICH7/ICH7R) */
+/* 27b9: 82801GBM/GU (ICH7-M/ICH7-U) */
+/* 27bc: 82NM10 (NM10) */
+/* 27bd: 82801GHM (ICH7-M DH) */
+
+static const unsigned short pci_device_ids[] = { 0x27b0,
+						 0x27b8,
+						 0x27b9,
+						 0x27bc,
+						 0x27bd,
+						 0 };
+
+static const struct pci_driver ich7_lpc __pci_driver = {
 	.ops	= &device_ops,
 	.vendor	= PCI_VENDOR_ID_INTEL,
-	.device	= 0x27b0,
-};
-
-/* 82801GB/GR (ICH7/ICH7R) */
-static const struct pci_driver ich7_ich7r_lpc __pci_driver = {
-	.ops	= &device_ops,
-	.vendor	= PCI_VENDOR_ID_INTEL,
-	.device	= 0x27b8,
-};
-
-/* 82801GBM/GU (ICH7-M/ICH7-U) */
-static const struct pci_driver ich7m_ich7u_lpc __pci_driver = {
-	.ops	= &device_ops,
-	.vendor	= PCI_VENDOR_ID_INTEL,
-	.device	= 0x27b9,
-};
-
-/* 82801GHM (ICH7-M DH) */
-static const struct pci_driver ich7m_dh_lpc __pci_driver = {
-	.ops	= &device_ops,
-	.vendor	= PCI_VENDOR_ID_INTEL,
-	.device	= 0x27bd,
+	.devices = pci_device_ids,
 };



More information about the coreboot-gerrit mailing list