linux/drivers/gpu/drm/sun4i
Chen-Yu Tsai 4c7f16d14a drm/sun4i: Fix TCON clock and regmap initialization sequence
The TCON driver calls sun4i_tcon_init_regmap and sun4i_tcon_init_clocks
in its bind function. The former creates a regmap and writes to several
register to clear its configuration to a known default. The latter
initializes various clocks. This includes enabling the bus clock for
register access and creating the dotclock.

In order for the first step's writes to work, the bus clock must be
enabled which is done in the second step. but the dotclock's ops use
the regmap created in the first step.

Rearrange the function calls such that the clocks are initialized before
the regmap, and split out the dot clock creation to after the regmap is
initialized.

Fixes: 9026e0d122 ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2017-03-09 11:15:53 +01: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: Make sunxi_rgb2yuv_coef constant 2017-03-07 22:15:15 +01:00
sun4i_backend.h drm/sun4i: Fix the high buffer address mask 2016-09-22 10:13:22 +03:00
sun4i_crtc.c drm/sun4i: Add backend and tcon pointers to sun4i_crtc 2017-03-07 22:24:01 +01:00
sun4i_crtc.h drm/sun4i: Add backend and tcon pointers to sun4i_crtc 2017-03-07 22:24:01 +01: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: Grab reserved memory region 2017-03-07 22:24:02 +01:00
sun4i_drv.h drm/sun4i: Drop primary layer pointer from sun4i_drv 2017-03-07 22:18:23 +01: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: Add backend pointer to sun4i_layer 2017-03-07 22:18:24 +01:00
sun4i_layer.h drm/sun4i: Add backend pointer to sun4i_layer 2017-03-07 22:18:24 +01:00
sun4i_rgb.c drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder 2017-03-07 22:18:24 +01: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: Fix TCON clock and regmap initialization sequence 2017-03-09 11:15:53 +01:00
sun4i_tcon.h drm/sun4i: Initialize crtc from tcon bind function 2017-03-07 22:18:23 +01:00
sun4i_tv.c drm/sun4i: tv: Switch to drm_of_find_possible_crtcs 2017-03-07 22:18:24 +01: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