mb/purism/librem_jsl: 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: I09be7910a62441df95b186c8554bc2fe3bf8c92f Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89533 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
08efea5141
commit
e9a01dea32
3 changed files with 34 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ config BOARD_PURISM_BASEBOARD_LIBREM_JSL
|
|||
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 DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
|
|
|
|||
|
|
@ -3,4 +3,5 @@
|
|||
bootblock-y += bootblock.c
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-y += hda_verb.c
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR_ENABLED) += cfr.c
|
||||
SPD_SOURCES += isocon8gb
|
||||
|
|
|
|||
32
src/mainboard/purism/librem_jsl/cfr.c
Normal file
32
src/mainboard/purism/librem_jsl/cfr.c
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/* 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 *[]) {
|
||||
&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 *sm_root[] = {
|
||||
&system,
|
||||
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