mb/erying/tgl: Introduce CFR
Change-Id: I26e502d26d3498c623730f0a2fbc39bb96706c57 Signed-off-by: Alicja Michalska <alicja.michalska@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88718 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
parent
23cf7c64f9
commit
73cba1fdea
2 changed files with 57 additions and 0 deletions
|
|
@ -5,3 +5,4 @@ bootblock-y += bootblock.c
|
|||
romstage-y += romstage_fsp_params.c
|
||||
|
||||
ramstage-y += ramstage.c
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
|
|
|
|||
56
src/mainboard/erying/tgl/cfr.c
Normal file
56
src/mainboard/erying/tgl/cfr.c
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
/* 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 platform = {
|
||||
.ui_name = "Platform",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&me_state,
|
||||
&me_state_counter,
|
||||
&legacy_8254_timer,
|
||||
&vtd,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form igpu = {
|
||||
.ui_name = "Integrated Graphics",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&igd_dvmt,
|
||||
&igd_aperture,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form performance = {
|
||||
.ui_name = "Performance",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&hyper_threading,
|
||||
&pciexp_speed,
|
||||
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[] = {
|
||||
&platform,
|
||||
&igpu,
|
||||
&performance,
|
||||
&power,
|
||||
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