Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
4 */
5
6#ifndef _DP_DISPLAY_H_
7#define _DP_DISPLAY_H_
8
9#include "dp_panel.h"
10#include "disp/msm_disp_snapshot.h"
11
12#define DP_MAX_PIXEL_CLK_KHZ 675000
13
14struct msm_dp {
15 struct drm_device *drm_dev;
16 struct platform_device *pdev;
17 struct drm_connector *connector;
18 struct drm_bridge *next_bridge;
19 bool link_ready;
20 bool audio_enabled;
21 bool power_on;
22 unsigned int connector_type;
23 bool is_edp;
24 bool internal_hpd;
25
26 struct msm_dp_audio *msm_dp_audio;
27 bool psr_supported;
28};
29
30int msm_dp_display_get_modes(struct msm_dp *msm_dp_display);
31bool msm_dp_display_check_video_test(struct msm_dp *msm_dp_display);
32int msm_dp_display_get_test_bpp(struct msm_dp *msm_dp_display);
33void msm_dp_display_signal_audio_start(struct msm_dp *msm_dp_display);
34void msm_dp_display_signal_audio_complete(struct msm_dp *msm_dp_display);
35void msm_dp_display_set_psr(struct msm_dp *dp, bool enter);
36void msm_dp_display_debugfs_init(struct msm_dp *msm_dp_display, struct dentry *dentry, bool is_edp);
37
38#endif /* _DP_DISPLAY_H_ */