diff options
author | Martin Jücker <martin.juecker@gmail.com> | 2022-01-30 01:01:53 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2022-03-04 11:13:52 +0300 |
commit | 2d684f4e155c1e80ff63bd503930171c460eac5b (patch) | |
tree | 7d5e4f64962318b1a665b246e0ba6e1f0c986f7f /include/video/samsung_fimd.h | |
parent | fedc89821990013608bc210c9aef5bb33a1345a7 (diff) | |
download | linux-2d684f4e155c1e80ff63bd503930171c460eac5b.tar.xz |
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>
Diffstat (limited to 'include/video/samsung_fimd.h')
-rw-r--r-- | include/video/samsung_fimd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/video/samsung_fimd.h b/include/video/samsung_fimd.h index c4a93ce1de48..e6966d187591 100644 --- a/include/video/samsung_fimd.h +++ b/include/video/samsung_fimd.h @@ -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 |