Commit 16fbe00d authored by Alex Deucher's avatar Alex Deucher

drm/radeon: add support for thermal controller on KB/KV

No support for reading temperature back yet.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a412fce0
...@@ -1132,6 +1132,7 @@ enum radeon_int_thermal_type { ...@@ -1132,6 +1132,7 @@ enum radeon_int_thermal_type {
THERMAL_TYPE_SI, THERMAL_TYPE_SI,
THERMAL_TYPE_EMC2103_WITH_INTERNAL, THERMAL_TYPE_EMC2103_WITH_INTERNAL,
THERMAL_TYPE_CI, THERMAL_TYPE_CI,
THERMAL_TYPE_KV,
}; };
struct radeon_voltage { struct radeon_voltage {
......
...@@ -2237,6 +2237,11 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r ...@@ -2237,6 +2237,11 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r
(controller->ucFanParameters & (controller->ucFanParameters &
ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with"); ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
rdev->pm.int_thermal_type = THERMAL_TYPE_CI; rdev->pm.int_thermal_type = THERMAL_TYPE_CI;
} else if (controller->ucType == ATOM_PP_THERMALCONTROLLER_KAVERI) {
DRM_INFO("Internal thermal controller %s fan control\n",
(controller->ucFanParameters &
ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
rdev->pm.int_thermal_type = THERMAL_TYPE_KV;
} else if ((controller->ucType == } else if ((controller->ucType ==
ATOM_PP_THERMALCONTROLLER_EXTERNAL_GPIO) || ATOM_PP_THERMALCONTROLLER_EXTERNAL_GPIO) ||
(controller->ucType == (controller->ucType ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment