x86: baytrail: acpi: Add APIs for determining/clearing sleep state
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Apr 2017 14:24:29 +0000 (07:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:11:46 +0000 (17:11 +0800)
commitfcf2fba472ede05df2e7ed5fb141b8caf4f09681
tree686ef2ffdb688051794fa0e35f2ce4990cce5fea
parent4372c111d49f1fa0fec0c8645c23a6266617e69d
x86: baytrail: acpi: Add APIs for determining/clearing sleep state

This adds APIs for determining previous sleep state from ACPI I/O
registers, as well as clearing sleep state on BayTrail SoC.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
arch/x86/cpu/baytrail/acpi.c
arch/x86/include/asm/arch-baytrail/iomap.h