MLK-17090: drm/mxsfb: Update mxsfb with additional pixel formats
authorRobert Chiras <robert.chiras@nxp.com>
Wed, 6 Dec 2017 15:43:30 +0000 (17:43 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:32 +0000 (14:50 -0500)
commit61e35c44ed8b5666a1a69d49d1db0186284182a2
treee2da0f85b62a01e1a1bf3439cb2417ccf494218f
parent22ed379662a37e9a80eb2e9457955fa20c059ff2
MLK-17090: drm/mxsfb: Update mxsfb with additional pixel formats

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.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
drivers/gpu/drm/mxsfb/mxsfb_crtc.c
drivers/gpu/drm/mxsfb/mxsfb_drv.c
drivers/gpu/drm/mxsfb/mxsfb_drv.h
drivers/gpu/drm/mxsfb/mxsfb_regs.h