drm/sun4i: tcon-top: Add helpers for mux switching
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 10 Jul 2018 20:35:04 +0000 (22:35 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 11 Jul 2018 07:54:54 +0000 (09:54 +0200)
commit05db311a792d65633ab77950e520eaa5f031cf80
tree98896ab459f2e8326d73331ba144c85686ac86ae
parente0f56782bc2d715d6386f77df40e31e64e2b80b7
drm/sun4i: tcon-top: Add helpers for mux switching

We want to be able to set TCON TOP muxes at runtime. Add helpers for
that.

Old, static configuration of muxes at probe time is preserved for now.
It will be removed when R40 TCON starts using them.

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-12-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_tcon_top.c
drivers/gpu/drm/sun4i/sun8i_tcon_top.h