hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/exynos/regs-decon5433.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014 Samsung Electronics Co.Ltd
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundationr
74 */
85
96 #ifndef EXYNOS_REGS_DECON5433_H
....@@ -104,6 +101,7 @@
104101 #define WINCONx_BURSTLEN_16WORD (0x0 << 10)
105102 #define WINCONx_BURSTLEN_8WORD (0x1 << 10)
106103 #define WINCONx_BURSTLEN_4WORD (0x2 << 10)
104
+#define WINCONx_ALPHA_MUL_F (1 << 7)
107105 #define WINCONx_BLD_PIX_F (1 << 6)
108106 #define WINCONx_BPPMODE_MASK (0xf << 2)
109107 #define WINCONx_BPPMODE_16BPP_565 (0x5 << 2)
....@@ -116,10 +114,14 @@
116114 #define WINCONx_BPPMODE_16BPP_A4444 (0xe << 2)
117115 #define WINCONx_ALPHA_SEL_F (1 << 1)
118116 #define WINCONx_ENWIN_F (1 << 0)
117
+#define WINCONx_BLEND_MODE_MASK (0xc2)
119118
120119 /* SHADOWCON */
121120 #define SHADOWCON_PROTECT_MASK GENMASK(14, 10)
122121 #define SHADOWCON_Wx_PROTECT(n) (1 << (10 + (n)))
122
+
123
+/* VIDOSDxC */
124
+#define VIDOSDxC_ALPHA0_RGB_MASK (0xffffff)
123125
124126 /* VIDOSDxD */
125127 #define VIDOSD_Wx_ALPHA_R_F(n) (((n) & 0xff) << 16)
....@@ -206,4 +208,21 @@
206208 #define CRCCTRL_CRCEN (0x1 << 0)
207209 #define CRCCTRL_MASK (0x7)
208210
211
+/* BLENDCON */
212
+#define BLEND_NEW (1 << 0)
213
+
214
+/* BLENDERQx */
215
+#define BLENDERQ_ZERO 0x0
216
+#define BLENDERQ_ONE 0x1
217
+#define BLENDERQ_ALPHA_A 0x2
218
+#define BLENDERQ_ONE_MINUS_ALPHA_A 0x3
219
+#define BLENDERQ_ALPHA0 0x6
220
+#define BLENDERQ_Q_FUNC_F(n) (n << 18)
221
+#define BLENDERQ_P_FUNC_F(n) (n << 12)
222
+#define BLENDERQ_B_FUNC_F(n) (n << 6)
223
+#define BLENDERQ_A_FUNC_F(n) (n << 0)
224
+
225
+/* BLENDCON */
226
+#define BLEND_NEW (1 << 0)
227
+
209228 #endif /* EXYNOS_REGS_DECON5433_H */