summaryrefslogtreecommitdiff
path: root/src/mainboard/google/ninja
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/ninja')
-rw-r--r--src/mainboard/google/ninja/mainboard_smi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/ninja/mainboard_smi.c b/src/mainboard/google/ninja/mainboard_smi.c
index bb0f4fb787..ba145a0437 100644
--- a/src/mainboard/google/ninja/mainboard_smi.c
+++ b/src/mainboard/google/ninja/mainboard_smi.c
@@ -13,6 +13,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>
@@ -88,7 +89,7 @@ void mainboard_smi_sleep(uint8_t 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);
@@ -101,7 +102,7 @@ void mainboard_smi_sleep(uint8_t slp_typ)
/* Enable wake pin in GPE block. */
enable_gpe(WAKE_GPIO_EN);
break;
- case 5:
+ case ACPI_S5:
if (smm_get_gnvs()->s5u0 == 0)
google_chromeec_set_usb_charge_mode(
0, USB_CHARGE_MODE_DISABLED);