mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	drm/amdgpu: Add EEPROM I2C address for smu v13_0_0
Set correct EEPROM I2C address for smu v13_0_0. 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>
This commit is contained in:
		
							parent
							
								
									c3db1b9065
								
							
						
					
					
						commit
						1582252946
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -38,6 +38,7 @@
 | 
				
			||||||
#define EEPROM_I2C_MADDR_ARCTURUS_D342  0x0
 | 
					#define EEPROM_I2C_MADDR_ARCTURUS_D342  0x0
 | 
				
			||||||
#define EEPROM_I2C_MADDR_SIENNA_CICHLID 0x0
 | 
					#define EEPROM_I2C_MADDR_SIENNA_CICHLID 0x0
 | 
				
			||||||
#define EEPROM_I2C_MADDR_ALDEBARAN      0x0
 | 
					#define EEPROM_I2C_MADDR_ALDEBARAN      0x0
 | 
				
			||||||
 | 
					#define EEPROM_I2C_MADDR_SMU_13_0_0     (0x54UL << 16)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * The 2 macros bellow represent the actual size in bytes that
 | 
					 * The 2 macros bellow represent the actual size in bytes that
 | 
				
			||||||
| 
						 | 
					@ -156,6 +157,15 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						switch (adev->ip_versions[MP1_HWIP][0]) {
 | 
				
			||||||
 | 
						case IP_VERSION(13, 0, 0):
 | 
				
			||||||
 | 
							control->i2c_address = EEPROM_I2C_MADDR_SMU_13_0_0;
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						default:
 | 
				
			||||||
 | 
							break;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue