OSDN Git Service

drm/sun4i: tcon: Add another way for matching mixers with tcon
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 10 Jul 2018 20:35:05 +0000 (22:35 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 24 Jul 2018 12:36:39 +0000 (14:36 +0200)
commitcf77d79b4e296d3c65aefa094232694a5977ea9a
treef361942a32db5bea0570e9e197ae19585f113de9
parent2aafafab5a9ad922ae13d04f5abca7942a499a5e
drm/sun4i: tcon: Add another way for matching mixers with tcon

Till now, new way of matching engines with TCONs was reading their
respective ids and match them by those ids. However, with introduction
of TCON TOP, that might not be so straightforward anymore.
- there might be more TCONs that engines (mixers)
- TCON ids might have non-consecutive ids

Workaround that by matching mixer id with TCON index from TCON list.

For example, R40 has 2 mixers and 4 TCONs. Board designer can choose
2 outputs, which are connected to any of those 4 TCONs. As long as there
are only 2 TCONs enabled in DT, using index in list as alternative id,
will allow to match them with mixer 0 and 1.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180710203511.18454-13-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun4i_tcon.c