]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: tc358768: Separate indirect register writes
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 11 Mar 2026 07:48:14 +0000 (09:48 +0200)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 7 May 2026 09:38:45 +0000 (12:38 +0300)
commitff5578789084e7ca2be8c2e628f8bfe1327d6e1b
treeb9fa6316a7216dcde94209e302869b409ad7b625
parent6b2bb5438bcfd7bad868665cd2aed1caf9ba3f2b
drm/bridge: tc358768: Separate indirect register writes

Some registers can only be written indirectly, using DSI_CONFW register.
We don't have many uses for those registers (in fact, only DSI_CONTROL
is currently written), but the code to do those writes inline is a bit
confusing.

Add a new function, tc358768_confw_update_bits() which can be used to
write the bits indirectly. Only DSI_CONTROL is currently supported.

Tested-by: João Paulo Gonçalves <joao.goncalves@toradex.com> # Toradex Verdin AM62
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://patch.msgid.link/20260311-tc358768-v2-3-e75a99131bd5@ideasonboard.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/bridge/tc358768.c