File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
drivers/gpu/drm/msm/disp/dpu1 Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
// SPDX-License-Identifier: GPL-2.0-only
2
2
/*
3
3
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
4
- * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4
+ * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
5
5
*/
6
6
7
7
#define pr_fmt (fmt ) "[drm:%s] " fmt, __func__
8
8
#include "dpu_kms.h"
9
9
#include "dpu_hw_lm.h"
10
10
#include "dpu_hw_ctl.h"
11
11
#include "dpu_hw_cdm.h"
12
+ #include "dpu_hw_cwb.h"
12
13
#include "dpu_hw_pingpong.h"
13
14
#include "dpu_hw_sspp.h"
14
15
#include "dpu_hw_intf.h"
@@ -122,6 +123,19 @@ int dpu_rm_init(struct drm_device *dev,
122
123
rm -> hw_wb [wb -> id - WB_0 ] = hw ;
123
124
}
124
125
126
+ for (i = 0 ; i < cat -> cwb_count ; i ++ ) {
127
+ struct dpu_hw_cwb * hw ;
128
+ const struct dpu_cwb_cfg * cwb = & cat -> cwb [i ];
129
+
130
+ hw = dpu_hw_cwb_init (dev , cwb , mmio );
131
+ if (IS_ERR (hw )) {
132
+ rc = PTR_ERR (hw );
133
+ DPU_ERROR ("failed cwb object creation: err %d\n" , rc );
134
+ goto fail ;
135
+ }
136
+ rm -> cwb_blks [cwb -> id - CWB_0 ] = & hw -> base ;
137
+ }
138
+
125
139
for (i = 0 ; i < cat -> ctl_count ; i ++ ) {
126
140
struct dpu_hw_ctl * hw ;
127
141
const struct dpu_ctl_cfg * ctl = & cat -> ctl [i ];
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ struct dpu_global_state;
20
20
* @ctl_blks: array of ctl hardware resources
21
21
* @hw_intf: array of intf hardware resources
22
22
* @hw_wb: array of wb hardware resources
23
+ * @hw_cwb: array of cwb hardware resources
23
24
* @dspp_blks: array of dspp hardware resources
24
25
* @hw_sspp: array of sspp hardware resources
25
26
* @cdm_blk: cdm hardware resource
@@ -30,6 +31,7 @@ struct dpu_rm {
30
31
struct dpu_hw_blk * ctl_blks [CTL_MAX - CTL_0 ];
31
32
struct dpu_hw_intf * hw_intf [INTF_MAX - INTF_0 ];
32
33
struct dpu_hw_wb * hw_wb [WB_MAX - WB_0 ];
34
+ struct dpu_hw_blk * cwb_blks [CWB_MAX - CWB_0 ];
33
35
struct dpu_hw_blk * dspp_blks [DSPP_MAX - DSPP_0 ];
34
36
struct dpu_hw_blk * merge_3d_blks [MERGE_3D_MAX - MERGE_3D_0 ];
35
37
struct dpu_hw_blk * dsc_blks [DSC_MAX - DSC_0 ];
You can’t perform that action at this time.
0 commit comments