aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJammy Zhou <[email protected]>2015-07-21 09:41:48 +0000
committerAlex Deucher <[email protected]>2015-08-17 20:50:20 +0000
commit0b2daf09cf3c9893872d68f0ce9a3f4b7e3ff06c (patch)
tree567bcf04665702464dd06d31be1ad4d36ed23287
parentdrm/amdgpu: allow userspace to read more debug registers (diff)
downloadkernel-0b2daf09cf3c9893872d68f0ce9a3f4b7e3ff06c.tar.gz
kernel-0b2daf09cf3c9893872d68f0ce9a3f4b7e3ff06c.zip
drm/amdgpu: add some common definitions to amd_shared.h
Add GPU family definitions and timeout value for IP components. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/include/amd_shared.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
index 5bdf1b4397a0..369848159803 100644
--- a/drivers/gpu/drm/amd/include/amd_shared.h
+++ b/drivers/gpu/drm/amd/include/amd_shared.h
@@ -23,6 +23,17 @@
#ifndef __AMD_SHARED_H__
#define __AMD_SHARED_H__
+#define AMD_MAX_USEC_TIMEOUT 100000 /* 100 ms */
+
+/*
+* Supported GPU families (aligned with amdgpu_drm.h)
+*/
+#define AMD_FAMILY_UNKNOWN 0
+#define AMD_FAMILY_CI 120 /* Bonaire, Hawaii */
+#define AMD_FAMILY_KV 125 /* Kaveri, Kabini, Mullins */
+#define AMD_FAMILY_VI 130 /* Iceland, Tonga */
+#define AMD_FAMILY_CZ 135 /* Carrizo */
+
enum amd_ip_block_type {
AMD_IP_BLOCK_TYPE_COMMON,
AMD_IP_BLOCK_TYPE_GMC,