drm/amd: Expose the FRU SMU I2C bus

Expose both SMU I2C buses. Some boards use the same bus for both the RAS
and FRU EEPROMs and others use different buses.  This enables the
additional I2C bus and sets the right buses to use for RAS and FRU EEPROM
access.

Cc: Roy Sun <Roy.Sun@amd.com>
Co-developed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Luben Tuikov
2022-01-19 20:20:53 -05:00
committed by Alex Deucher
parent f06d9e4eec
commit 2f60dd5076
13 changed files with 272 additions and 114 deletions

View File

@@ -26,9 +26,9 @@
#include <linux/types.h>
struct i2c_adapter;
struct amdgpu_device;
int smu_v11_0_i2c_control_init(struct i2c_adapter *control);
void smu_v11_0_i2c_control_fini(struct i2c_adapter *control);
int smu_v11_0_i2c_control_init(struct amdgpu_device *adev);
void smu_v11_0_i2c_control_fini(struct amdgpu_device *adev);
#endif