Skip to content

Commit cd01bb7

Browse files
committed
{ec,mb}/system76: Move smbios_system_wakeup_type
Move the implementation of smbios_system_wakeup_type from the mainboards to the EC for all models that use System76 EC (everything except KBL). Change-Id: I7e609fc80f8ad9377df34797d611bfd005cca9ce Signed-off-by: Tim Crawford <tcrawford@system76.com>
1 parent 0a44023 commit cd01bb7

File tree

15 files changed

+11
-78
lines changed

15 files changed

+11
-78
lines changed

src/ec/system76/ec/Makefile.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
ifeq ($(CONFIG_EC_SYSTEM76_EC),y)
22

33
all-y += system76_ec.c
4+
5+
ramstage-y += smbios.c
6+
47
smm-$(CONFIG_DEBUG_SMI) += system76_ec.c
58

69
endif

src/ec/system76/ec/smbios.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
#include <smbios.h>
4+
5+
smbios_wakeup_type smbios_system_wakeup_type(void)
6+
{
7+
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
8+
}

src/mainboard/system76/addw1/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
#include <device/device.h>
44
#include <variant/gpio.h>
5-
#include <smbios.h>
6-
7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
115

126
static void mainboard_init(void *chip_info)
137
{

src/mainboard/system76/adl-p/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
#include <mainboard/gpio.h>
44
#include <soc/ramstage.h>
5-
#include <smbios.h>
6-
7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
115

126
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
137
{

src/mainboard/system76/bonw14/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
#include <device/device.h>
44
#include <mainboard/gpio.h>
5-
#include <smbios.h>
6-
7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
115

126
static void mainboard_init(void *chip_info)
137
{

src/mainboard/system76/cml-u/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
#include <device/device.h>
44
#include <mainboard/gpio.h>
5-
#include <smbios.h>
6-
7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
115

126
static void mainboard_init(void *chip_info)
137
{

src/mainboard/system76/gaze15/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
#include <device/device.h>
44
#include <variant/gpio.h>
5-
#include <smbios.h>
6-
7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
115

126
static void mainboard_init(void *chip_info)
137
{

src/mainboard/system76/gaze16/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22

3-
#include <smbios.h>
43
#include <soc/ramstage.h>
54
#include <variant/gpio.h>
65
#include "variant.h"
76

8-
smbios_wakeup_type smbios_system_wakeup_type(void)
9-
{
10-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
11-
}
12-
137
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
148
{
159
variant_silicon_init_params(params);

src/mainboard/system76/gaze17/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22

3-
#include <smbios.h>
43
#include <soc/ramstage.h>
54
#include <variant/gpio.h>
65

7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
11-
126
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
137
{
148
params->CnviRfResetPinMux = 0x194CE404; // GPP_F4

src/mainboard/system76/lemp9/ramstage.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22

3-
#include <smbios.h>
43
#include <soc/ramstage.h>
54
#include "gpio.h"
65

7-
smbios_wakeup_type smbios_system_wakeup_type(void)
8-
{
9-
return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
10-
}
11-
126
void mainboard_silicon_init_params(FSPS_UPD *supd)
137
{
148
/* Configure pads prior to SiliconInit() in case there's any

0 commit comments

Comments
 (0)