| .. | .. |
|---|
| 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_UTIL_H |
|---|
| .. | .. |
|---|
| 18 | 10 | #include "dpu_hw_mdss.h" |
|---|
| 19 | 11 | |
|---|
| 20 | 12 | #define REG_MASK(n) ((BIT(n)) - 1) |
|---|
| 21 | | -struct dpu_format_extended; |
|---|
| 22 | 13 | |
|---|
| 23 | 14 | /* |
|---|
| 24 | 15 | * This is the common struct maintained by each sub block |
|---|
| .. | .. |
|---|
| 146 | 137 | * Detail enhancer settings |
|---|
| 147 | 138 | */ |
|---|
| 148 | 139 | struct dpu_hw_scaler3_de_cfg de; |
|---|
| 149 | | -}; |
|---|
| 150 | | - |
|---|
| 151 | | -struct dpu_hw_scaler3_lut_cfg { |
|---|
| 152 | | - bool is_configured; |
|---|
| 153 | | - u32 *dir_lut; |
|---|
| 154 | | - size_t dir_len; |
|---|
| 155 | | - u32 *cir_lut; |
|---|
| 156 | | - size_t cir_len; |
|---|
| 157 | | - u32 *sep_lut; |
|---|
| 158 | | - size_t sep_len; |
|---|
| 159 | 140 | }; |
|---|
| 160 | 141 | |
|---|
| 161 | 142 | /** |
|---|
| .. | .. |
|---|
| 324 | 305 | |
|---|
| 325 | 306 | #define DPU_REG_WRITE(c, off, val) dpu_reg_write(c, off, val, #off) |
|---|
| 326 | 307 | #define DPU_REG_READ(c, off) dpu_reg_read(c, off) |
|---|
| 327 | | - |
|---|
| 328 | | -#define MISR_FRAME_COUNT_MASK 0xFF |
|---|
| 329 | | -#define MISR_CTRL_ENABLE BIT(8) |
|---|
| 330 | | -#define MISR_CTRL_STATUS BIT(9) |
|---|
| 331 | | -#define MISR_CTRL_STATUS_CLEAR BIT(10) |
|---|
| 332 | | -#define INTF_MISR_CTRL_FREE_RUN_MASK BIT(31) |
|---|
| 333 | 308 | |
|---|
| 334 | 309 | void *dpu_hw_util_get_dir(void); |
|---|
| 335 | 310 | |
|---|