| .. | .. |
|---|
| 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_LM_H |
|---|
| .. | .. |
|---|
| 61 | 53 | void (*setup_border_color)(struct dpu_hw_mixer *ctx, |
|---|
| 62 | 54 | struct dpu_mdss_color *color, |
|---|
| 63 | 55 | u8 border_en); |
|---|
| 64 | | - /** |
|---|
| 65 | | - * setup_gc : enable/disable gamma correction feature |
|---|
| 66 | | - */ |
|---|
| 67 | | - void (*setup_gc)(struct dpu_hw_mixer *mixer, |
|---|
| 68 | | - void *cfg); |
|---|
| 69 | | - |
|---|
| 70 | | - /* setup_misr: enables/disables MISR in HW register */ |
|---|
| 71 | | - void (*setup_misr)(struct dpu_hw_mixer *ctx, |
|---|
| 72 | | - bool enable, u32 frame_count); |
|---|
| 73 | | - |
|---|
| 74 | | - /* collect_misr: reads and stores MISR data from HW register */ |
|---|
| 75 | | - u32 (*collect_misr)(struct dpu_hw_mixer *ctx); |
|---|
| 76 | 56 | }; |
|---|
| 77 | 57 | |
|---|
| 78 | 58 | struct dpu_hw_mixer { |
|---|
| .. | .. |
|---|
| 111 | 91 | */ |
|---|
| 112 | 92 | struct dpu_hw_mixer *dpu_hw_lm_init(enum dpu_lm idx, |
|---|
| 113 | 93 | void __iomem *addr, |
|---|
| 114 | | - struct dpu_mdss_cfg *m); |
|---|
| 94 | + const struct dpu_mdss_cfg *m); |
|---|
| 115 | 95 | |
|---|
| 116 | 96 | /** |
|---|
| 117 | 97 | * dpu_hw_lm_destroy(): Destroys layer mixer driver context |
|---|