mb/google/octopus: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from Geminilake SoC, Intel common, and ChromeEC. TEST=build/boot google/octopus (ampton), verify CFR option functionality. Change-Id: I5ed3e038684c852c71bd812d6a4b8d05290d5361 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
This commit is contained in:
parent
f0346845cd
commit
0f93d154b2
3 changed files with 44 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ config BOARD_GOOGLE_BASEBOARD_OCTOPUS
|
|||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_I2C_SX9310
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select DRIVERS_SPI_ACPI
|
||||
select DRIVERS_USB_ACPI
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ bootblock-y += ec.c
|
|||
|
||||
romstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||
ramstage-y += ec.c
|
||||
ramstage-y += mainboard.c
|
||||
|
|
|
|||
42
src/mainboard/google/octopus/cfr.c
Normal file
42
src/mainboard/google/octopus/cfr.c
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <boot/coreboot_tables.h>
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
#include <ec/google/chromeec/cfr.h>
|
||||
#include <intelblocks/cfr.h>
|
||||
#include <soc/cfr.h>
|
||||
|
||||
static struct sm_obj_form system = {
|
||||
.ui_name = "System",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&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 ec = {
|
||||
.ui_name = "ChromeEC Embedded Controller",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&ec_kb_backlight,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form *sm_root[] = {
|
||||
&system,
|
||||
&ec,
|
||||
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