Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-microblaze.git] / drivers / gpu / drm / msm / dp / dp_display.h
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 <sound/hdmi-codec.h>
11 #include "disp/msm_disp_snapshot.h"
12
13 struct msm_dp {
14         struct drm_device *drm_dev;
15         struct device *codec_dev;
16         struct drm_connector *connector;
17         struct drm_encoder *encoder;
18         bool is_connected;
19         bool audio_enabled;
20         bool power_on;
21
22         hdmi_codec_plugged_cb plugged_cb;
23
24         u32 max_pclk_khz;
25
26         u32 max_dp_lanes;
27         struct dp_audio *dp_audio;
28 };
29
30 int dp_display_set_plugged_cb(struct msm_dp *dp_display,
31                 hdmi_codec_plugged_cb fn, struct device *codec_dev);
32 int dp_display_validate_mode(struct msm_dp *dp_display, u32 mode_pclk_khz);
33 int dp_display_get_modes(struct msm_dp *dp_display,
34                 struct dp_display_mode *dp_mode);
35 int dp_display_request_irq(struct msm_dp *dp_display);
36 bool dp_display_check_video_test(struct msm_dp *dp_display);
37 int dp_display_get_test_bpp(struct msm_dp *dp_display);
38 void dp_display_signal_audio_start(struct msm_dp *dp_display);
39 void dp_display_signal_audio_complete(struct msm_dp *dp_display);
40
41 #endif /* _DP_DISPLAY_H_ */