drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting
[deliverable/linux.git] / include / drm / bridge / analogix_dp.h
CommitLineData
3424e3a4
YY
1/*
2 * Analogix DP (Display Port) Core interface driver.
3 *
4 * Copyright (C) 2015 Rockchip Electronics Co., Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11#ifndef _ANALOGIX_DP_H_
12#define _ANALOGIX_DP_H_
13
14#include <drm/drm_crtc.h>
15
16enum analogix_dp_devtype {
17 EXYNOS_DP,
9e32e16e 18 RK3288_DP,
3424e3a4
YY
19};
20
7bdc0720
YY
21static inline bool is_rockchip(enum analogix_dp_devtype type)
22{
23 return type == RK3288_DP;
24}
25
3424e3a4
YY
26struct analogix_dp_plat_data {
27 enum analogix_dp_devtype dev_type;
28 struct drm_panel *panel;
29 struct drm_encoder *encoder;
30 struct drm_connector *connector;
31
32 int (*power_on)(struct analogix_dp_plat_data *);
33 int (*power_off)(struct analogix_dp_plat_data *);
34 int (*attach)(struct analogix_dp_plat_data *, struct drm_bridge *,
35 struct drm_connector *);
36 int (*get_modes)(struct analogix_dp_plat_data *);
37};
38
39int analogix_dp_resume(struct device *dev);
40int analogix_dp_suspend(struct device *dev);
41
42int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev,
43 struct analogix_dp_plat_data *plat_data);
44void analogix_dp_unbind(struct device *dev, struct device *master, void *data);
45
46#endif /* _ANALOGIX_DP_H_ */
This page took 0.033689 seconds and 5 git commands to generate.