diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2024-12-19 13:05:34 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-12 21:02:54 -0500 |
commit | 20f48be63d1ad0ffa359c9612612876544669339 (patch) | |
tree | 53eb5002ea6576daeed7201ea8886160448c2c2c /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
parent | 1c0b144bf7628a62575a4ec26623f7a6cdf0cb2b (diff) | |
download | linux-20f48be63d1ad0ffa359c9612612876544669339.tar.gz linux-20f48be63d1ad0ffa359c9612612876544669339.tar.bz2 linux-20f48be63d1ad0ffa359c9612612876544669339.zip |
drm/amdgpu: add OEM i2c bus for polaris chips
It uses the VGADCC bus. DC doesn't use this bus, so it
is safe to add it here.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c index 72f73a186dd9..8179d0814db9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c @@ -228,8 +228,19 @@ void amdgpu_i2c_destroy(struct amdgpu_i2c_chan *i2c) void amdgpu_i2c_init(struct amdgpu_device *adev) { if (!adev->is_atom_fw) { - if (!amdgpu_device_has_dc_support(adev)) + if (!amdgpu_device_has_dc_support(adev)) { amdgpu_atombios_i2c_init(adev); + } else { + switch (adev->asic_type) { + case CHIP_POLARIS10: + case CHIP_POLARIS11: + case CHIP_POLARIS12: + amdgpu_atombios_oem_i2c_init(adev, 0x97); + break; + default: + break; + } + } } } |