| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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 |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | #ifndef EXYNOS_REGS_DECON5433_H |
|---|
| .. | .. |
|---|
| 104 | 101 | #define WINCONx_BURSTLEN_16WORD (0x0 << 10) |
|---|
| 105 | 102 | #define WINCONx_BURSTLEN_8WORD (0x1 << 10) |
|---|
| 106 | 103 | #define WINCONx_BURSTLEN_4WORD (0x2 << 10) |
|---|
| 104 | +#define WINCONx_ALPHA_MUL_F (1 << 7) |
|---|
| 107 | 105 | #define WINCONx_BLD_PIX_F (1 << 6) |
|---|
| 108 | 106 | #define WINCONx_BPPMODE_MASK (0xf << 2) |
|---|
| 109 | 107 | #define WINCONx_BPPMODE_16BPP_565 (0x5 << 2) |
|---|
| .. | .. |
|---|
| 116 | 114 | #define WINCONx_BPPMODE_16BPP_A4444 (0xe << 2) |
|---|
| 117 | 115 | #define WINCONx_ALPHA_SEL_F (1 << 1) |
|---|
| 118 | 116 | #define WINCONx_ENWIN_F (1 << 0) |
|---|
| 117 | +#define WINCONx_BLEND_MODE_MASK (0xc2) |
|---|
| 119 | 118 | |
|---|
| 120 | 119 | /* SHADOWCON */ |
|---|
| 121 | 120 | #define SHADOWCON_PROTECT_MASK GENMASK(14, 10) |
|---|
| 122 | 121 | #define SHADOWCON_Wx_PROTECT(n) (1 << (10 + (n))) |
|---|
| 122 | + |
|---|
| 123 | +/* VIDOSDxC */ |
|---|
| 124 | +#define VIDOSDxC_ALPHA0_RGB_MASK (0xffffff) |
|---|
| 123 | 125 | |
|---|
| 124 | 126 | /* VIDOSDxD */ |
|---|
| 125 | 127 | #define VIDOSD_Wx_ALPHA_R_F(n) (((n) & 0xff) << 16) |
|---|
| .. | .. |
|---|
| 206 | 208 | #define CRCCTRL_CRCEN (0x1 << 0) |
|---|
| 207 | 209 | #define CRCCTRL_MASK (0x7) |
|---|
| 208 | 210 | |
|---|
| 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 | + |
|---|
| 209 | 228 | #endif /* EXYNOS_REGS_DECON5433_H */ |
|---|