diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index fecd705a1a5f..933a2cd7bb55 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
@@ -181,6 +181,18 @@ void radeon_atombios_i2c_init(struct radeon_device *rdev) | |||
181 | gpio = &i2c_info->asGPIO_Info[i]; | 181 | gpio = &i2c_info->asGPIO_Info[i]; |
182 | i2c.valid = false; | 182 | i2c.valid = false; |
183 | 183 | ||
184 | /* r4xx mask is technically not used by the hw, so patch in the legacy mask bits */ | ||
185 | if ((rdev->family == CHIP_R420) || | ||
186 | (rdev->family == CHIP_R423) || | ||
187 | (rdev->family == CHIP_RV410)) { | ||
188 | if ((le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0018) || | ||
189 | (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x0019) || | ||
190 | (le16_to_cpu(gpio->usClkMaskRegisterIndex) == 0x001a)) { | ||
191 | gpio->ucClkMaskShift = 0x19; | ||
192 | gpio->ucDataMaskShift = 0x18; | ||
193 | } | ||
194 | } | ||
195 | |||
184 | /* some evergreen boards have bad data for this entry */ | 196 | /* some evergreen boards have bad data for this entry */ |
185 | if (ASIC_IS_DCE4(rdev)) { | 197 | if (ASIC_IS_DCE4(rdev)) { |
186 | if ((i == 7) && | 198 | if ((i == 7) && |