dptf: Add support for IDSP
\_SB.DPTF.IDSP adverties to the DPTF daemon which policies the implementation supports. Added a new acpigen function to figure out which policies are used, and fills out IDSP appropriately. Change-Id: Idf67a23bf38de4481c02f98ffb27afb8ca2d1b7b Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42081 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
e4d8ebcef7
commit
03465f4b0f
@@ -69,6 +69,11 @@ static void dptf_fill_ssdt(const struct device *dev)
|
||||
for (p = DPTF_TEMP_SENSOR_0, i = 0; p <= DPTF_TEMP_SENSOR_3; ++p, ++i)
|
||||
tsr_en[i] = is_participant_used(config, p);
|
||||
|
||||
/* Policies */
|
||||
dptf_write_enabled_policies(config->policies.active, DPTF_MAX_ACTIVE_POLICIES,
|
||||
config->policies.passive, DPTF_MAX_PASSIVE_POLICIES,
|
||||
config->policies.critical, DPTF_MAX_CRITICAL_POLICIES);
|
||||
|
||||
dptf_write_active_policies(config->policies.active,
|
||||
DPTF_MAX_ACTIVE_POLICIES);
|
||||
|
||||
|
Reference in New Issue
Block a user