drm/sun4i: support TCONs without channel 1
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 7 Jan 2016 11:32:07 +0000 (12:32 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 8 Sep 2016 06:58:57 +0000 (08:58 +0200)
commit8e9240472522bd53d9372a03357b9f0ca8faef59
treeb5b2a9cc7d1f29957662ef7940980617419634b1
parentb5644a5e72f0a18c0cddf887bec1e1370cf67a8c
drm/sun4i: support TCONs without channel 1

Some Allwinner SoCs, such as the A33, have a variation of the TCON that
doesn't have a second channel (or it is not wired to anything).

Make sure we can handle that case.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h