Skip to content

Commit 52a9df8

Browse files
John Clementsalexdeucher
authored andcommitted
drm/amdgpu: enable ras eeprom on aldebaran
enable ras eeprom loading by default on aldebaran Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 134d16d commit 52a9df8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#define EEPROM_I2C_TARGET_ADDR_ARCTURUS 0xA8
3232
#define EEPROM_I2C_TARGET_ADDR_ARCTURUS_D342 0xA0
3333
#define EEPROM_I2C_TARGET_ADDR_SIENNA_CICHLID 0xA0
34+
#define EEPROM_I2C_TARGET_ADDR_ALDEBARAN 0xA0
3435

3536
/*
3637
* The 2 macros bellow represent the actual size in bytes that
@@ -64,7 +65,8 @@ static bool __is_ras_eeprom_supported(struct amdgpu_device *adev)
6465
{
6566
if ((adev->asic_type == CHIP_VEGA20) ||
6667
(adev->asic_type == CHIP_ARCTURUS) ||
67-
(adev->asic_type == CHIP_SIENNA_CICHLID))
68+
(adev->asic_type == CHIP_SIENNA_CICHLID) ||
69+
(adev->asic_type == CHIP_ALDEBARAN))
6870
return true;
6971

7072
return false;
@@ -106,6 +108,10 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
106108
*i2c_addr = EEPROM_I2C_TARGET_ADDR_SIENNA_CICHLID;
107109
break;
108110

111+
case CHIP_ALDEBARAN:
112+
*i2c_addr = EEPROM_I2C_TARGET_ADDR_ALDEBARAN;
113+
break;
114+
109115
default:
110116
return false;
111117
}

0 commit comments

Comments
 (0)