Commit fd249266 authored by Wenjing Liu's avatar Wenjing Liu Committed by Alex Deucher
Browse files

drm/amd/display: move link_hwss to link folder and break down to files



[why]
Move link_hwss to its own folder as part of DC LIB and break it down
to separate file one for each type of backend for code isolation.

Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: default avatarJun Lei <Jun.Lei@amd.com>
Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
Signed-off-by: default avatarWenjing Liu <wenjing.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2750caff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
# Makefile for Display Core (dc) component.
#

DC_LIBS = basics bios clk_mgr dce dml gpio irq virtual
DC_LIBS = basics bios dml clk_mgr dce gpio irq link virtual

ifdef CONFIG_DRM_AMD_DC_DCN
DC_LIBS += dcn20
@@ -58,7 +58,7 @@ AMD_DC = $(addsuffix /Makefile, $(addprefix $(FULL_AMD_DISPLAY_PATH)/dc/,$(DC_LI
include $(AMD_DC)

DISPLAY_CORE = dc.o  dc_stat.o dc_link.o dc_resource.o dc_hw_sequencer.o dc_sink.o \
dc_surface.o dc_link_hwss.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o \
dc_surface.o dc_link_dp.o dc_link_ddc.o dc_debug.o dc_stream.o \
dc_link_enc_cfg.o dc_link_dpia.o dc_link_dpcd.o

ifdef CONFIG_DRM_AMD_DC_DCN
+1 −0
Original line number Diff line number Diff line
@@ -6842,6 +6842,7 @@ bool edp_receiver_ready_T9(struct dc_link *link)
	unsigned char sinkstatus = 0;
	unsigned char edpRev = 0;
	enum dc_status result = DC_OK;

	result = core_link_read_dpcd(link, DP_EDP_DPCD_REV, &edpRev, sizeof(edpRev));

	/* start from eDP version 1.2, SINK_STAUS indicate the sink is ready.*/
+4 −0
Original line number Diff line number Diff line
@@ -43,6 +43,10 @@
#include "dpcd_defs.h"
#include "link_enc_cfg.h"
#include "dc_link_dp.h"
#include "virtual/virtual_link_hwss.h"
#include "link/link_hwss_dio.h"
#include "link/link_hwss_dpia.h"
#include "link/link_hwss_hpo_dp.h"

#if defined(CONFIG_DRM_AMD_DC_SI)
#include "dce60/dce60_resource.h"
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ void enable_surface_flip_reporting(struct dc_plane_state *plane_state,
#ifdef CONFIG_DRM_AMD_DC_HDCP
#include "dm_cp_psp.h"
#endif
#include "link_hwss.h"

/************ link *****************/
struct link_init_data {
+0 −18
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@
#define __DC_LINK_HWSS_H__

/* include basic type headers only */
#include "os_types.h"
#include "dc_dp_types.h"
#include "signal_types.h"
#include "grph_object_id.h"
@@ -74,22 +73,5 @@ struct link_hwss {
	void (*setup_stream_encoder)(struct pipe_ctx *pipe_ctx);
	void (*reset_stream_encoder)(struct pipe_ctx *pipe_ctx);
};


/*********************** below goes to virtual_link_hwss **********************/
const struct link_hwss *get_virtual_link_hwss(void);
/*********************** below goes to dpia_link_hwss *************************/
bool can_use_dpia_link_hwss(const struct dc_link *link,
		const struct link_resource *link_res);
const struct link_hwss *get_dpia_link_hwss(void);
/*********************** below goes to hpo_dp_link_hwss ***********************/
bool can_use_hpo_dp_link_hwss(const struct dc_link *link,
		const struct link_resource *link_res);
const struct link_hwss *get_hpo_dp_link_hwss(void);
/************************* below goes to dio_link_hwss ************************/
bool can_use_dio_link_hwss(const struct dc_link *link,
		const struct link_resource *link_res);
const struct link_hwss *get_dio_link_hwss(void);

#endif /* __DC_LINK_HWSS_H__ */
Loading