forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
....@@ -28,6 +28,8 @@
2828
2929 #define LINK_TRAINING_ATTEMPTS 4
3030 #define LINK_TRAINING_RETRY_DELAY 50 /* ms */
31
+#define LINK_AUX_DEFAULT_LTTPR_TIMEOUT_PERIOD 3200 /*us*/
32
+#define LINK_AUX_DEFAULT_TIMEOUT_PERIOD 552 /*us*/
3133
3234 struct dc_link;
3335 struct dc_stream_state;
....@@ -38,6 +40,14 @@
3840 struct dc_link_settings *known_limit_link_setting,
3941 int *fail_count);
4042
43
+bool dp_verify_link_cap_with_retries(
44
+ struct dc_link *link,
45
+ struct dc_link_settings *known_limit_link_setting,
46
+ int attempts);
47
+
48
+bool dp_verify_mst_link_cap(
49
+ struct dc_link *link);
50
+
4151 bool dp_validate_mode_timing(
4252 struct dc_link *link,
4353 const struct dc_crtc_timing *timing);
....@@ -47,10 +57,11 @@
4757 struct dc_link_settings *link_setting);
4858
4959 bool perform_link_training_with_retries(
50
- struct dc_link *link,
5160 const struct dc_link_settings *link_setting,
5261 bool skip_video_pattern,
53
- int attempts);
62
+ int attempts,
63
+ struct pipe_ctx *pipe_ctx,
64
+ enum signal_type signal);
5465
5566 bool is_mst_supported(struct dc_link *link);
5667
....@@ -62,4 +73,18 @@
6273
6374 void dp_enable_mst_on_sink(struct dc_link *link, bool enable);
6475
76
+enum dp_panel_mode dp_get_panel_mode(struct dc_link *link);
77
+void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode);
78
+
79
+bool dp_overwrite_extended_receiver_cap(struct dc_link *link);
80
+
81
+void dpcd_set_source_specific_data(struct dc_link *link);
82
+
83
+void dp_set_fec_ready(struct dc_link *link, bool ready);
84
+void dp_set_fec_enable(struct dc_link *link, bool enable);
85
+bool dp_set_dsc_enable(struct pipe_ctx *pipe_ctx, bool enable);
86
+bool dp_set_dsc_pps_sdp(struct pipe_ctx *pipe_ctx, bool enable);
87
+void dp_set_dsc_on_stream(struct pipe_ctx *pipe_ctx, bool enable);
88
+bool dp_update_dsc_config(struct pipe_ctx *pipe_ctx);
89
+
6590 #endif /* __DC_LINK_DP_H__ */