Finally drop separate "parsing" submodule. There is no need in it anymore. All submodules handle DT properties directly rather than passing them via the separate structure pointer. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Tested-by: Kuogee Hsieh <quic_khsieh@quicinc.com> Reviewed-by: Kuogee Hsieh <quic_khsieh@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/576116/ Link: https://lore.kernel.org/r/20240126-dp-power-parser-cleanup-v3-15-098d5f581dd3@linaro.org
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* 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"
|
|
#include <sound/hdmi-codec.h>
|
|
#include "disp/msm_disp_snapshot.h"
|
|
|
|
#define DP_MAX_PIXEL_CLK_KHZ 675000
|
|
|
|
struct msm_dp {
|
|
struct drm_device *drm_dev;
|
|
struct platform_device *pdev;
|
|
struct device *codec_dev;
|
|
struct drm_bridge *bridge;
|
|
struct drm_connector *connector;
|
|
struct drm_bridge *next_bridge;
|
|
bool link_ready;
|
|
bool audio_enabled;
|
|
bool power_on;
|
|
unsigned int connector_type;
|
|
bool is_edp;
|
|
bool internal_hpd;
|
|
|
|
hdmi_codec_plugged_cb plugged_cb;
|
|
|
|
bool wide_bus_en;
|
|
|
|
struct dp_audio *dp_audio;
|
|
bool psr_supported;
|
|
};
|
|
|
|
int dp_display_set_plugged_cb(struct msm_dp *dp_display,
|
|
hdmi_codec_plugged_cb fn, struct device *codec_dev);
|
|
int dp_display_get_modes(struct msm_dp *dp_display);
|
|
bool dp_display_check_video_test(struct msm_dp *dp_display);
|
|
int dp_display_get_test_bpp(struct msm_dp *dp_display);
|
|
void dp_display_signal_audio_start(struct msm_dp *dp_display);
|
|
void dp_display_signal_audio_complete(struct msm_dp *dp_display);
|
|
void dp_display_set_psr(struct msm_dp *dp, bool enter);
|
|
void dp_display_debugfs_init(struct msm_dp *dp_display, struct dentry *dentry, bool is_edp);
|
|
|
|
#endif /* _DP_DISPLAY_H_ */
|