| .. | .. |
|---|
| 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_SSPP_H |
|---|
| .. | .. |
|---|
| 35 | 27 | */ |
|---|
| 36 | 28 | #define DPU_SSPP_SCALER ((1UL << DPU_SSPP_SCALER_RGB) | \ |
|---|
| 37 | 29 | (1UL << DPU_SSPP_SCALER_QSEED2) | \ |
|---|
| 38 | | - (1UL << DPU_SSPP_SCALER_QSEED3)) |
|---|
| 30 | + (1UL << DPU_SSPP_SCALER_QSEED3) | \ |
|---|
| 31 | + (1UL << DPU_SSPP_SCALER_QSEED4)) |
|---|
| 39 | 32 | |
|---|
| 40 | 33 | /** |
|---|
| 41 | 34 | * Component indices |
|---|
| .. | .. |
|---|
| 381 | 374 | struct dpu_hw_blk base; |
|---|
| 382 | 375 | struct dpu_hw_blk_reg_map hw; |
|---|
| 383 | 376 | struct dpu_mdss_cfg *catalog; |
|---|
| 384 | | - struct dpu_mdp_cfg *mdp; |
|---|
| 377 | + const struct dpu_mdp_cfg *mdp; |
|---|
| 385 | 378 | |
|---|
| 386 | 379 | /* Pipe */ |
|---|
| 387 | 380 | enum dpu_sspp idx; |
|---|
| .. | .. |
|---|
| 390 | 383 | /* Ops */ |
|---|
| 391 | 384 | struct dpu_hw_sspp_ops ops; |
|---|
| 392 | 385 | }; |
|---|
| 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 | | -} |
|---|
| 403 | 386 | |
|---|
| 404 | 387 | /** |
|---|
| 405 | 388 | * dpu_hw_sspp_init - initializes the sspp hw driver object. |
|---|