diff options
| author | Mark Brown <broonie@kernel.org> | 2016-11-04 21:16:38 +0300 | 
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2016-11-04 21:16:38 +0300 | 
| commit | cc9b94029e9ef51787af908e9856b1eed314bc00 (patch) | |
| tree | 9675310b89d0f6fb1f7bd9423f0638c4ee5226fd /drivers/gpu/drm/amd/include/amd_shared.h | |
| parent | 13bed58ce8748d430a26e353a09b89f9d613a71f (diff) | |
| parent | 1b5b42216469b05ef4b5916cb40b127dfab1da88 (diff) | |
| download | linux-cc9b94029e9ef51787af908e9856b1eed314bc00.tar.xz | |
Merge branch 'topic/error' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-fixed
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
| -rw-r--r-- | drivers/gpu/drm/amd/include/amd_shared.h | 25 | 
1 files changed, 15 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 6080951d539d..c934b78c9e2f 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h @@ -26,19 +26,15 @@  #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 */ - -/*   * Supported ASIC types   */  enum amd_asic_type { -	CHIP_BONAIRE = 0, +	CHIP_TAHITI = 0, +	CHIP_PITCAIRN, +	CHIP_VERDE, +	CHIP_OLAND, +	CHIP_HAINAN, +	CHIP_BONAIRE,  	CHIP_KAVERI,  	CHIP_KABINI,  	CHIP_HAWAII, @@ -120,6 +116,8 @@ enum amd_powergating_state {  #define AMD_PG_SUPPORT_SDMA			(1 << 8)  #define AMD_PG_SUPPORT_ACP			(1 << 9)  #define AMD_PG_SUPPORT_SAMU			(1 << 10) +#define AMD_PG_SUPPORT_GFX_QUICK_MG		(1 << 11) +#define AMD_PG_SUPPORT_GFX_PIPELINE		(1 << 12)  enum amd_pm_state_type {  	/* not used for dpm */ @@ -157,6 +155,7 @@ struct amd_ip_funcs {  	int (*hw_init)(void *handle);  	/* tears down the hw state */  	int (*hw_fini)(void *handle); +	void (*late_fini)(void *handle);  	/* handles IP specific hw/sw changes for suspend */  	int (*suspend)(void *handle);  	/* handles IP specific hw/sw changes for resume */ @@ -165,8 +164,14 @@ struct amd_ip_funcs {  	bool (*is_idle)(void *handle);  	/* poll for idle */  	int (*wait_for_idle)(void *handle); +	/* check soft reset the IP block */ +	int (*check_soft_reset)(void *handle); +	/* pre soft reset the IP block */ +	int (*pre_soft_reset)(void *handle);  	/* soft reset the IP block */  	int (*soft_reset)(void *handle); +	/* post soft reset the IP block */ +	int (*post_soft_reset)(void *handle);  	/* enable/disable cg for the IP block */  	int (*set_clockgating_state)(void *handle,  				     enum amd_clockgating_state state);  | 
