提交 51150207 编写于 作者: A Alex Deucher

drm/radeon: handle the integrated thermal controller on CI

No support for reading the temperature yet.
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 9ae94be5
...@@ -1033,6 +1033,7 @@ enum radeon_int_thermal_type { ...@@ -1033,6 +1033,7 @@ enum radeon_int_thermal_type {
THERMAL_TYPE_SUMO, THERMAL_TYPE_SUMO,
THERMAL_TYPE_NI, THERMAL_TYPE_NI,
THERMAL_TYPE_SI, THERMAL_TYPE_SI,
THERMAL_TYPE_CI,
}; };
struct radeon_voltage { struct radeon_voltage {
......
...@@ -1927,6 +1927,7 @@ static const char *pp_lib_thermal_controller_names[] = { ...@@ -1927,6 +1927,7 @@ static const char *pp_lib_thermal_controller_names[] = {
"Northern Islands", "Northern Islands",
"Southern Islands", "Southern Islands",
"lm96163", "lm96163",
"Sea Islands",
}; };
union power_info { union power_info {
...@@ -2209,6 +2210,11 @@ static void radeon_atombios_add_pplib_thermal_controller(struct radeon_device *r ...@@ -2209,6 +2210,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_SI; rdev->pm.int_thermal_type = THERMAL_TYPE_SI;
} else if (controller->ucType == ATOM_PP_THERMALCONTROLLER_CISLANDS) {
DRM_INFO("Internal thermal controller %s fan control\n",
(controller->ucFanParameters &
ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
rdev->pm.int_thermal_type = THERMAL_TYPE_CI;
} 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册