mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
e7514df007
Now that the clock is handled dynamically through analogix_dp_resume/suspend and it isn't statically enabled in the driver probe routine, there is no need for the remove function anymore. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Robert Foss <rfoss@kernel.org> Tested-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240619182200.3752465-5-l.stach@pengutronix.de
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Analogix DP (Display Port) Core interface driver.
|
|
*
|
|
* Copyright (C) 2015 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
#ifndef _ANALOGIX_DP_H_
|
|
#define _ANALOGIX_DP_H_
|
|
|
|
#include <drm/drm_crtc.h>
|
|
|
|
struct analogix_dp_device;
|
|
|
|
enum analogix_dp_devtype {
|
|
EXYNOS_DP,
|
|
RK3288_DP,
|
|
RK3399_EDP,
|
|
};
|
|
|
|
static inline bool is_rockchip(enum analogix_dp_devtype type)
|
|
{
|
|
return type == RK3288_DP || type == RK3399_EDP;
|
|
}
|
|
|
|
struct analogix_dp_plat_data {
|
|
enum analogix_dp_devtype dev_type;
|
|
struct drm_panel *panel;
|
|
struct drm_encoder *encoder;
|
|
struct drm_connector *connector;
|
|
bool skip_connector;
|
|
|
|
int (*power_on)(struct analogix_dp_plat_data *);
|
|
int (*power_off)(struct analogix_dp_plat_data *);
|
|
int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
|
|
struct drm_connector *);
|
|
int (*get_modes)(struct analogix_dp_plat_data *,
|
|
struct drm_connector *);
|
|
};
|
|
|
|
int analogix_dp_resume(struct analogix_dp_device *dp);
|
|
int analogix_dp_suspend(struct analogix_dp_device *dp);
|
|
|
|
struct analogix_dp_device *
|
|
analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data);
|
|
int analogix_dp_bind(struct analogix_dp_device *dp, struct drm_device *drm_dev);
|
|
void analogix_dp_unbind(struct analogix_dp_device *dp);
|
|
|
|
int analogix_dp_start_crc(struct drm_connector *connector);
|
|
int analogix_dp_stop_crc(struct drm_connector *connector);
|
|
|
|
#endif /* _ANALOGIX_DP_H_ */
|