aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 99bd8a9c56b3..5dd86b95b992 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -1773,14 +1773,22 @@ void radeon_atombios_get_power_modes(struct radeon_device *rdev)
1773 } 1773 }
1774 1774
1775 /* add the i2c bus for thermal/fan chip */ 1775 /* add the i2c bus for thermal/fan chip */
1776 /* no support for internal controller yet */
1777 if (controller->ucType > 0) { 1776 if (controller->ucType > 0) {
1778 if ((controller->ucType == ATOM_PP_THERMALCONTROLLER_RV6xx) || 1777 if (controller->ucType == ATOM_PP_THERMALCONTROLLER_RV6xx) {
1779 (controller->ucType == ATOM_PP_THERMALCONTROLLER_RV770) ||
1780 (controller->ucType == ATOM_PP_THERMALCONTROLLER_EVERGREEN)) {
1781 DRM_INFO("Internal thermal controller %s fan control\n", 1778 DRM_INFO("Internal thermal controller %s fan control\n",
1782 (controller->ucFanParameters & 1779 (controller->ucFanParameters &
1783 ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with"); 1780 ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
1781 rdev->pm.int_thermal_type = THERMAL_TYPE_RV6XX;
1782 } else if (controller->ucType == ATOM_PP_THERMALCONTROLLER_RV770) {
1783 DRM_INFO("Internal thermal controller %s fan control\n",
1784 (controller->ucFanParameters &
1785 ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
1786 rdev->pm.int_thermal_type = THERMAL_TYPE_RV770;
1787 } else if (controller->ucType == ATOM_PP_THERMALCONTROLLER_EVERGREEN) {
1788 DRM_INFO("Internal thermal controller %s fan control\n",
1789 (controller->ucFanParameters &
1790 ATOM_PP_FANPARAMETERS_NOFAN) ? "without" : "with");
1791 rdev->pm.int_thermal_type = THERMAL_TYPE_EVERGREEN;
1784 } else if ((controller->ucType == 1792 } else if ((controller->ucType ==
1785 ATOM_PP_THERMALCONTROLLER_EXTERNAL_GPIO) || 1793 ATOM_PP_THERMALCONTROLLER_EXTERNAL_GPIO) ||
1786 (controller->ucType == 1794 (controller->ucType ==