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/serialio.c b/src/southbridge/intel/lynxpoint/serialio.c
index 199cf9f..d212d88 100644
--- a/src/southbridge/intel/lynxpoint/serialio.c
+++ b/src/southbridge/intel/lynxpoint/serialio.c
@@ -228,14 +228,14 @@
};
static const unsigned short pci_device_ids[] = {
- 0x9c60, /* 0:15.0 - SDMA */
- 0x9c61, /* 0:15.1 - I2C0 */
- 0x9c62, /* 0:15.2 - I2C1 */
- 0x9c65, /* 0:15.3 - SPI0 */
- 0x9c66, /* 0:15.4 - SPI1 */
- 0x9c63, /* 0:15.5 - UART0 */
- 0x9c64, /* 0:15.6 - UART1 */
- 0x9c35, /* 0:17.0 - SDIO */
+ PCI_DEVICE_ID_INTEL_LPT_LP_SDMA,
+ PCI_DEVICE_ID_INTEL_LPT_LP_I2C0,
+ PCI_DEVICE_ID_INTEL_LPT_LP_I2C1,
+ PCI_DEVICE_ID_INTEL_LPT_LP_GSPI0,
+ PCI_DEVICE_ID_INTEL_LPT_LP_GSPI1,
+ PCI_DEVICE_ID_INTEL_LPT_LP_UART0,
+ PCI_DEVICE_ID_INTEL_LPT_LP_UART1,
+ PCI_DEVICE_ID_INTEL_LPT_LP_SD,
0
};