diff options
Diffstat (limited to 'src/mainboard/google/chell')
-rw-r--r-- | src/mainboard/google/chell/romstage.c | 3 | ||||
-rw-r--r-- | src/mainboard/google/chell/smihandler.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/google/chell/romstage.c b/src/mainboard/google/chell/romstage.c index 65c095dd65..5360da683c 100644 --- a/src/mainboard/google/chell/romstage.c +++ b/src/mainboard/google/chell/romstage.c @@ -16,6 +16,7 @@ */ #include <string.h> +#include <arch/acpi.h> #include <ec/google/chromeec/ec.h> #include <soc/pei_data.h> #include <soc/pei_wrapper.h> @@ -25,7 +26,7 @@ void mainboard_romstage_entry(struct romstage_params *params) { /* Turn on keyboard backlight to indicate we are booting */ - if (params->power_state->prev_sleep_state != SLEEP_STATE_S3) + if (params->power_state->prev_sleep_state != ACPI_S3) google_chromeec_kbbacklight(25); /* Fill out PEI DATA */ diff --git a/src/mainboard/google/chell/smihandler.c b/src/mainboard/google/chell/smihandler.c index cd0cc19a35..ff98b367d5 100644 --- a/src/mainboard/google/chell/smihandler.c +++ b/src/mainboard/google/chell/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; |