soc/intel/*: only enable PM Timer emulation if the PM Timer is disabled

uCode PM Timer emulation is only needed when the hardware PM ACPI timer
is disabled. Also, since it redirects any register accesses to uCode,
it overrides the hardware PM Timer. Thus, only enable emulation
when required.

Change-Id: I60a775bd6eb4206750f606ce8a8777d2e2dfb579
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57930
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Michael Niewöhner 2021-09-24 23:42:14 +02:00
parent 0e905801f8
commit 413810e55f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ void enable_pm_timer_emulation(void)
{ {
msr_t msr; msr_t msr;
if (!CONFIG_CPU_XTAL_HZ) if (CONFIG(USE_PM_ACPI_TIMER) || !CONFIG_CPU_XTAL_HZ)
return; return;
/* /*