soc/intel/apollolake: Remove hardcode for TCO watchdog timer
Change-Id: Ie528b0ee3d447dcb819ccb7c0f832885da0f4257 Signed-off-by: Andrey Petrov <andrey.petrov@intel.com> Reviewed-on: https://review.coreboot.org/14820 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
0e46307574
commit
664d585882
|
@ -89,6 +89,7 @@
|
||||||
#define TCO_STS 0x64
|
#define TCO_STS 0x64
|
||||||
#define TCO_TIMEOUT (1 << 3)
|
#define TCO_TIMEOUT (1 << 3)
|
||||||
#define TCO1_CNT 0x68
|
#define TCO1_CNT 0x68
|
||||||
|
#define TCO_TMR_HLT (1 << 11)
|
||||||
|
|
||||||
#define GPE0_REG_MAX 4
|
#define GPE0_REG_MAX 4
|
||||||
#define GPE0_REG_SIZE 32
|
#define GPE0_REG_SIZE 32
|
||||||
|
|
|
@ -94,9 +94,9 @@ static void disable_watchdog(void)
|
||||||
uint32_t reg;
|
uint32_t reg;
|
||||||
|
|
||||||
/* Stop TCO timer */
|
/* Stop TCO timer */
|
||||||
reg = inl(ACPI_PMIO_BASE + 0x68);
|
reg = inl(ACPI_PMIO_BASE + TCO1_CNT);
|
||||||
reg |= 1 << 11;
|
reg |= TCO_TMR_HLT;
|
||||||
outl(reg, ACPI_PMIO_BASE + 0x68);
|
outl(reg, ACPI_PMIO_BASE + TCO1_CNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void migrate_power_state(int is_recovery)
|
static void migrate_power_state(int is_recovery)
|
||||||
|
|
Loading…
Reference in New Issue