drm/sun4i: tcon: Move out the tcon0 common setup
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 17 Oct 2017 09:06:14 +0000 (11:06 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 17 Oct 2017 17:49:14 +0000 (19:49 +0200)
commitba19c53704d8bc503dd20011819d1d3251899c56
treea53195fea93ab97e3b0e8bad0a35fd84200e1fd9
parent5b8f09100d6c85c4a8049a830b57f199b5b08278
drm/sun4i: tcon: Move out the tcon0 common setup

Some channel0 setup has to be done, no matter what the output interface is
(RGB, CPU, LVDS). Move that code into a common function in order to avoid
duplication.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/183100/
drivers/gpu/drm/sun4i/sun4i_tcon.c