Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mb/system76/mtl: darp10: Configure SLP_LAN# #239

Open
wants to merge 3 commits into
base: system76
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mainboard/system76/mtl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ config MAINBOARD_VERSION
default "lemp13-b" if BOARD_SYSTEM76_LEMP13_B

config CMOS_DEFAULT_FILE
default "src/mainboard/\$(MAINBOARDDIR)/cmos-csme.default" if BOARD_SYSTEM76_DARP10 || BOARD_SYSTEM76_DARP10_B
default "src/mainboard/\$(MAINBOARDDIR)/cmos.default"

config CONSOLE_POST
Expand Down
3 changes: 3 additions & 0 deletions src/mainboard/system76/mtl/cmos-csme.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
boot_option=Fallback
debug_level=Debug
me_state=Enable
6 changes: 3 additions & 3 deletions src/mainboard/system76/mtl/variants/darp10/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPP_C00, NONE, DEEP, NF1), // SMB_CLK
PAD_CFG_NF(GPP_C01, NONE, DEEP, NF1), // SMB_DATA
PAD_CFG_NF(GPP_C02, NONE, DEEP, NF1), // TLS confidentiality strap
PAD_CFG_NF(GPP_C03, UP_20K, DEEP, NF1), // SML0_CLK
PAD_CFG_NF(GPP_C04, UP_20K, DEEP, NF1), // SML0_DATA
PAD_CFG_NF(GPP_C03, NONE, DEEP, NF1), // SML0_CLK
PAD_CFG_NF(GPP_C04, NONE, DEEP, NF1), // SML0_DATA
PAD_CFG_NF(GPP_C05, UP_20K, DEEP, NF1), // eSPI disabled strap
PAD_CFG_NF(GPP_C06, UP_20K, DEEP, NF1), // PMC_I2C_SCL
PAD_CFG_NF(GPP_C07, UP_20K, DEEP, NF1), // PMC_I2C_SDA
Expand Down Expand Up @@ -196,7 +196,7 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPP_V09, NONE, DEEP, NF1), // SLP_WLAN#
PAD_NC(GPP_V10, NONE),
PAD_CFG_NF(GPP_V11, NONE, DEEP, NF1), // LANPHYPC
PAD_CFG_GPO(GPP_V12, 0, DEEP), // SLP_LAN#
PAD_CFG_NF(GPP_V12, NONE, DEEP, NF1), // SLP_LAN#
// GPP_V13 missing
PAD_CFG_NF(GPP_V14, NONE, DEEP, NF1), // PCIE_WAKE#
// GPP_V15 missing
Expand Down
3 changes: 3 additions & 0 deletions src/mainboard/system76/mtl/variants/darp10/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params)
// XXX: Enabling C10 reporting causes system to constantly enter and
// exit opportunistic suspend when idle.
params->PchEspiHostC10ReportEnable = 0;

// Ensure WoL is not enabled when on battery.
params->PchPmSlpLanLowDc = 1;
}