MLK-17684-3: drm/mxsfb: Add support for new pixel formats in eLCDIF
authorMirela Rabulea <mirela.rabulea@nxp.com>
Wed, 7 Mar 2018 08:48:21 +0000 (10:48 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:50 +0000 (14:56 -0500)
commit58aa5debc06ce21d7c05a08cfedf782d0bb23d95
treef771782b95440461c8ccefc462a4fd09a435b05b
parent19b9308940a2901202ac681c1273c82001451752
MLK-17684-3: drm/mxsfb: Add support for new pixel formats in eLCDIF

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, the DSI will use it.
Use drm_get_format_name instead of locally defined fourcc_to_str.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
drivers/gpu/drm/mxsfb/mxsfb_crtc.c
drivers/gpu/drm/mxsfb/mxsfb_drv.c