2015-10-29 08:36:23 +00:00
|
|
|
sun4i-drm-y += sun4i_drv.o
|
|
|
|
sun4i-drm-y += sun4i_framebuffer.o
|
|
|
|
|
2017-05-27 16:09:35 +00:00
|
|
|
sun4i-drm-hdmi-y += sun4i_hdmi_enc.o
|
2017-07-02 07:27:10 +00:00
|
|
|
sun4i-drm-hdmi-y += sun4i_hdmi_i2c.o
|
2017-05-27 16:09:35 +00:00
|
|
|
sun4i-drm-hdmi-y += sun4i_hdmi_ddc_clk.o
|
|
|
|
sun4i-drm-hdmi-y += sun4i_hdmi_tmds_clk.o
|
|
|
|
|
2015-10-29 08:36:23 +00:00
|
|
|
sun4i-tcon-y += sun4i_tcon.o
|
2015-10-29 08:37:32 +00:00
|
|
|
sun4i-tcon-y += sun4i_rgb.o
|
2015-10-29 08:36:23 +00:00
|
|
|
sun4i-tcon-y += sun4i_dotclock.o
|
drm/sun4i: Initialize crtc from tcon bind function
The tcon provides part of the functionality of the crtc, and also
provides the device node for the output port of the crtc. To be able
to use drm_of_find_possible_crtcs(), all crtc must be initialized before
any downstream encoders. The other part of the crtc is the display
backend.
The Rockchip DRM driver does this by first binding all vops, which is
their crtc, and this step also creates the crtc objects. Then all
remaining hardware components are bound. With the Allwinner display
pipeline, we have multiple components comprising the crtc, and varying
depths of the display pipeline. Since components are added with a depth
first search of the of_graph, we can initialize the crtc object within
the tcon bind function. Since the backend precedes the tcon, and the
backends cannot be muxed or switched around, we can be sure that the
associated backend is already initialized.
This patch also moves the crtc pointer from the main drm_device data to
the tcon device data. Besides the crtc callbacks, the crtc structure is
only used within the tcon driver to signal vblank events from its
interrupt handler.
As the crtc and layer bits are now called from the tcon bits, we must
move them from the sun4i-drm module to the sun4i-tcon module to avoid
circular dependencies between the two modules. This is because sun4i-drm
also calls into sun4i-tcon.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2017-02-23 08:05:37 +00:00
|
|
|
sun4i-tcon-y += sun4i_crtc.o
|
2017-05-17 14:47:17 +00:00
|
|
|
|
|
|
|
sun4i-backend-y += sun4i_backend.o sun4i_layer.o
|
2015-10-29 08:36:23 +00:00
|
|
|
|
2017-05-17 14:47:20 +00:00
|
|
|
sun8i-mixer-y += sun8i_mixer.o sun8i_layer.o
|
|
|
|
|
2015-10-29 08:36:23 +00:00
|
|
|
obj-$(CONFIG_DRM_SUN4I) += sun4i-drm.o sun4i-tcon.o
|
2016-06-09 12:01:58 +00:00
|
|
|
obj-$(CONFIG_DRM_SUN4I) += sun6i_drc.o
|
2015-10-29 08:39:01 +00:00
|
|
|
obj-$(CONFIG_DRM_SUN4I) += sun4i_tv.o
|
2017-05-17 14:47:19 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_DRM_SUN4I_BACKEND) += sun4i-backend.o
|
2017-05-27 16:09:35 +00:00
|
|
|
obj-$(CONFIG_DRM_SUN4I_HDMI) += sun4i-drm-hdmi.o
|
2017-05-17 14:47:20 +00:00
|
|
|
obj-$(CONFIG_DRM_SUN8I_MIXER) += sun8i-mixer.o
|