mb/google/puff: Add CFR option for automatic fan control

Allow users to enable/disable automatic fan control via CFR options
menu.

TEST=build/boot puff (wyvern) w/edk2 payload, verify automatic fan
control toggle functional.

Change-Id: I188e4393776b986809cbb1e51accaa88864b667f
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90311
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
This commit is contained in:
Matt DeVillier 2025-12-01 20:10:21 -06:00
commit 2b959f4560

View file

@ -3,6 +3,7 @@
#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>
@ -25,6 +26,14 @@ static struct sm_obj_form system = {
},
};
static struct sm_obj_form ec = {
.ui_name = "ChromeEC Embedded Controller",
.obj_list = (const struct sm_object *[]) {
&auto_fan_control,
NULL
},
};
static struct sm_obj_form power = {
.ui_name = "Power",
.obj_list = (const struct sm_object *[]) {
@ -35,6 +44,7 @@ static struct sm_obj_form power = {
static struct sm_obj_form *sm_root[] = {
&system,
&ec,
&power,
NULL
};