aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-11-13 14:53:39 -0500
committerDave Airlie <airlied@redhat.com>2017-11-13 14:53:39 -0500
commitfc150d6bba8f446f77732cf27b09a7e646c25771 (patch)
tree8673983d58196869d9063cd1ebedd1ead6dd4136 /drivers/gpu/drm
parentecc325bb76707370cfa6f34ef8574c7ee7577a23 (diff)
parentf674bd281460451e8784f3bc917a650e8937a8ed (diff)
Merge branch 'linus-4.14-rc4-acp-prereq' of git://people.freedesktop.org/~agd5f/linux into drm-next
This is a shared tree between drm and audio for some amd bits. * 'linus-4.14-rc4-acp-prereq' of git://people.freedesktop.org/~agd5f/linux: drm/amdgpu Moving amdgpu asic types to a separate file ASoC: AMD: Added asic_type as ACP DMA driver platform data drm/amd/amdgpu: Added asic_type as ACP DMA driver platform data
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c2
-rw-r--r--drivers/gpu/drm/amd/include/amd_shared.h29
2 files changed, 4 insertions, 27 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
index 023bfdb3e63f..c04f44a90392 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
@@ -382,6 +382,8 @@ static int acp_hw_init(void *handle)
382 adev->acp.acp_cell[0].name = "acp_audio_dma"; 382 adev->acp.acp_cell[0].name = "acp_audio_dma";
383 adev->acp.acp_cell[0].num_resources = 4; 383 adev->acp.acp_cell[0].num_resources = 4;
384 adev->acp.acp_cell[0].resources = &adev->acp.acp_res[0]; 384 adev->acp.acp_cell[0].resources = &adev->acp.acp_res[0];
385 adev->acp.acp_cell[0].platform_data = &adev->asic_type;
386 adev->acp.acp_cell[0].pdata_size = sizeof(adev->asic_type);
385 387
386 adev->acp.acp_cell[1].name = "designware-i2s"; 388 adev->acp.acp_cell[1].name = "designware-i2s";
387 adev->acp.acp_cell[1].num_resources = 1; 389 adev->acp.acp_cell[1].num_resources = 1;
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
index de6fc2731b98..b72f8a43d86b 100644
--- a/drivers/gpu/drm/amd/include/amd_shared.h
+++ b/drivers/gpu/drm/amd/include/amd_shared.h
@@ -23,36 +23,11 @@
23#ifndef __AMD_SHARED_H__ 23#ifndef __AMD_SHARED_H__
24#define __AMD_SHARED_H__ 24#define __AMD_SHARED_H__
25 25
26#define AMD_MAX_USEC_TIMEOUT 200000 /* 200 ms */ 26#include <drm/amd_asic_type.h>
27 27
28struct seq_file; 28struct seq_file;
29 29
30/* 30#define AMD_MAX_USEC_TIMEOUT 200000 /* 200 ms */
31 * Supported ASIC types
32 */
33enum amd_asic_type {
34 CHIP_TAHITI = 0,
35 CHIP_PITCAIRN,
36 CHIP_VERDE,
37 CHIP_OLAND,
38 CHIP_HAINAN,
39 CHIP_BONAIRE,
40 CHIP_KAVERI,
41 CHIP_KABINI,
42 CHIP_HAWAII,
43 CHIP_MULLINS,
44 CHIP_TOPAZ,
45 CHIP_TONGA,
46 CHIP_FIJI,
47 CHIP_CARRIZO,
48 CHIP_STONEY,
49 CHIP_POLARIS10,
50 CHIP_POLARIS11,
51 CHIP_POLARIS12,
52 CHIP_VEGA10,
53 CHIP_RAVEN,
54 CHIP_LAST,
55};
56 31
57/* 32/*
58 * Chip flags 33 * Chip flags