2020-08-27 14:16:55 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DP_DISPLAY_H_
|
|
|
|
#define _DP_DISPLAY_H_
|
|
|
|
|
|
|
|
#include "dp_panel.h"
|
2021-04-16 13:57:20 -07:00
|
|
|
#include "disp/msm_disp_snapshot.h"
|
2020-08-27 14:16:55 -07:00
|
|
|
|
2024-01-26 20:26:34 +02:00
|
|
|
#define DP_MAX_PIXEL_CLK_KHZ 675000
|
|
|
|
|
2020-08-27 14:16:55 -07:00
|
|
|
struct msm_dp {
|
|
|
|
struct drm_device *drm_dev;
|
2023-10-09 21:10:30 +03:00
|
|
|
struct platform_device *pdev;
|
2020-08-27 14:16:55 -07:00
|
|
|
struct drm_connector *connector;
|
2022-02-12 01:40:03 +03:00
|
|
|
struct drm_bridge *next_bridge;
|
2023-12-01 15:19:44 -08:00
|
|
|
bool link_ready;
|
2020-09-12 13:49:32 -07:00
|
|
|
bool audio_enabled;
|
|
|
|
bool power_on;
|
2021-10-16 15:18:39 -07:00
|
|
|
unsigned int connector_type;
|
2022-04-25 17:14:29 +05:30
|
|
|
bool is_edp;
|
2022-12-07 14:00:08 -08:00
|
|
|
bool internal_hpd;
|
2020-09-12 13:49:30 -07:00
|
|
|
|
2024-10-29 22:28:24 +02:00
|
|
|
struct msm_dp_audio *msm_dp_audio;
|
2023-03-02 22:03:12 +05:30
|
|
|
bool psr_supported;
|
2020-08-27 14:16:55 -07:00
|
|
|
};
|
|
|
|
|
2024-10-29 22:28:24 +02:00
|
|
|
int msm_dp_display_get_modes(struct msm_dp *msm_dp_display);
|
|
|
|
bool msm_dp_display_check_video_test(struct msm_dp *msm_dp_display);
|
|
|
|
int msm_dp_display_get_test_bpp(struct msm_dp *msm_dp_display);
|
|
|
|
void msm_dp_display_signal_audio_start(struct msm_dp *msm_dp_display);
|
|
|
|
void msm_dp_display_signal_audio_complete(struct msm_dp *msm_dp_display);
|
|
|
|
void msm_dp_display_set_psr(struct msm_dp *dp, bool enter);
|
|
|
|
void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *dentry, bool is_edp);
|
2020-08-27 14:16:55 -07:00
|
|
|
|
|
|
|
#endif /* _DP_DISPLAY_H_ */
|