sb/intel/lynxpoint: Replace hard-coded IDs with defines
Replace hard-coded IDs with defines introduced in CB:47807.
Used documents:
- 328904-003
- 329003-003
Built lenovo/t440p with BUILD_TIMELESS=1, coreboot.rom remains
identical.
Change-Id: I910ab356dd8728c316018989bfb2689d4c67c2dc
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47808
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/southbridge/intel/lynxpoint/sata.c b/src/southbridge/intel/lynxpoint/sata.c
index 6899e81..a0a606d 100644
--- a/src/southbridge/intel/lynxpoint/sata.c
+++ b/src/southbridge/intel/lynxpoint/sata.c
@@ -214,9 +214,22 @@
};
static const unsigned short pci_device_ids[] = {
- 0x8c00, 0x8c02, 0x8c04, 0x8c06, 0x8c08, 0x8c0e, /* Desktop */
- 0x8c01, 0x8c03, 0x8c05, 0x8c07, 0x8c09, 0x8c0f, /* Mobile */
- 0x9c03, 0x9c05, 0x9c07, 0x9c0f, /* Low Power */
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_IDE,
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_AHCI,
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_RAID_1,
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_RAID_PREM,
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_IDE_P45,
+ PCI_DEVICE_ID_INTEL_LPT_H_DESKTOP_SATA_RAID_2,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_IDE,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_AHCI,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_RAID_1,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_RAID_PREM,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_IDE_P45,
+ PCI_DEVICE_ID_INTEL_LPT_H_MOBILE_SATA_RAID_2,
+ PCI_DEVICE_ID_INTEL_LPT_LP_SATA_AHCI,
+ PCI_DEVICE_ID_INTEL_LPT_LP_SATA_RAID_1,
+ PCI_DEVICE_ID_INTEL_LPT_LP_SATA_RAID_PREM,
+ PCI_DEVICE_ID_INTEL_LPT_LP_SATA_RAID_2,
0
};