drm/amd/display: Move CLK_BASE_INNER macro

This macro is specificly used by RV1. Move it to the appropriate
location.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Eric Yang 2019-05-07 17:29:11 -04:00 committed by Alex Deucher
parent 48ea75f99a
commit a7f90cbc0e
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,10 @@
#include "dce/dce_clk_mgr.h"
#define CLK_BASE_INNER(inst) \
CLK_BASE__INST ## inst ## _SEG0
#define CLK_REG(reg_name, block, inst)\
CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \
mm ## block ## _ ## inst ## _ ## reg_name

View File

@ -49,8 +49,7 @@
clk_mgr->ctx->logger
#define CLK_BASE_INNER(inst) \
CLK_BASE__INST ## inst ## _SEG0
#define CLK_BASE(inst) \
CLK_BASE_INNER(inst)