mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
[ Upstream commit e0409021e34af50e7b6f31635c8d21583d7c43dd ] Check smu v13_0_0 SKU type to select EEPROM I2C address. Signed-off-by: Candice Li <candice.li@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.1.x Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8750977871
commit
c8bf22e0d0
@@ -167,6 +167,12 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
|
|||||||
control->i2c_address = EEPROM_I2C_MADDR_0;
|
control->i2c_address = EEPROM_I2C_MADDR_0;
|
||||||
return true;
|
return true;
|
||||||
case IP_VERSION(13, 0, 0):
|
case IP_VERSION(13, 0, 0):
|
||||||
|
if (strnstr(atom_ctx->vbios_pn, "D707",
|
||||||
|
sizeof(atom_ctx->vbios_pn)))
|
||||||
|
control->i2c_address = EEPROM_I2C_MADDR_0;
|
||||||
|
else
|
||||||
|
control->i2c_address = EEPROM_I2C_MADDR_4;
|
||||||
|
return true;
|
||||||
case IP_VERSION(13, 0, 6):
|
case IP_VERSION(13, 0, 6):
|
||||||
case IP_VERSION(13, 0, 10):
|
case IP_VERSION(13, 0, 10):
|
||||||
control->i2c_address = EEPROM_I2C_MADDR_4;
|
control->i2c_address = EEPROM_I2C_MADDR_4;
|
||||||
|
|||||||
Reference in New Issue
Block a user