sb/intel/bd82x6x: Only check device ID in `intel_me_finalize_smm`

There's no need to compare the vendor ID.

Change-Id: I4368f2615e5ce72430992f1f5581908c90c970f0
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45258
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Angel Pons 2020-09-10 12:51:38 +02:00 committed by Hung-Te Lin
parent 254142a11d
commit a7db40eae5
1 changed files with 4 additions and 4 deletions

View File

@ -168,16 +168,16 @@ static void intel_me7_finalize_smm(void)
void intel_me_finalize_smm(void) void intel_me_finalize_smm(void)
{ {
u32 did = pci_read_config32(PCH_ME_DEV, PCI_VENDOR_ID); u16 did = pci_read_config16(PCH_ME_DEV, PCI_DEVICE_ID);
switch (did) { switch (did) {
case 0x1c3a8086: case 0x1c3a:
intel_me7_finalize_smm(); intel_me7_finalize_smm();
break; break;
case 0x1e3a8086: case 0x1e3a:
intel_me8_finalize_smm(); intel_me8_finalize_smm();
break; break;
default: default:
printk(BIOS_ERR, "No finalize handler for ME %08x.\n", did); printk(BIOS_ERR, "No finalize handler for ME %04x.\n", did);
} }
} }