MLK-16906: drm: imx: core: add possiblity to detect if chip has DCSS
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 17 Nov 2017 09:03:52 +0000 (11:03 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:47:03 +0000 (15:47 -0500)
commit2f61fab66787bd79bde40fac3f850a9ae68938b6
tree40e550a9f2aafaf75bd8396f2288ce00562c664a
parent88682578e66d45ddf3da2c3ad872af525b52f370
MLK-16906: drm: imx: core: add possiblity to detect if chip has DCSS

The Mscale Display Controller Subsystem does not support RGB565.
However, the default legacy FB pixel depth is 16. Hence, the users would
have to add a kernel cmdline option to set it to 32bpp:
imxdrm.legacyfb_depth=32

This patch changes imx-drm-core to detect if platform has DCSS and, if
it does, set the FB pixel depth to 32, so that user does not have to.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/imx-drm-core.c