forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* 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.
113 */
124
135 #ifndef _DPU_HW_SSPP_H
....@@ -35,7 +27,8 @@
3527 */
3628 #define DPU_SSPP_SCALER ((1UL << DPU_SSPP_SCALER_RGB) | \
3729 (1UL << DPU_SSPP_SCALER_QSEED2) | \
38
- (1UL << DPU_SSPP_SCALER_QSEED3))
30
+ (1UL << DPU_SSPP_SCALER_QSEED3) | \
31
+ (1UL << DPU_SSPP_SCALER_QSEED4))
3932
4033 /**
4134 * Component indices
....@@ -381,7 +374,7 @@
381374 struct dpu_hw_blk base;
382375 struct dpu_hw_blk_reg_map hw;
383376 struct dpu_mdss_cfg *catalog;
384
- struct dpu_mdp_cfg *mdp;
377
+ const struct dpu_mdp_cfg *mdp;
385378
386379 /* Pipe */
387380 enum dpu_sspp idx;
....@@ -390,16 +383,6 @@
390383 /* Ops */
391384 struct dpu_hw_sspp_ops ops;
392385 };
393
-
394
-/**
395
- * dpu_hw_pipe - convert base object dpu_hw_base to container
396
- * @hw: Pointer to base hardware block
397
- * return: Pointer to hardware block container
398
- */
399
-static inline struct dpu_hw_pipe *to_dpu_hw_pipe(struct dpu_hw_blk *hw)
400
-{
401
- return container_of(hw, struct dpu_hw_pipe, base);
402
-}
403386
404387 /**
405388 * dpu_hw_sspp_init - initializes the sspp hw driver object.