Commit dfabe597 authored by Wenjing Liu's avatar Wenjing Liu Committed by Alex Deucher

drm/amd/display: temporarly move non link_hwss code to dc_link_dp

[why]
Clean up dc_link_hwss file in the preparation of breaking it down to
file for each encoder type. We temporarly move the original dp link
functions in link_hwss back to dc_link_dp. We will break dc_link_dp down
after link_hwss is in good shape.
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 8788e066
...@@ -465,6 +465,8 @@ void dc_link_get_cur_link_res(const struct dc_link *link, ...@@ -465,6 +465,8 @@ void dc_link_get_cur_link_res(const struct dc_link *link,
void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map); void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map);
/* restore link resource allocation state from a snapshot */ /* restore link resource allocation state from a snapshot */
void dc_restore_link_res_map(const struct dc *dc, uint32_t *map); void dc_restore_link_res_map(const struct dc *dc, uint32_t *map);
void dc_link_dp_clear_rx_status(struct dc_link *link); void dc_link_dp_clear_rx_status(struct dc_link *link);
struct gpio *get_hpd_gpio(struct dc_bios *dcb,
struct graphics_object_id link_id,
struct gpio_service *gpio_service);
#endif /* DC_LINK_H_ */ #endif /* DC_LINK_H_ */
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include "inc/link_dpcd.h" #include "inc/link_dpcd.h"
#include "dpcd_defs.h" #include "dpcd_defs.h"
#include "inc/link_enc_cfg.h" #include "inc/link_enc_cfg.h"
#include "link_hwss.h"
#define DC_LOGGER_INIT(logger) #define DC_LOGGER_INIT(logger)
......
...@@ -218,4 +218,44 @@ bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx); ...@@ -218,4 +218,44 @@ bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx);
bool dp_retrieve_lttpr_cap(struct dc_link *link); bool dp_retrieve_lttpr_cap(struct dc_link *link);
void edp_panel_backlight_power_on(struct dc_link *link); void edp_panel_backlight_power_on(struct dc_link *link);
void dp_receiver_power_ctrl(struct dc_link *link, bool on);
void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode);
void dp_enable_link_phy(
struct dc_link *link,
const struct link_resource *link_res,
enum signal_type signal,
enum clock_source_id clock_source,
const struct dc_link_settings *link_settings);
void edp_add_delay_for_T9(struct dc_link *link);
bool edp_receiver_ready_T9(struct dc_link *link);
bool edp_receiver_ready_T7(struct dc_link *link);
void dp_disable_link_phy(struct dc_link *link, const struct link_resource *link_res,
enum signal_type signal);
void dp_disable_link_phy_mst(struct dc_link *link, const struct link_resource *link_res,
enum signal_type signal);
bool dp_set_hw_training_pattern(
struct dc_link *link,
const struct link_resource *link_res,
enum dc_dp_training_pattern pattern,
uint32_t offset);
void dp_set_hw_lane_settings(
struct dc_link *link,
const struct link_resource *link_res,
const struct link_training_settings *link_settings,
uint32_t offset);
void dp_set_hw_test_pattern(
struct dc_link *link,
const struct link_resource *link_res,
enum dp_test_pattern test_pattern,
uint8_t *custom_pattern,
uint32_t custom_pattern_size);
void dp_retrain_link_dp_test(struct dc_link *link,
struct dc_link_settings *link_setting,
bool skip_video_pattern);
#endif /* __DC_LINK_DP_H__ */ #endif /* __DC_LINK_DP_H__ */
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#define __LINK_DPCD_H__ #define __LINK_DPCD_H__
#include <inc/core_status.h> #include <inc/core_status.h>
#include <dc_link.h> #include <dc_link.h>
#include <inc/link_hwss.h> #include <dc_link_dp.h>
enum dc_status core_link_read_dpcd( enum dc_status core_link_read_dpcd(
struct dc_link *link, struct dc_link *link,
......
...@@ -26,56 +26,18 @@ ...@@ -26,56 +26,18 @@
#ifndef __DC_LINK_HWSS_H__ #ifndef __DC_LINK_HWSS_H__
#define __DC_LINK_HWSS_H__ #define __DC_LINK_HWSS_H__
struct gpio *get_hpd_gpio(struct dc_bios *dcb, /* include basic type headers only */
struct graphics_object_id link_id, #include "os_types.h"
struct gpio_service *gpio_service); #include "dc_dp_types.h"
#include "signal_types.h"
void dp_enable_link_phy( #include "grph_object_id.h"
struct dc_link *link, #include "fixed31_32.h"
const struct link_resource *link_res,
enum signal_type signal, /* forward declare dc core types */
enum clock_source_id clock_source,
const struct dc_link_settings *link_settings);
void dp_receiver_power_ctrl(struct dc_link *link, bool on);
void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode);
void edp_add_delay_for_T9(struct dc_link *link);
bool edp_receiver_ready_T9(struct dc_link *link);
bool edp_receiver_ready_T7(struct dc_link *link);
void dp_disable_link_phy(struct dc_link *link, const struct link_resource *link_res,
enum signal_type signal);
void dp_disable_link_phy_mst(struct dc_link *link, const struct link_resource *link_res,
enum signal_type signal);
bool dp_set_hw_training_pattern(
struct dc_link *link,
const struct link_resource *link_res,
enum dc_dp_training_pattern pattern,
uint32_t offset);
void dp_set_hw_lane_settings(
struct dc_link *link,
const struct link_resource *link_res,
const struct link_training_settings *link_settings,
uint32_t offset);
void dp_set_hw_test_pattern(
struct dc_link *link,
const struct link_resource *link_res,
enum dp_test_pattern test_pattern,
uint8_t *custom_pattern,
uint32_t custom_pattern_size);
void dp_retrain_link_dp_test(struct dc_link *link,
struct dc_link_settings *link_setting,
bool skip_video_pattern);
struct dc_link; struct dc_link;
struct link_resource; struct link_resource;
struct fixed31_32;
struct pipe_ctx; struct pipe_ctx;
struct encoder_set_dp_phy_pattern_param;
struct link_hwss_ext { struct link_hwss_ext {
/* function pointers below require check for NULL at all time /* function pointers below require check for NULL at all time
......
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