mb/google,intel,samsung: Use common poweroff()
Change-Id: I3881c152663a038833d8126d7f24f2a6688426d1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74515 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
9641c0e102
commit
e361864e9f
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue