drm/tilcdc: Choose console BPP that supports RGB
authorJyri Sarha <jsarha@ti.com>
Sat, 13 Aug 2016 18:08:20 +0000 (21:08 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 1 Sep 2016 19:32:23 +0000 (22:32 +0300)
commitc56653855250ca6072d6e0ad7fe537c1a6628c70
treeebbccced81a8e39c72551993fb33a78c68193af7
parentbcc5a6f5fc9f0d53aa896768d6f86d7e64d0b783
drm/tilcdc: Choose console BPP that supports RGB

Choose console BPP that supports RGB and remove the old fbdev bpp
selection code. LCDC on AM335x has red and blue wires switched between
24 bit and 16 bit colors. If 24 format is wired for RGB colors, the 16
bit format is wired for BGR. drm_fbdev_cma_init() does not currently
like anything else but RGB formats, so we must choose such bytes per
pixel value that supports RGB.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h
drivers/gpu/drm/tilcdc/tilcdc_external.c
drivers/gpu/drm/tilcdc/tilcdc_external.h
drivers/gpu/drm/tilcdc/tilcdc_panel.c
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c