aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-01-06 13:02:10 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-03-14 13:35:04 -0400
commit00dfedc1e4999926d4af455fc07215ec8c0347ff (patch)
tree59afab09a83016d35d47f7c25e921ec85d84bc79
parent1445abf0cc0cd2c9f022934be069a9e31e9760a1 (diff)
drm/amd/powerplay: use pp_endian.h for Tonga
Drop local versions of these macros. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
index 49168d262ccc..f88d3bbe6671 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
@@ -28,6 +28,7 @@
28#include "ppatomctrl.h" 28#include "ppatomctrl.h"
29#include "ppinterrupt.h" 29#include "ppinterrupt.h"
30#include "tonga_powertune.h" 30#include "tonga_powertune.h"
31#include "pp_endian.h"
31 32
32#define TONGA_MAX_HARDWARE_POWERLEVELS 2 33#define TONGA_MAX_HARDWARE_POWERLEVELS 2
33#define TONGA_DYNCLK_NUMBER_OF_TREND_COEFFICIENTS 15 34#define TONGA_DYNCLK_NUMBER_OF_TREND_COEFFICIENTS 15
@@ -386,17 +387,6 @@ typedef struct tonga_hwmgr tonga_hwmgr;
386 387
387#define TONGA_UNUSED_GPIO_PIN 0x7F 388#define TONGA_UNUSED_GPIO_PIN 0x7F
388 389
389#define PP_HOST_TO_SMC_UL(X) cpu_to_be32(X)
390#define PP_SMC_TO_HOST_UL(X) be32_to_cpu(X)
391
392#define PP_HOST_TO_SMC_US(X) cpu_to_be16(X)
393#define PP_SMC_TO_HOST_US(X) be16_to_cpu(X)
394
395#define CONVERT_FROM_HOST_TO_SMC_UL(X) ((X) = PP_HOST_TO_SMC_UL(X))
396#define CONVERT_FROM_SMC_TO_HOST_UL(X) ((X) = PP_SMC_TO_HOST_UL(X))
397
398#define CONVERT_FROM_HOST_TO_SMC_US(X) ((X) = PP_HOST_TO_SMC_US(X))
399
400int tonga_hwmgr_init(struct pp_hwmgr *hwmgr); 390int tonga_hwmgr_init(struct pp_hwmgr *hwmgr);
401int tonga_update_vce_dpm(struct pp_hwmgr *hwmgr, const void *input); 391int tonga_update_vce_dpm(struct pp_hwmgr *hwmgr, const void *input);
402int tonga_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate); 392int tonga_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate);