Skip to content
Closed
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
3 changes: 3 additions & 0 deletions src/ec/system76/ec/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
ifeq ($(CONFIG_EC_SYSTEM76_EC),y)

all-y += system76_ec.c

ramstage-y += smbios.c

smm-$(CONFIG_DEBUG_SMI) += system76_ec.c

endif
8 changes: 8 additions & 0 deletions src/ec/system76/ec/smbios.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}
6 changes: 0 additions & 6 deletions src/mainboard/system76/addw1/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <variant/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/adl-p/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <mainboard/gpio.h>
#include <soc/ramstage.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/bonw14/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <mainboard/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/cml-u/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <mainboard/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/gaze15/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <variant/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/gaze17/ramstage.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#include <smbios.h>
#include <soc/ramstage.h>
#include <variant/gpio.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{
params->CnviRfResetPinMux = 0x194CE404; // GPP_F4
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/oryp5/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <mainboard/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/oryp6/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <variant/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/tgl-h/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <soc/ramstage.h>
#include <variant/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/tgl-u/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <mainboard/gpio.h>
#include <soc/ramstage.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down
6 changes: 0 additions & 6 deletions src/mainboard/system76/whl-u/ramstage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

#include <device/device.h>
#include <mainboard/gpio.h>
#include <smbios.h>

smbios_wakeup_type smbios_system_wakeup_type(void)
{
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
}

static void mainboard_init(void *chip_info)
{
Expand Down