aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/lpc_init.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-07-13 23:20:26 -0500
committerAaron Durbin <adurbin@chromium.org>2016-07-15 08:32:09 +0200
commit1b6196dec95e12ae44b5cfe62073c3dcd3f52686 (patch)
treecee76a83606e8d76939225c01003b2240c4ce3cd /src/soc/intel/braswell/lpc_init.c
parentf5cfaa39342bed7dbf3abe19486089c4cf8a4561 (diff)
soc/intel/braswell: use common Intel ACPI hardware definitions
Transition to using the common Intel ACPI hardware definitions generic ACPI definitions. BUG=chrome-os-partner:54977 Change-Id: Ia3860fe9e5229917881696e08418c3fd5fb64ecc Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/15670 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Lee Leahy <leroy.p.leahy@intel.com>
Diffstat (limited to 'src/soc/intel/braswell/lpc_init.c')
-rw-r--r--src/soc/intel/braswell/lpc_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/braswell/lpc_init.c b/src/soc/intel/braswell/lpc_init.c
index 85161ccd13..a593d30c81 100644
--- a/src/soc/intel/braswell/lpc_init.c
+++ b/src/soc/intel/braswell/lpc_init.c
@@ -114,8 +114,8 @@ void lpc_init(void)
pm1_cnt = inl(ACPI_BASE_ADDRESS + PM1_CNT);
if (pm1_sts & WAK_STS)
- slp_type = (pm1_cnt & SLP_TYP) >> SLP_TYP_SHIFT;
+ slp_type = acpi_sleep_from_pm1(pm1_cnt);
- if ((slp_type == SLP_TYP_S3) || (slp_type == SLP_TYP_S5))
+ if ((slp_type == ACPI_S3) || (slp_type == ACPI_S5))
lpc_gpio_config(RESUME_CYCLE);
}