ec/starlabs/merlin: Add an option to disable the fan

Add an option alongside the three existing curves to just turn
off the fan.

Change-Id: I39f6599056fe0116abbd7e2eb4084f77a7c395d3
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86304
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Sean Rhodes 2025-02-06 19:52:53 +00:00
commit 6e7b44f4f3
4 changed files with 6 additions and 2 deletions

View file

@ -79,6 +79,7 @@
#define FAN_NORMAL 0x00
#define FAN_AGGRESSIVE 0xbb
#define FAN_QUIET 0xaa
#define FAN_DISABLED 0xcc
/* Fn Lock State */
#define UNLOCKED 0x00

View file

@ -175,14 +175,15 @@ static void merlin_init(struct device *dev)
*
* Setting: fan_mode
*
* Values: Quiet, Normal, Aggressive
* Values: Disabled, Quiet, Normal, Aggressive
* Default: Normal
*
*/
const uint8_t fan_mode[] = {
FAN_NORMAL,
FAN_AGGRESSIVE,
FAN_QUIET
FAN_QUIET,
FAN_DISABLED
};
if (CONFIG(EC_STARLABS_FAN))

View file

@ -69,6 +69,7 @@ static const struct sm_object fan_mode = SM_DECLARE_ENUM({
{ "Normal", 0 },
{ "Aggressive", 1 },
{ "Quiet", 2 },
{ "Disabled", 3 },
SM_ENUM_VALUE_END },
});

View file

@ -62,6 +62,7 @@ static const struct sm_object fan_mode = SM_DECLARE_ENUM({
{ "Normal", 0 },
{ "Aggressive", 1 },
{ "Quiet", 2 },
{ "Disabled", 3 },
SM_ENUM_VALUE_END },
});