drm/amd/amdgpu: Added asic_type as ACP DMA driver platform data
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 9 Oct 2017 20:35:12 +0000 (16:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Oct 2017 14:56:26 +0000 (10:56 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c

index a52795d9b45852a371fed81a8f17a51d63bab120..ebca22302ebb5e4704e20b7d6301d2fd415f5b48 100644 (file)
@@ -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;