Skip to content

Commit 1a5b537

Browse files
robertfosslumag
authored andcommitted
drm/msm/dpu: Refactor sc7280_pp location
The sc7280_pp declaration is not located by the other _pp declarations, but rather hidden around the _merge_3d declarations. Let's fix this to avoid confusion. Signed-off-by: Robert Foss <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/509153/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 4e78a58 commit 1a5b537

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,13 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = {
11781178
-1),
11791179
};
11801180

1181+
static const struct dpu_pingpong_cfg sc7280_pp[] = {
1182+
PP_BLK("pingpong_0", PINGPONG_0, 0x59000, 0, sc7280_pp_sblk, -1, -1),
1183+
PP_BLK("pingpong_1", PINGPONG_1, 0x6a000, 0, sc7280_pp_sblk, -1, -1),
1184+
PP_BLK("pingpong_2", PINGPONG_2, 0x6b000, 0, sc7280_pp_sblk, -1, -1),
1185+
PP_BLK("pingpong_3", PINGPONG_3, 0x6c000, 0, sc7280_pp_sblk, -1, -1),
1186+
};
1187+
11811188
static struct dpu_pingpong_cfg qcm2290_pp[] = {
11821189
PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk,
11831190
DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
@@ -1201,13 +1208,6 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = {
12011208
MERGE_3D_BLK("merge_3d_2", MERGE_3D_2, 0x83200),
12021209
};
12031210

1204-
static const struct dpu_pingpong_cfg sc7280_pp[] = {
1205-
PP_BLK("pingpong_0", PINGPONG_0, 0x59000, 0, sc7280_pp_sblk, -1, -1),
1206-
PP_BLK("pingpong_1", PINGPONG_1, 0x6a000, 0, sc7280_pp_sblk, -1, -1),
1207-
PP_BLK("pingpong_2", PINGPONG_2, 0x6b000, 0, sc7280_pp_sblk, -1, -1),
1208-
PP_BLK("pingpong_3", PINGPONG_3, 0x6c000, 0, sc7280_pp_sblk, -1, -1),
1209-
};
1210-
12111211
/*************************************************************
12121212
* DSC sub blocks config
12131213
*************************************************************/

0 commit comments

Comments
 (0)