Debian Codegraph @

src/mainboard/erying/tgl/cfr.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <boot/coreboot_tables.h>
4 #include <drivers/option/cfr_frontend.h>
5 #include <intelblocks/cfr.h>
6 #include <soc/cfr.h>
7
8 static struct sm_obj_form platform = {
9 .ui_name = "Platform",
10 .obj_list = (const struct sm_object *[]) {
11 &me_state,
12 &me_state_counter,
13 &legacy_8254_timer,
14 &vtd,
15 NULL
16 },
17 };
18
19 static struct sm_obj_form igpu = {
20 .ui_name = "Integrated Graphics",
21 .obj_list = (const struct sm_object *[]) {
22 &igd_dvmt,
23 &igd_aperture,
24 NULL
25 },
26 };
27
28 static struct sm_obj_form performance = {
29 .ui_name = "Performance",
30 .obj_list = (const struct sm_object *[]) {
31 &hyper_threading,
32 &pciexp_speed,
33 NULL
34 },
35 };
36
37 static struct sm_obj_form power = {
38 .ui_name = "Power",
39 .obj_list = (const struct sm_object *[]) {
40 &power_on_after_fail,
41 NULL
42 },
43 };
44
45 static struct sm_obj_form *sm_root[] = {
46 &platform,
47 &igpu,
48 &performance,
49 &power,
50 NULL
51 };
52
53 void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
54 {
55 cfr_write_setup_menu(cfr_root, sm_root);
56 }