drm/exynos: fimd: add BGR support for exynos4/5

In the downstream kernels for exynos4 and exynos5 devices, there is an
undocumented register that controls the order of the RGB output. It can
be set to either normal order or reversed, which enables BGR support for
those SoCs.

This patch enables the BGR support for all the SoCs that were found to
have at least one device with this logic in the corresponding downstream
kernels.

Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
Martin Jücker
2022-01-29 23:01:53 +01:00
committed by Inki Dae
parent fedc898219
commit 2d684f4e15
2 changed files with 44 additions and 2 deletions
+4
View File
@@ -476,6 +476,10 @@
* 1111 -none- -none- -none- -none- -none-
*/
#define WIN_RGB_ORDER(_win) (0x2020 + ((_win) * 4))
#define WIN_RGB_ORDER_FORWARD (0 << 11)
#define WIN_RGB_ORDER_REVERSE (1 << 11)
/* FIMD Version 8 register offset definitions */
#define FIMD_V8_VIDTCON0 0x20010
#define FIMD_V8_VIDTCON1 0x20014