• Robert Chiras's avatar
    drm/mxsfb: Update mxsfb with additional pixel formats · b45ce5e0
    Robert Chiras authored
    
    
    Since version 4 of eLCDIF, there are some registers that can do
    transformations on the input data, like re-arranging the pixel
    components. By doing that, we can support more pixel formats.
    This patch adds support for X/ABGR and RGBX/A. Although, the local alpha
    is not supported by eLCDIF, the alpha pixel formats were added to the
    supported pixel formats but it will be ignored. This was necessary since
    there are systems (like Android) that requires such pixel formats.
    
    Also, add support for the following pixel formats:
                16 bpp: RG16 ,BG16, XR15, XB15, AR15, AB15
    
    Set the bus format based on input from the user and panel
    capabilities.
    Save the bus format in crtc->mode.private_flags, so the bridge can
    use it.
    Signed-off-by: default avatarRobert Chiras <robert.chiras@nxp.com>
    Signed-off-by: default avatarMirela Rabulea <mirela.rabulea@nxp.com>
    b45ce5e0
mxsfb_regs.h 5.59 KB