summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijendar Mukunda2017-10-09 22:35:12 +0200
committerAlex Deucher2017-10-18 16:56:26 +0200
commit1fd16f36be687ce32e875f59363c16d7cf050988 (patch)
tree22c80f9c114a5ce0ed373ca6efdd38a0c7de75ec
parentLinux 4.14-rc4 (diff)
downloadkernel-qcow2-linux-1fd16f36be687ce32e875f59363c16d7cf050988.tar.gz
kernel-qcow2-linux-1fd16f36be687ce32e875f59363c16d7cf050988.tar.xz
kernel-qcow2-linux-1fd16f36be687ce32e875f59363c16d7cf050988.zip
drm/amd/amdgpu: Added asic_type as ACP DMA driver platform data
asic_type information is passed to ACP DMA Driver as platform data. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
index a52795d9b458..ebca22302ebb 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
@@ -371,6 +371,8 @@ static int acp_hw_init(void *handle)
adev->acp.acp_cell[0].name = "acp_audio_dma";
adev->acp.acp_cell[0].num_resources = 4;
adev->acp.acp_cell[0].resources = &adev->acp.acp_res[0];
+ adev->acp.acp_cell[0].platform_data = &adev->asic_type;
+ adev->acp.acp_cell[0].pdata_size = sizeof(adev->asic_type);
adev->acp.acp_cell[1].name = "designware-i2s";
adev->acp.acp_cell[1].num_resources = 1;