mb/google/slippy: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from Haswell/Lynxpoint/ChromeEC. TEST=build/boot google/wolf, verify CFR option functionality. Change-Id: Ife64d46a9866c67fbb941cc83428f7728c6f7f95 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90162 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
e366e0ba7d
commit
6f6a10df88
3 changed files with 35 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ config BOARD_GOOGLE_BASEBOARD_SLIPPY
|
|||
select AZALIA_USE_LEGACY_VERB_TABLE
|
||||
select ACPI_GNVS_USB_CHARGECTL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
select EC_GOOGLE_CHROMEEC_LPC
|
||||
select HAVE_ACPI_RESUME
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ romstage-$(CONFIG_CHROMEOS) += chromeos.c
|
|||
romstage-y += variants/$(VARIANT_DIR)/gpio.c
|
||||
romstage-y += variants/$(VARIANT_DIR)/romstage.c
|
||||
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
|
||||
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
|
||||
|
|
|
|||
33
src/mainboard/google/slippy/cfr.c
Normal file
33
src/mainboard/google/slippy/cfr.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <boot/coreboot_tables.h>
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
#include <ec/google/chromeec/cfr.h>
|
||||
#include <southbridge/intel/lynxpoint/cfr.h>
|
||||
|
||||
static struct sm_obj_form system = {
|
||||
.ui_name = "System",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&me_disable,
|
||||
&nmi,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form ec = {
|
||||
.ui_name = "ChromeEC Embedded Controller",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&auto_fan_control,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
static struct sm_obj_form *sm_root[] = {
|
||||
&system,
|
||||
&ec,
|
||||
NULL
|
||||
};
|
||||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue