Commit a7f90cbc authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher

drm/amd/display: Move CLK_BASE_INNER macro

This macro is specificly used by RV1. Move it to the appropriate
location.
Signed-off-by: default avatarEric Yang <Eric.Yang2@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 48ea75f9
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
#include "dce/dce_clk_mgr.h" #include "dce/dce_clk_mgr.h"
#define CLK_BASE_INNER(inst) \
CLK_BASE__INST ## inst ## _SEG0
#define CLK_REG(reg_name, block, inst)\ #define CLK_REG(reg_name, block, inst)\
CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \ CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \
mm ## block ## _ ## inst ## _ ## reg_name mm ## block ## _ ## inst ## _ ## reg_name
......
...@@ -49,8 +49,7 @@ ...@@ -49,8 +49,7 @@
clk_mgr->ctx->logger clk_mgr->ctx->logger
#define CLK_BASE_INNER(inst) \
CLK_BASE__INST ## inst ## _SEG0
#define CLK_BASE(inst) \ #define CLK_BASE(inst) \
CLK_BASE_INNER(inst) CLK_BASE_INNER(inst)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment