summaryrefslogtreecommitdiff
path: root/src/mainboard/google/glados/smihandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/glados/smihandler.c')
-rw-r--r--src/mainboard/google/glados/smihandler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/glados/smihandler.c b/src/mainboard/google/glados/smihandler.c
index cd0cc19a35..ff98b367d5 100644
--- a/src/mainboard/google/glados/smihandler.c
+++ b/src/mainboard/google/glados/smihandler.c
@@ -14,6 +14,7 @@
* GNU General Public License for more details.
*/
+#include <arch/acpi.h>
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
@@ -84,11 +85,11 @@ void mainboard_smi_gpi_handler(const struct gpi_status *sts)
static void google_ec_smi_sleep(u8 slp_typ)
{
switch (slp_typ) {
- case 3:
+ case ACPI_S3:
/* Enable wake events */
google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS);
break;
- case 5:
+ case ACPI_S5:
/* Enable wake events */
google_chromeec_set_wake_mask(MAINBOARD_EC_S5_WAKE_EVENTS);
break;