WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / msm / dp / dp_display.h
blob6092ba1ed85ed1bfde70059e682eae72fb9b8836
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
4 */
6 #ifndef _DP_DISPLAY_H_
7 #define _DP_DISPLAY_H_
9 #include "dp_panel.h"
10 #include <sound/hdmi-codec.h>
12 struct msm_dp {
13 struct drm_device *drm_dev;
14 struct device *codec_dev;
15 struct drm_connector *connector;
16 struct drm_encoder *encoder;
17 bool is_connected;
18 bool audio_enabled;
19 bool power_on;
21 hdmi_codec_plugged_cb plugged_cb;
23 u32 max_pclk_khz;
25 u32 max_dp_lanes;
26 struct dp_audio *dp_audio;
29 int dp_display_set_plugged_cb(struct msm_dp *dp_display,
30 hdmi_codec_plugged_cb fn, struct device *codec_dev);
31 int dp_display_validate_mode(struct msm_dp *dp_display, u32 mode_pclk_khz);
32 int dp_display_get_modes(struct msm_dp *dp_display,
33 struct dp_display_mode *dp_mode);
34 int dp_display_request_irq(struct msm_dp *dp_display);
35 bool dp_display_check_video_test(struct msm_dp *dp_display);
36 int dp_display_get_test_bpp(struct msm_dp *dp_display);
37 void dp_display_signal_audio_complete(struct msm_dp *dp_display);
39 #endif /* _DP_DISPLAY_H_ */