mb/purism/librem_l1um_v2: Add CFR option menu support

Add CFR option menu support when using edk2 payload and SMMSTORE.
Drop the Intel ME-related options since these boards ship with the
ME disabled via HAP.

Change-Id: I203b46320660d326db0cb2733b998003fc12e905
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89534
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Matt DeVillier 2025-10-10 13:53:55 -05:00
commit 0d50fdf035
3 changed files with 44 additions and 0 deletions

View file

@ -6,6 +6,7 @@ config BOARD_PURISM_BASEBOARD_LIBREM_L1UM_V2
select DRIVERS_ASPEED_AST2050
select DRIVERS_ASPEED_AST_COMMON
select DRIVERS_GENERIC_CBFS_SERIAL
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
select DRIVERS_UART_8250IO
select DRIVERS_USB_ACPI
select GENERATE_SMBIOS_TABLES

View file

@ -2,3 +2,4 @@
bootblock-y += bootblock.c
ramstage-y += ramstage.c
ramstage-$(CONFIG_DRIVERS_OPTION_CFR_ENABLED) += cfr.c

View file

@ -0,0 +1,42 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <boot/coreboot_tables.h>
#include <drivers/option/cfr_frontend.h>
#include <intelblocks/cfr.h>
#include <soc/cfr.h>
static struct sm_obj_form system = {
.ui_name = "System",
.obj_list = (const struct sm_object *[]) {
&hyper_threading,
&igd_dvmt,
&igd_aperture,
&legacy_8254_timer,
&pciexp_aspm,
&pciexp_clk_pm,
&pciexp_l1ss,
&pciexp_speed,
&s0ix_enable,
&vtd,
NULL
},
};
static struct sm_obj_form power = {
.ui_name = "Power",
.obj_list = (const struct sm_object *[]) {
&power_on_after_fail,
NULL
},
};
static struct sm_obj_form *sm_root[] = {
&system,
&power,
NULL
};
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
{
cfr_write_setup_menu(cfr_root, sm_root);
}