drivers/crb: Return an accurate status
Rather than unconditionally returning that the device is present, return whether the fTPM is on or not. Test=Boot the StarLite Mk V with the Intel ME disabled, and check that the TPM is reported as not present. Change-Id: If8236021bf0e1264646971cff9c998fac99ac220 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85228 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
c1432f4085
commit
d503ce1277
1 changed files with 4 additions and 1 deletions
|
|
@ -90,7 +90,10 @@ static void crb_tpm_fill_ssdt(const struct device *dev)
|
|||
|
||||
acpi_device_write_uid(dev);
|
||||
|
||||
acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON);
|
||||
if (CONFIG(HAVE_INTEL_PTT) && ptt_active())
|
||||
acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON);
|
||||
else
|
||||
acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_OFF);
|
||||
|
||||
/* Resources */
|
||||
acpigen_write_name("_CRS");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue