summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/parrot/smihandler.c6
-rw-r--r--src/mainboard/google/stout/smihandler.c4
-rw-r--r--src/mainboard/samsung/lumpy/smihandler.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c
index 05f14af226..7d519e39a6 100644
--- a/src/mainboard/google/parrot/smihandler.c
+++ b/src/mainboard/google/parrot/smihandler.c
@@ -2,11 +2,11 @@
#include <console/console.h>
#include <cpu/x86/smm.h>
+#include <halt.h>
#include <soc/nvs.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/bd82x6x/me.h>
#include <southbridge/intel/common/pmutil.h>
-#include <southbridge/intel/common/pmbase.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <ec/compal/ene932/ec.h>
#include "ec.h"
@@ -26,7 +26,7 @@ static u8 mainboard_smi_ec(void)
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
/* Go to S5 */
- write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10));
+ poweroff();
break;
}
@@ -42,7 +42,7 @@ void mainboard_smi_gpi(u32 gpi_sts)
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
/* Go to S5 */
- write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10));
+ poweroff();
}
}
diff --git a/src/mainboard/google/stout/smihandler.c b/src/mainboard/google/stout/smihandler.c
index f6adbf9534..30637ab8c5 100644
--- a/src/mainboard/google/stout/smihandler.c
+++ b/src/mainboard/google/stout/smihandler.c
@@ -3,10 +3,10 @@
#include <device/pci_ops.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
+#include <halt.h>
#include <soc/nvs.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/bd82x6x/me.h>
-#include <southbridge/intel/common/pmbase.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
/* Include EC functions */
@@ -21,7 +21,7 @@ static u8 mainboard_smi_ec(void)
case EC_SMI_LID_CLOSED:
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
/* Go to S5 */
- write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10));
+ poweroff();
break;
}
diff --git a/src/mainboard/samsung/lumpy/smihandler.c b/src/mainboard/samsung/lumpy/smihandler.c
index 50cfa47418..e7861cb38f 100644
--- a/src/mainboard/samsung/lumpy/smihandler.c
+++ b/src/mainboard/samsung/lumpy/smihandler.c
@@ -2,9 +2,9 @@
#include <console/console.h>
#include <cpu/x86/smm.h>
+#include <halt.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/bd82x6x/me.h>
-#include <southbridge/intel/common/pmbase.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <ec/smsc/mec1308/ec.h>
#include "ec.h"
@@ -20,7 +20,7 @@ static u8 mainboard_smi_ec(void)
printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n");
/* Go to S5 */
- write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10));
+ poweroff();
break;
}