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

@ -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,