sb/ibexpeak: Use macros instead of hard-coded IDs

This patch replaces hard-coded PCI IDs with macros from pci_ids.h and
adds the related IDs to it.

The resulting binary doesn't differ from the one without this patch.

Used documents:
- Intel 322170

Change-Id: I3326f142d483f5008fb2ac878f30c1a3a72f500f
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37116
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Michael Niewöhner
This commit is contained in:
Felix Singer
2019-11-21 21:23:32 +01:00
committed by Felix Held
parent 8ca1ada083
commit 838fbc71cf
8 changed files with 50 additions and 8 deletions

View File

@@ -323,7 +323,12 @@ static struct device_operations azalia_ops = {
.ops_pci = &azalia_pci_ops,
};
static const unsigned short pci_device_ids[] = { 0x1c20, 0x1e20, 0x3b56, 0 };
static const unsigned short pci_device_ids[] = {
0x1c20,
0x1e20,
PCI_DID_INTEL_IBEXPEAK_AUDIO,
0
};
static const struct pci_driver pch_azalia __pci_driver = {
.ops = &azalia_ops,

View File

@@ -777,7 +777,11 @@ static struct device_operations device_ops = {
};
static const unsigned short pci_device_ids[] = { 0x3b07, 0x3b09, 0 };
static const unsigned short pci_device_ids[] = {
PCI_DID_INTEL_IBEXPEAK_LPC_QM57,
PCI_DID_INTEL_IBEXPEAK_LPC_HM55,
0
};
static const struct pci_driver pch_lpc __pci_driver = {
.ops = &device_ops,

View File

@@ -614,8 +614,11 @@ static struct device_operations device_ops = {
.ops_pci = &pci_ops,
};
static const unsigned short pci_device_ids[] = { 0x1c3a, 0x3b64,
0 };
static const unsigned short pci_device_ids[] = {
0x1c3a,
PCI_DID_INTEL_IBEXPEAK_HECI1,
0
};
static const struct pci_driver intel_me __pci_driver = {

View File

@@ -245,7 +245,12 @@ static struct device_operations sata_ops = {
.ops_pci = &sata_pci_ops,
};
static const unsigned short pci_device_ids[] = { 0x3b28, 0x3b29, 0x3b2e, 0 };
static const unsigned short pci_device_ids[] = {
PCI_DID_INTEL_IBEXPEAK_MOBILE_SATA_IDE_1,
PCI_DID_INTEL_IBEXPEAK_MOBILE_SATA_AHCI,
PCI_DID_INTEL_IBEXPEAK_MOBILE_SATA_IDE_2,
0
};
static const struct pci_driver pch_sata __pci_driver = {
.ops = &sata_ops,

View File

@@ -96,7 +96,12 @@ static struct device_operations smbus_ops = {
.ops_pci = &smbus_pci_ops,
};
static const unsigned short pci_device_ids[] = { 0x1c22, 0x1e22, 0x3b30, 0 };
static const unsigned short pci_device_ids[] = {
0x1c22,
0x1e22,
PCI_DID_INTEL_IBEXPEAK_SMBUS,
0
};
static const struct pci_driver pch_smbus __pci_driver = {
.ops = &smbus_ops,

View File

@@ -56,7 +56,10 @@ static struct device_operations thermal_ops = {
.ops_pci = &pci_ops,
};
static const unsigned short pci_device_ids[] = { 0x3b32, 0 };
static const unsigned short pci_device_ids[] = {
PCI_DID_INTEL_IBEXPEAK_THERMAL,
0
};
static const struct pci_driver pch_thermal __pci_driver = {
.ops = &thermal_ops,

View File

@@ -96,7 +96,11 @@ static struct device_operations usb_ehci_ops = {
.ops_pci = &lops_pci,
};
static const unsigned short pci_device_ids[] = { 0x3b34, 0x3b3c, 0 };
static const unsigned short pci_device_ids[] = {
PCI_DID_INTEL_IBEXPEAK_EHCI_1,
PCI_DID_INTEL_IBEXPEAK_EHCI_2,
0
};
static const struct pci_driver pch_usb_ehci __pci_driver = {
.ops = &usb_ehci_ops,