| 1 |
|
| 2 |
|
| 3 |
#include <acpi/acpi.h> |
| 4 |
#include <arch/io.h> |
| 5 |
#include <cpu/x86/smm.h> |
| 6 |
#include <southbridge/intel/lynxpoint/pch.h> |
| 7 |
#include <southbridge/intel/lynxpoint/me.h> |
| 8 |
#include <northbridge/intel/haswell/haswell.h> |
| 9 |
#include <cpu/intel/haswell/haswell.h> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
#define SIO_GPIO_BASE_SET4 (0x730 + 3) |
| 16 |
#define SIO_GPIO_BLINK_GPIO45 0x25 |
| 17 |
void mainboard_smi_sleep(u8 slp_typ) |
| 18 |
{ |
| 19 |
u8 reg8; |
| 20 |
|
| 21 |
switch (slp_typ) { |
| 22 |
case ACPI_S3: |
| 23 |
case ACPI_S4: |
| 24 |
break; |
| 25 |
|
| 26 |
case ACPI_S5: |
| 27 |
|
| 28 |
reg8 = inb(SIO_GPIO_BASE_SET4); |
| 29 |
reg8 |= (1 << 5); |
| 30 |
outb(reg8, SIO_GPIO_BASE_SET4); |
| 31 |
break; |
| 32 |
} |
| 33 |
} |