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)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3535b2f824fed271893e8d50abddf4e1fa6ba945
tree5cf11c93cbd81257c557ec31f0ceebb60f616fca
parentfaa5f3eeb0e518a422390586771e1f0daaf9432e
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