Skip to contentSkip to conversation

drm/amdgpu: Add I2C EEPROM support on smu v13_0_6

PATCH Superseded Candice Li 2 participants 2 messages Aug 10, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Candice Li

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Add I2C EEPROM support on smu v13_0_6

Support I2C EEPROM on smu v13_0_6.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +2 -0
index 4287743e121245..27fb9b640011c2 100644
@@ -159,6 +159,7 @@ static bool __is_ras_eeprom_supported(struct amdgpu_device *adev)
 	case IP_VERSION(13, 0, 0):
 	case IP_VERSION(13, 0, 2): /* Aldebaran */
 	case IP_VERSION(13, 0, 10):
+	case IP_VERSION(13, 0, 6):
 		return true;
 	default:
 		return false;
@@ -213,6 +214,7 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
 		return true;
 	case IP_VERSION(13, 0, 0):
 	case IP_VERSION(13, 0, 10):
+	case IP_VERSION(13, 0, 6):
 		control->i2c_address = EEPROM_I2C_MADDR_4;
 		return true;
 	default:
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Best Regards,
Kevin

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Candice Li
Sent: Thursday, August 10, 2023 4:23 PM
To: [email protected]
Cc: Li, Candice <[email protected]>
Subject: [PATCH] drm/amdgpu: Add I2C EEPROM support on smu v13_0_6

Support I2C EEPROM on smu v13_0_6.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +2 -0
index 4287743e121245..27fb9b640011c2 100644
@@ -159,6 +159,7 @@ static bool __is_ras_eeprom_supported(struct amdgpu_device *adev)
        case IP_VERSION(13, 0, 0):
        case IP_VERSION(13, 0, 2): /* Aldebaran */
        case IP_VERSION(13, 0, 10):
+       case IP_VERSION(13, 0, 6):
                return true;
        default:
                return false;
@@ -213,6 +214,7 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
                return true;
        case IP_VERSION(13, 0, 0):
        case IP_VERSION(13, 0, 10):
+       case IP_VERSION(13, 0, 6):
                control->i2c_address = EEPROM_I2C_MADDR_4;
                return true;
        default:

--
2.25.1