• Chen-Yu Tsai's avatar
    drm/sun4i: backend: Fetch backend ID from device tree · da3a1c30
    Chen-Yu Tsai authored
    Some Allwinner SoCs have 2 display pipelines, as in 2 of each
    components, including the frontend, backend, TCON, and any other
    extras.
    
    As the backend and TCON are always paired together and form the CRTC,
    we need to know which backend or TCON we are currently probing, so we
    can pair them when initializing the CRTC.
    
    This patch figures out the backend's ID from the device tree and stores
    it in the backend's data structure. It does this by looking at the "reg"
    property of any remote endpoints connected to the backend's input port.
    Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
    Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
    da3a1c30
sun4i_backend.h 6.69 KB