diff --git a/src/soc/intel/apollolake/include/soc/pm.h b/src/soc/intel/apollolake/include/soc/pm.h index fe7a4230e9..6b12886c07 100644 --- a/src/soc/intel/apollolake/include/soc/pm.h +++ b/src/soc/intel/apollolake/include/soc/pm.h @@ -89,6 +89,7 @@ #define TCO_STS 0x64 #define TCO_TIMEOUT (1 << 3) #define TCO1_CNT 0x68 +#define TCO_TMR_HLT (1 << 11) #define GPE0_REG_MAX 4 #define GPE0_REG_SIZE 32 diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c index da537996dc..cfef483d67 100644 --- a/src/soc/intel/apollolake/romstage.c +++ b/src/soc/intel/apollolake/romstage.c @@ -94,9 +94,9 @@ static void disable_watchdog(void) uint32_t reg; /* Stop TCO timer */ - reg = inl(ACPI_PMIO_BASE + 0x68); - reg |= 1 << 11; - outl(reg, ACPI_PMIO_BASE + 0x68); + reg = inl(ACPI_PMIO_BASE + TCO1_CNT); + reg |= TCO_TMR_HLT; + outl(reg, ACPI_PMIO_BASE + TCO1_CNT); } static void migrate_power_state(int is_recovery)