]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: mixer: Read id from DT
authorJernej Skrabec <jernej.skrabec@siol.net>
Wed, 11 Jul 2018 11:27:06 +0000 (13:27 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 12 Jul 2018 07:34:39 +0000 (09:34 +0200)
commit8653f942faa1a5655d3018289cbf14e8064c260b
treebb4693d6b66f03006070f35402b2b088433c706d
parent3292142ba3da9f72aef70434255b5d76ffd79471
drm/sun4i: mixer: Read id from DT

Currently, TCON supports 2 ways to match TCON with engine (mixer in this
case). Old way is to just traverse of graph backwards and compare node
pointer. New way is to match TCON and engine by their respective ids.
All SoCs with DE2 enabled till now used the old way, which means mixer
id was never used and thus never implemented.

However, for R40, only the new way will be used. To prepare for that,
implement mixer id fetching from DT.

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/20180711112706.30222-1-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_mixer.c