OSDN Git Service

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)
commit7da9b2e47fefb419a21e1c4c5a0682846b41b4a0
treebb4693d6b66f03006070f35402b2b088433c706d
parentc089af18b2bdc859f0c923bc6c026d96532797b4
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