| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
|---|
| 2 | | - * |
|---|
| 3 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 4 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 5 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 8 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 9 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 10 | | - * GNU General Public License for more details. |
|---|
| 11 | 3 | */ |
|---|
| 12 | 4 | |
|---|
| 13 | 5 | #ifndef _DPU_HW_MDSS_H |
|---|
| .. | .. |
|---|
| 100 | 92 | DPU_HW_BLK_SSPP, |
|---|
| 101 | 93 | DPU_HW_BLK_LM, |
|---|
| 102 | 94 | DPU_HW_BLK_CTL, |
|---|
| 103 | | - DPU_HW_BLK_CDM, |
|---|
| 104 | 95 | DPU_HW_BLK_PINGPONG, |
|---|
| 105 | 96 | DPU_HW_BLK_INTF, |
|---|
| 106 | 97 | DPU_HW_BLK_WB, |
|---|
| 98 | + DPU_HW_BLK_DSPP, |
|---|
| 107 | 99 | DPU_HW_BLK_MAX, |
|---|
| 108 | 100 | }; |
|---|
| 109 | 101 | |
|---|
| .. | .. |
|---|
| 173 | 165 | DSPP_MAX |
|---|
| 174 | 166 | }; |
|---|
| 175 | 167 | |
|---|
| 176 | | -enum dpu_ds { |
|---|
| 177 | | - DS_TOP, |
|---|
| 178 | | - DS_0, |
|---|
| 179 | | - DS_1, |
|---|
| 180 | | - DS_MAX |
|---|
| 181 | | -}; |
|---|
| 182 | | - |
|---|
| 183 | 168 | enum dpu_ctl { |
|---|
| 184 | 169 | CTL_0 = 1, |
|---|
| 185 | 170 | CTL_1, |
|---|
| 186 | 171 | CTL_2, |
|---|
| 187 | 172 | CTL_3, |
|---|
| 188 | 173 | CTL_4, |
|---|
| 174 | + CTL_5, |
|---|
| 189 | 175 | CTL_MAX |
|---|
| 190 | | -}; |
|---|
| 191 | | - |
|---|
| 192 | | -enum dpu_cdm { |
|---|
| 193 | | - CDM_0 = 1, |
|---|
| 194 | | - CDM_1, |
|---|
| 195 | | - CDM_MAX |
|---|
| 196 | 176 | }; |
|---|
| 197 | 177 | |
|---|
| 198 | 178 | enum dpu_pingpong { |
|---|
| .. | .. |
|---|
| 201 | 181 | PINGPONG_2, |
|---|
| 202 | 182 | PINGPONG_3, |
|---|
| 203 | 183 | PINGPONG_4, |
|---|
| 184 | + PINGPONG_5, |
|---|
| 204 | 185 | PINGPONG_S0, |
|---|
| 205 | 186 | PINGPONG_MAX |
|---|
| 206 | 187 | }; |
|---|
| .. | .. |
|---|
| 246 | 227 | WB_MAX |
|---|
| 247 | 228 | }; |
|---|
| 248 | 229 | |
|---|
| 249 | | -enum dpu_ad { |
|---|
| 250 | | - AD_0 = 0x1, |
|---|
| 251 | | - AD_1, |
|---|
| 252 | | - AD_MAX |
|---|
| 253 | | -}; |
|---|
| 254 | | - |
|---|
| 255 | 230 | enum dpu_cwb { |
|---|
| 256 | 231 | CWB_0 = 0x1, |
|---|
| 257 | 232 | CWB_1, |
|---|
| .. | .. |
|---|
| 276 | 251 | VBIF_MAX, |
|---|
| 277 | 252 | VBIF_RT = VBIF_0, |
|---|
| 278 | 253 | VBIF_NRT = VBIF_1 |
|---|
| 279 | | -}; |
|---|
| 280 | | - |
|---|
| 281 | | -enum dpu_iommu_domain { |
|---|
| 282 | | - DPU_IOMMU_DOMAIN_UNSECURE, |
|---|
| 283 | | - DPU_IOMMU_DOMAIN_SECURE, |
|---|
| 284 | | - DPU_IOMMU_DOMAIN_MAX |
|---|
| 285 | 254 | }; |
|---|
| 286 | 255 | |
|---|
| 287 | 256 | /** |
|---|
| .. | .. |
|---|
| 378 | 347 | * @alpha_enable: whether the format has an alpha channel |
|---|
| 379 | 348 | * @num_planes: number of planes (including meta data planes) |
|---|
| 380 | 349 | * @fetch_mode: linear, tiled, or ubwc hw fetch behavior |
|---|
| 381 | | - * @is_yuv: is format a yuv variant |
|---|
| 382 | 350 | * @flag: usage bit flags |
|---|
| 383 | 351 | * @tile_width: format tile width |
|---|
| 384 | 352 | * @tile_height: format tile height |
|---|
| .. | .. |
|---|
| 451 | 419 | * Define bit masks for h/w logging. |
|---|
| 452 | 420 | */ |
|---|
| 453 | 421 | #define DPU_DBG_MASK_NONE (1 << 0) |
|---|
| 454 | | -#define DPU_DBG_MASK_CDM (1 << 1) |
|---|
| 455 | | -#define DPU_DBG_MASK_INTF (1 << 2) |
|---|
| 456 | | -#define DPU_DBG_MASK_LM (1 << 3) |
|---|
| 457 | | -#define DPU_DBG_MASK_CTL (1 << 4) |
|---|
| 458 | | -#define DPU_DBG_MASK_PINGPONG (1 << 5) |
|---|
| 459 | | -#define DPU_DBG_MASK_SSPP (1 << 6) |
|---|
| 460 | | -#define DPU_DBG_MASK_WB (1 << 7) |
|---|
| 461 | | -#define DPU_DBG_MASK_TOP (1 << 8) |
|---|
| 462 | | -#define DPU_DBG_MASK_VBIF (1 << 9) |
|---|
| 463 | | -#define DPU_DBG_MASK_ROT (1 << 10) |
|---|
| 422 | +#define DPU_DBG_MASK_INTF (1 << 1) |
|---|
| 423 | +#define DPU_DBG_MASK_LM (1 << 2) |
|---|
| 424 | +#define DPU_DBG_MASK_CTL (1 << 3) |
|---|
| 425 | +#define DPU_DBG_MASK_PINGPONG (1 << 4) |
|---|
| 426 | +#define DPU_DBG_MASK_SSPP (1 << 5) |
|---|
| 427 | +#define DPU_DBG_MASK_WB (1 << 6) |
|---|
| 428 | +#define DPU_DBG_MASK_TOP (1 << 7) |
|---|
| 429 | +#define DPU_DBG_MASK_VBIF (1 << 8) |
|---|
| 430 | +#define DPU_DBG_MASK_ROT (1 << 9) |
|---|
| 431 | +#define DPU_DBG_MASK_DSPP (1 << 10) |
|---|
| 464 | 432 | |
|---|
| 465 | 433 | #endif /* _DPU_HW_MDSS_H */ |
|---|