summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h
diff options
context:
space:
mode:
authorAMD\ktsao <kenny.tsao@amd.com>2017-07-30 14:18:36 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:16:02 -0400
commit43193c7991de7a2112fe2ddcfd930733bc357862 (patch)
tree89fff4e59c12925e33a044f0b8905945f457098d /drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h
parent7a09f5be98df25a7253e4647e801120b37b90feb (diff)
drm/amd/display: remove DCN1 guard as DCN1 is already open sourced.
Signed-off-by: Kenny Tsao <kenny.tsao@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h
index c421a0250016..b85f53c2f6f8 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h
@@ -48,11 +48,9 @@
DMCU_COMMON_REG_LIST_DCE_BASE(), \
SR(DCI_MEM_PWR_STATUS)
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
- #define DMCU_DCN10_REG_LIST()\
- DMCU_COMMON_REG_LIST_DCE_BASE(), \
- SR(DMU_MEM_PWR_CNTL)
-#endif
+#define DMCU_DCN10_REG_LIST()\
+ DMCU_COMMON_REG_LIST_DCE_BASE(), \
+ SR(DMU_MEM_PWR_CNTL)
#define DMCU_SF(reg_name, field_name, post_fix)\
.field_name = reg_name ## __ ## field_name ## post_fix
@@ -82,12 +80,10 @@
DMCU_SF(DCI_MEM_PWR_STATUS, \
DMCU_IRAM_MEM_PWR_STATE, mask_sh)
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
- #define DMCU_MASK_SH_LIST_DCN10(mask_sh) \
- DMCU_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(mask_sh), \
- DMCU_SF(DMU_MEM_PWR_CNTL, \
- DMCU_IRAM_MEM_PWR_STATE, mask_sh)
-#endif
+#define DMCU_MASK_SH_LIST_DCN10(mask_sh) \
+ DMCU_COMMON_MASK_SH_LIST_DCE_COMMON_BASE(mask_sh), \
+ DMCU_SF(DMU_MEM_PWR_CNTL, \
+ DMCU_IRAM_MEM_PWR_STATE, mask_sh)
#define DMCU_REG_FIELD_LIST(type) \
type DMCU_IRAM_MEM_PWR_STATE; \
@@ -211,13 +207,11 @@ struct dmcu *dce_dmcu_create(
const struct dce_dmcu_shift *dmcu_shift,
const struct dce_dmcu_mask *dmcu_mask);
-#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
struct dmcu *dcn10_dmcu_create(
struct dc_context *ctx,
const struct dce_dmcu_registers *regs,
const struct dce_dmcu_shift *dmcu_shift,
const struct dce_dmcu_mask *dmcu_mask);
-#endif
void dce_dmcu_destroy(struct dmcu **dmcu);