| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* include/video/samsung_fimd.h |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright 2008 Openmoko, Inc. |
|---|
| .. | .. |
|---|
| 9 | 10 | * |
|---|
| 10 | 11 | * This is the register set for the fimd and new style framebuffer interface |
|---|
| 11 | 12 | * 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. |
|---|
| 17 | 14 | */ |
|---|
| 18 | 15 | |
|---|
| 19 | 16 | /* VIDCON0 */ |
|---|
| .. | .. |
|---|
| 198 | 195 | #define WINCONx_BURSTLEN_8WORD (0x1 << 9) |
|---|
| 199 | 196 | #define WINCONx_BURSTLEN_4WORD (0x2 << 9) |
|---|
| 200 | 197 | #define WINCONx_ENWIN (1 << 0) |
|---|
| 198 | +#define WINCONx_BLEND_MODE_MASK (0xc2) |
|---|
| 201 | 199 | |
|---|
| 202 | 200 | #define WINCON0_BPPMODE_MASK (0xf << 2) |
|---|
| 203 | 201 | #define WINCON0_BPPMODE_SHIFT 2 |
|---|
| .. | .. |
|---|
| 211 | 209 | #define WINCON0_BPPMODE_24BPP_888 (0xb << 2) |
|---|
| 212 | 210 | |
|---|
| 213 | 211 | #define WINCON1_LOCALSEL_CAMIF (1 << 23) |
|---|
| 212 | +#define WINCON1_ALPHA_MUL (1 << 7) |
|---|
| 214 | 213 | #define WINCON1_BLD_PIX (1 << 6) |
|---|
| 215 | 214 | #define WINCON1_BPPMODE_MASK (0xf << 2) |
|---|
| 216 | 215 | #define WINCON1_BPPMODE_SHIFT 2 |
|---|
| .. | .. |
|---|
| 437 | 436 | #define WPALCON_W0PAL_16BPP_565 (0x6 << 0) |
|---|
| 438 | 437 | |
|---|
| 439 | 438 | /* 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) |
|---|
| 440 | 447 | #define BLENDCON 0x260 |
|---|
| 441 | 448 | #define BLENDCON_NEW_MASK (1 << 0) |
|---|
| 442 | 449 | #define BLENDCON_NEW_8BIT_ALPHA_VALUE (1 << 0) |
|---|