drm/amd/display: make clk mgr soc specific
authorEric Yang <Eric.Yang2@amd.com>
Mon, 22 Apr 2019 23:39:35 +0000 (19:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:29 +0000 (10:39 -0500)
commitdc88b4a684d284a200c0ecfd8d87179d6f6c89a3
tree9703a3044486320eecac4ee174d54458d00bcf09
parent789142eb8bae10ad17872f08b2bd08b8d24743ae
drm/amd/display: make clk mgr soc specific

[Why]
First step of refactoring clk mgr to better handle different
ways of handling clock operations. Clock operation policies are
soc specific and not just DCN vesion specific. It is not a hw resource,
should not be in the resource pool.

[How]
Change clock manager creation to be based on HW internal ID, rename
clock manager members to be more clear. Move clock manager out of
resource.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
45 files changed:
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_auto.h
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce/Makefile
drivers/gpu/drm/amd/display/dc/dce/dce110_clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce110_clk_mgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce112_clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce112_clk_mgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce120_clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce120_clk_mgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.h
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
drivers/gpu/drm/amd/display/dc/dce100/dce100_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/Makefile
drivers/gpu/drm/amd/display/dc/dcn10/clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c [deleted file]
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.h [deleted file]
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr_clk.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr_clk.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr_vbios_smu.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv1_clk_mgr_vbios_smu.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv2_clk_mgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn10/rv2_clk_mgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/inc/core_types.h
drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/inc/resource.h
drivers/gpu/drm/amd/display/include/dal_asic_id.h