Home
last modified time | relevance | path

Searched hist:b317fa3ba11a10eee45c3e64d6396015ff87e8dc (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.cdiff b317fa3ba11a10eee45c3e64d6396015ff87e8dc Fri Apr 21 03:38:54 CDT 2017 Chen-Yu Tsai <wens@csie.org> drm/sun4i: tcon: Find matching display backend by device node matching

With Allwinner's Display Engine 1.0, each TCON's input is tied to a
specific display backend, and the 2 comprise what is known as a crtc
in DRM KMS land: The layer, framebuffer, and compositing functions are
provided by the backend, while the TCON provides the display timing
signals and vblank interrupts. This 1 to 1 relationship is represented
in the device tree. On some systems there is an intermediate DRC
component.

Pointers to both matching components must be provided when initializing
the crtc. As the backend is always registered before the associated
tcon, we can recursively search upwards through the of_graph to find
the matching backend.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>