From 2b959f4560fd821965ca797d1a77d79aee04a4a4 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 1 Dec 2025 20:10:21 -0600 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/90311 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Jason Glenesk --- src/mainboard/google/puff/cfr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mainboard/google/puff/cfr.c b/src/mainboard/google/puff/cfr.c index 8a60ed7d53..e50af539c8 100644 --- a/src/mainboard/google/puff/cfr.c +++ b/src/mainboard/google/puff/cfr.c @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -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 };