mb/google/guybrush: Add CFR option menu support

Add CFR option menu support when using edk2 payload and SMMSTORE.
Include relevant items from ChromeEC.

TEST=build/boot google/guybrush (dewatt), verify CFR option
functionality.

Change-Id: I16e80e2ba1e51617956043137cd8fee1400b57f2
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90314
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Matt DeVillier 2025-12-01 20:22:32 -06:00
commit c397821cb6
3 changed files with 26 additions and 0 deletions

View file

@ -15,6 +15,7 @@ config BOARD_GOOGLE_BASEBOARD_GUYBRUSH
select DRIVERS_GENERIC_MAX98357A
select DRIVERS_I2C_GENERIC
select DRIVERS_I2C_HID
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
select DRIVERS_PCIE_RTD3_DEVICE
select DRIVERS_UART_ACPI
select DRIVERS_PCIE_GENERIC

View file

@ -10,6 +10,7 @@ ramstage-y += mainboard.c
ramstage-y += ec.c
ramstage-y += port_descriptors.c
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
all-y += spi_speeds.c

View file

@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <boot/coreboot_tables.h>
#include <drivers/option/cfr_frontend.h>
#include <ec/google/chromeec/cfr.h>
static struct sm_obj_form ec = {
.ui_name = "ChromeEC Embedded Controller",
.obj_list = (const struct sm_object *[]) {
&ec_kb_backlight,
&auto_fan_control,
NULL
},
};
static struct sm_obj_form *sm_root[] = {
&ec,
NULL
};
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
{
cfr_write_setup_menu(cfr_root, sm_root);
}