]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Add crtc_endpoint_id to rockchip_encoder
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 22 Apr 2022 07:28:20 +0000 (09:28 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 3 May 2022 09:24:00 +0000 (11:24 +0200)
commit759de6f42345517176c19c8fb6de3e61958af686
tree5ba7f4e320305fd6439151e0c005b27e0d0a9cd8
parent982b92bdd952fa9d48222e986ae35218bed1ca39
drm/rockchip: Add crtc_endpoint_id to rockchip_encoder

The VOP2 has an interface mux which decides to which encoder(s) a CRTC
is routed to. The encoders and CRTCs are connected via of_graphs in the
device tree. When given an encoder the VOP2 driver needs to know to
which internal register setting this encoder matches. For this the VOP2
binding offers different endpoints, one for each possible encoder. The
endpoint ids of these endpoints are used as a key from an encoders
device tree description to the internal register setting.

This patch adds the key aka endpoint id to struct rockchip_encoder plus
a function to read the endpoint id starting from the encoders device
node.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220422072841.2206452-4-s.hauer@pengutronix.de
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.h