Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69164 )
Change subject: [DO NOT SUBMIT] mb/prodrive/hermes: Disable Wake-on-LAN ......................................................................
[DO NOT SUBMIT] mb/prodrive/hermes: Disable Wake-on-LAN
It is siesta time!
TODO: Honor value from EEPROM setting.
Change-Id: I5ff302e25dc74ae001047c506c7725b8c48c8197 Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/mainboard/prodrive/hermes/smihandler.c 1 file changed, 27 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/69164/1
diff --git a/src/mainboard/prodrive/hermes/smihandler.c b/src/mainboard/prodrive/hermes/smihandler.c index 50b8e8b..2d178ed 100644 --- a/src/mainboard/prodrive/hermes/smihandler.c +++ b/src/mainboard/prodrive/hermes/smihandler.c @@ -1,10 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h> +#include <arch/io.h> #include <cpu/x86/smm.h> #include <intelblocks/gpio.h> #include <intelblocks/smihandler.h> #include <soc/gpio.h> +#include <soc/pm.h>
static const struct pad_config sgpio_table[] = { PAD_CFG_GPO(GPP_F10, 0, DEEP), @@ -21,4 +23,15 @@ */ if (slp_typ >= ACPI_S3) gpio_configure_pads(sgpio_table, ARRAY_SIZE(sgpio_table)); + + /* + * Disable PCIe wake to disable Wake-on-LAN. + * + * TODO: Honor value from EEPROM setting. + */ + if (slp_typ >= ACPI_S3) { + uint32_t reg32 = inl(ACPI_BASE_ADDRESS + PM1_STS); + reg32 |= 1 << 30; /* Set PCIEXP_WAKE_DIS */ + outl(reg32, ACPI_BASE_ADDRESS + PM1_STS); + } }