summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorMartin Jücker <martin.juecker@gmail.com>2022-01-29 23:01:53 +0100
committerInki Dae <inki.dae@samsung.com>2022-03-04 17:13:52 +0900
commit2d684f4e155c1e80ff63bd503930171c460eac5b (patch)
tree7d5e4f64962318b1a665b246e0ba6e1f0c986f7f /include/video
parentfedc89821990013608bc210c9aef5bb33a1345a7 (diff)
downloadlinux-2d684f4e155c1e80ff63bd503930171c460eac5b.tar.gz
linux-2d684f4e155c1e80ff63bd503930171c460eac5b.tar.bz2
linux-2d684f4e155c1e80ff63bd503930171c460eac5b.zip
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')
-rw-r--r--include/video/samsung_fimd.h4
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