summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_tcon.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-04-21 16:38:50 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-05-14 08:27:41 +0200
commit80a58240efef576ef909f7d99180ae2a70ca68a5 (patch)
tree579be060ea896da911715c4e583b5a465181f3c4 /drivers/gpu/drm/sun4i/sun4i_tcon.h
parentde120d092eeb69b5285586a9fd33b1778ce9ee27 (diff)
downloadop-kernel-dev-80a58240efef576ef909f7d99180ae2a70ca68a5.zip
op-kernel-dev-80a58240efef576ef909f7d99180ae2a70ca68a5.tar.gz
drm/sun4i: Use lists to track registered display backends and TCONs
To support multiple display pipelines, we need to keep track of the multiple display backends and TCONs registered with the driver. Switch to lists to track registered components. Components are only appended to their respective lists if the bind process was successful. The TCON bind function now defers if a backend was not registered. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_tcon.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
index f636343..1bda4d1 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
@@ -17,6 +17,7 @@
#include <drm/drm_crtc.h>
#include <linux/kernel.h>
+#include <linux/list.h>
#include <linux/reset.h>
#define SUN4I_TCON_GCTL_REG 0x0
@@ -172,6 +173,9 @@ struct sun4i_tcon {
/* Associated crtc */
struct sun4i_crtc *crtc;
+
+ /* TCON list management */
+ struct list_head list;
};
struct drm_bridge *sun4i_tcon_find_bridge(struct device_node *node);
OpenPOWER on IntegriCloud