hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/video/samsung_fimd.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* include/video/samsung_fimd.h
23 *
34 * Copyright 2008 Openmoko, Inc.
....@@ -9,11 +10,7 @@
910 *
1011 * This is the register set for the fimd and new style framebuffer interface
1112 * found from the S3C2443 onwards into the S3C2416, S3C2450, the
12
- * S3C64XX series such as the S3C6400 and S3C6410, and EXYNOS series.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
13
+ * S3C64XX series such as the S3C6400 and S3C6410, and Exynos series.
1714 */
1815
1916 /* VIDCON0 */
....@@ -198,6 +195,7 @@
198195 #define WINCONx_BURSTLEN_8WORD (0x1 << 9)
199196 #define WINCONx_BURSTLEN_4WORD (0x2 << 9)
200197 #define WINCONx_ENWIN (1 << 0)
198
+#define WINCONx_BLEND_MODE_MASK (0xc2)
201199
202200 #define WINCON0_BPPMODE_MASK (0xf << 2)
203201 #define WINCON0_BPPMODE_SHIFT 2
....@@ -211,6 +209,7 @@
211209 #define WINCON0_BPPMODE_24BPP_888 (0xb << 2)
212210
213211 #define WINCON1_LOCALSEL_CAMIF (1 << 23)
212
+#define WINCON1_ALPHA_MUL (1 << 7)
214213 #define WINCON1_BLD_PIX (1 << 6)
215214 #define WINCON1_BPPMODE_MASK (0xf << 2)
216215 #define WINCON1_BPPMODE_SHIFT 2
....@@ -437,6 +436,14 @@
437436 #define WPALCON_W0PAL_16BPP_565 (0x6 << 0)
438437
439438 /* Blending equation control */
439
+#define BLENDEQx(_win) (0x244 + ((_win - 1) * 4))
440
+#define BLENDEQ_ZERO 0x0
441
+#define BLENDEQ_ONE 0x1
442
+#define BLENDEQ_ALPHA_A 0x2
443
+#define BLENDEQ_ONE_MINUS_ALPHA_A 0x3
444
+#define BLENDEQ_ALPHA0 0x6
445
+#define BLENDEQ_B_FUNC_F(_x) (_x << 6)
446
+#define BLENDEQ_A_FUNC_F(_x) (_x << 0)
440447 #define BLENDCON 0x260
441448 #define BLENDCON_NEW_MASK (1 << 0)
442449 #define BLENDCON_NEW_8BIT_ALPHA_VALUE (1 << 0)