diff options
Diffstat (limited to 'src/mainboard/google/auron_paine')
-rw-r--r-- | src/mainboard/google/auron_paine/smihandler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/auron_paine/smihandler.c b/src/mainboard/google/auron_paine/smihandler.c index d68c87a1ab..b34a69a451 100644 --- a/src/mainboard/google/auron_paine/smihandler.c +++ b/src/mainboard/google/auron_paine/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> @@ -73,7 +74,7 @@ void mainboard_smi_sleep(u8 slp_typ) { /* Disable USB charging if required */ switch (slp_typ) { - case 3: + case ACPI_S3: if (smm_get_gnvs()->s3u0 == 0) { google_chromeec_set_usb_charge_mode( 0, USB_CHARGE_MODE_DISABLED); @@ -86,7 +87,7 @@ void mainboard_smi_sleep(u8 slp_typ) /* Enable wake events */ google_chromeec_set_wake_mask(MAINBOARD_EC_S3_WAKE_EVENTS); break; - case 5: + case ACPI_S5: if (smm_get_gnvs()->s5u0 == 0) { google_chromeec_set_usb_charge_mode( 0, USB_CHARGE_MODE_DISABLED); |