• Shawn Guo's avatar
    drm: zte: add .atomic_disable hook to disable graphic layer · 7254b1f9
    Shawn Guo authored
    There are a few hardware bits for each graphic layer to control main/aux
    channel and clock selection, as well as the layer enabling.  These bits
    sit outside the layer block itself, but in VOU control glue block.  We
    currently set these bits up at CRTC initialization for once, and do not
    support disabling the layer.
    
    This patch creates a pair of functions zx_vou_layer_enable[disable] to
    be invoked from plane hooks .atomic_update and .atomic_disable to set up
    and tear down the layer.  This is generic for both graphic and video
    layers, so it will make the overlay plane support to be added later much
    easier.
    Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
    Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
    7254b1f9
zx_plane.c 7.55 KB