mb/purism/librem_cnl: 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. Restrict the power-on-after-fail settings to the Mini boards since it doesn't really make sense for a laptop. TEST=build/boot purism librem_mini_v2, verify CFR option functionality. Change-Id: I0945ad7ddcafc6970a69777ace53d09bb37c749f Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89532 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
1d02f139d3
commit
08efea5141
3 changed files with 48 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ config BOARD_PURISM_BASEBOARD_LIBREM_CNL
|
|||
def_bool n
|
||||
select BOARD_ROMSIZE_KB_16384
|
||||
select DRIVERS_GENERIC_CBFS_SERIAL
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select DRIVERS_USB_ACPI
|
||||
select HAVE_ACPI_RESUME
|
||||
select HAVE_ACPI_TABLES
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ ramstage-y += variants/$(VARIANT_DIR)/gpio.c
|
|||
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR_ENABLED) += cfr.c
|
||||
|
||||
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include
|
||||
|
||||
|
|
|
|||
46
src/mainboard/purism/librem_cnl/cfr.c
Normal file
46
src/mainboard/purism/librem_cnl/cfr.c
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/* 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
|
||||
},
|
||||
};
|
||||
|
||||
#if !CONFIG(BOARD_PURISM_LIBREM_14)
|
||||
static struct sm_obj_form power = {
|
||||
.ui_name = "Power",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&power_on_after_fail,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
#endif
|
||||
|
||||
static struct sm_obj_form *sm_root[] = {
|
||||
&system,
|
||||
#if !CONFIG(BOARD_PURISM_LIBREM_14)
|
||||
&power,
|
||||
#endif
|
||||
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