OpenCloudOS-Kernel/drivers/gpu/drm/sun4i
Icenowy Zheng 7921e1477a drm/sun4i: return only planes for layers created
As we are going to add support for the Allwinner DE2 Mixer in sun4i-drm
driver, we will finally have two types of layers.

Each layer is bound to a drm_plane that is CRTC-specific, so we create
them when initializing CRTC (calling sun4i_layers_init, which will be
generalized in next patch). The drm_plane's will be used when creating
CRTC, but the CRTC initialization code do not care other properties of
the layer, so we let the sun4i_layers_init function return drm_plane's
only.

As we have no need to trace the layers after the CRTC is properly
created, we drop the layers pointer in sun4i_crtc struct.

Doing this uncouples the CRTC code from the type of layer (the
sun4i_layers_init function name is still hardcoded and will be changed
in the next patch), so that we can finally gain support for the
mixer in DE2, which has different layers.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2017-05-15 11:12:43 +02:00
..
Kconfig drm/sun4i: add COMMON_CLK dependency 2016-05-30 08:28:33 +02:00
Makefile drm/sun4i: Initialize crtc from tcon bind function 2017-03-07 22:18:23 +01:00
sun4i_backend.c drm/sun4i: backend: Clarify sun4i_backend_layer_enable debug message 2017-05-14 08:31:58 +02:00
sun4i_backend.h drm/sun4i: backend: Save pointer to device tree node 2017-05-14 08:27:41 +02:00
sun4i_crtc.c drm/sun4i: return only planes for layers created 2017-05-15 11:12:43 +02:00
sun4i_crtc.h drm/sun4i: return only planes for layers created 2017-05-15 11:12:43 +02:00
sun4i_dotclock.c drm/sun4i: dotclock: Round to closest clock rate 2016-09-20 09:19:31 +02:00
sun4i_dotclock.h
sun4i_drv.c drm/sun4i: Use lists to track registered display backends and TCONs 2017-05-14 08:27:41 +02:00
sun4i_drv.h drm/sun4i: Use lists to track registered display backends and TCONs 2017-05-14 08:27:41 +02:00
sun4i_framebuffer.c drm/sun4i: Move drm_mode_config_cleanup call to main driver 2017-03-07 22:15:14 +01:00
sun4i_framebuffer.h
sun4i_layer.c drm/sun4i: return only planes for layers created 2017-05-15 11:12:43 +02:00
sun4i_layer.h drm/sun4i: return only planes for layers created 2017-05-15 11:12:43 +02:00
sun4i_rgb.c drm/sun4i: Set TCON clock inside sun4i_tconX_mode_set 2017-05-14 08:31:58 +02:00
sun4i_rgb.h drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder 2017-03-07 22:18:24 +01:00
sun4i_tcon.c drm/sun4i: Set TCON clock inside sun4i_tconX_mode_set 2017-05-14 08:31:58 +02:00
sun4i_tcon.h drm/sun4i: tcon: Copy ID from associated backend 2017-05-14 08:31:57 +02:00
sun4i_tv.c drm/sun4i: Set TCON clock inside sun4i_tconX_mode_set 2017-05-14 08:31:58 +02:00
sun6i_drc.c Merge tag 'drm-misc-next-2016-11-16' of git://anongit.freedesktop.org/git/drm-misc into drm-next 2016-11-17 08:02:46 +10:00