diff options
-rw-r--r-- | src/soc/intel/skylake/pmutil.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/pmutil.c b/src/soc/intel/skylake/pmutil.c index 67ca9bdc88..0f747348a4 100644 --- a/src/soc/intel/skylake/pmutil.c +++ b/src/soc/intel/skylake/pmutil.c @@ -24,6 +24,7 @@ #include <device/pci.h> #include <device/pci_def.h> #include <console/console.h> +#include <halt.h> #include <stdlib.h> #include <soc/gpio.h> #include <soc/iomap.h> @@ -430,3 +431,9 @@ uint16_t pmc_tco_regs(void) return reg16; } + +void poweroff(void) +{ + enable_pm1_control(SLP_EN | (SLP_TYP_S5 << SLP_TYP_SHIFT)); + halt(); +} |