mb/google/sarien: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from Cometlake SoC and Intel common. TEST=build/boot google/sarien, verify CFR option functionality. Change-Id: Id7b023cecba36ac4a5c65eb5ece05361e8881980 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
This commit is contained in:
parent
e3bee6397d
commit
46a32a2b56
3 changed files with 38 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ config BOARD_GOOGLE_BASEBOARD_SARIEN
|
|||
select DRIVERS_GFX_GENERIC
|
||||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select DRIVERS_SPI_ACPI
|
||||
select DRIVERS_USB_ACPI
|
||||
select EC_GOOGLE_WILCO
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ bootblock-y += bootblock.c
|
|||
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-y += sku.c
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
|
||||
romstage-y += romstage.c
|
||||
|
||||
|
|
|
|||
36
src/mainboard/google/sarien/cfr.c
Normal file
36
src/mainboard/google/sarien/cfr.c
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
/* 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,
|
||||
&me_state,
|
||||
&me_state_counter,
|
||||
&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