Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: ARM CLCD: Fix color model capabilities for DT platforms

The DT-based panel capabilities selection was picking up
a subset of available modes based on hardware configuration.
This was wrong, as the capabilities describe available
memory models and adapt the display controller to them
that the RGB output is wired up correctly (as in: R and
B components are not swapped).

This patch fixes it by removing the unnecessary limitation.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Pawel Moll and committed by
Tomi Valkeinen
e4cf39ea 32797b3e

+1 -3
+1 -3
drivers/video/fbdev/amba-clcd.c
··· 639 639 if (g0 != panels[i].g0) 640 640 continue; 641 641 if (r0 == panels[i].r0 && b0 == panels[i].b0) 642 - fb->panel->caps = panels[i].caps & CLCD_CAP_RGB; 643 - if (r0 == panels[i].b0 && b0 == panels[i].r0) 644 - fb->panel->caps = panels[i].caps & CLCD_CAP_BGR; 642 + fb->panel->caps = panels[i].caps; 645 643 } 646 644 647 645 return fb->panel->caps ? 0 : -EINVAL;