drm/amd/display: generic indirect register access
authorTony Cheng <tony.cheng@amd.com>
Sat, 16 Jun 2018 23:43:41 +0000 (19:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:47:33 +0000 (14:47 -0500)
commit16aecfd4bf546907a6d7d06b4edfdbeea75b1839
treeaf025d5ad009f3f1c1c5af28684d05588731cabd
parent4981a66144fa1e05c54164ea2ef4255451b62d78
drm/amd/display: generic indirect register access

add generic indirect register access following our register access pattern

this will make it easier to review code and programming sequence,
with all the complexity hidden in macro

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_helper.c
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h