diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2020-05-29 14:58:16 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-07 17:23:34 +0000 |
commit | e4d8ebcef783f89fb9645d26d339dfb33065530f (patch) | |
tree | 64c3e2a82717910329216e4f5ed68430cea9c1d9 /src/drivers/intel/dptf/chip.h | |
parent | bb5c255907378a5c5798b5dab3616df1e63d3ee7 (diff) |
dptf: Add support for Fan and TSR options
DPTF has several options on how to control the fan (fine-grained speed
control, minimum speed change in percentage points, and whether or not
the DPTF device should notify the Fan if it detects low speed).
Individual TSRs can also set GTSH, which is the amount of hysteresis
inherent in the measurement, either from circuitry (if analog), or in
firmware (if digital).
BUG=b:143539650
TEST=compiles
Change-Id: I42d789d877da28c163e394d7de5fb1ff339264eb
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41891
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/drivers/intel/dptf/chip.h')
-rw-r--r-- | src/drivers/intel/dptf/chip.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/drivers/intel/dptf/chip.h b/src/drivers/intel/dptf/chip.h index 0d2c25cf61..28403a83bd 100644 --- a/src/drivers/intel/dptf/chip.h +++ b/src/drivers/intel/dptf/chip.h @@ -17,6 +17,33 @@ struct drivers_intel_dptf_config { struct dptf_fan_perf fan_perf[DPTF_MAX_FAN_PERF_STATES]; struct dptf_power_limits power_limits; } controls; + + /* Note that all values in this struct are optional */ + struct { + struct { + /* True means _FSL is percentages, False means _FSL is Control values */ + bool fine_grained_control; + /* + * Recommended minimum step size in percentage points to adjust fan + * speed when utilizing fine-grained control (1-9) + */ + uint8_t step_size; + /* + * True means the platform will issue a Notify (0x80) to the fan device + * if a a low fan speed is detected + */ + bool low_speed_notify; + } fan; + struct { + /* + * The amount of hysteresis implemented in circuitry or in the platform + * EC's firmware implementation (using the GTSH object) + */ + uint8_t hysteresis; + /* Name applied to TSR (using the _STR object) */ + const char *desc; + } tsr[DPTF_MAX_TSR]; + } options; }; #endif /* _DRIVERS_INTEL_DPTF_CHIP_H_ */ |