Skip to content

Commit 22598cf

Browse files
Jessica Zhanglumag
authored andcommitted
drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag for DPU >= 7.0
In DPU 7.x and later, DSC/DCE enablement registers have been moved from PINGPONG to INTF. Thus, add a DPU_INTF_DATA_COMPRESS feature flag that will be set if the DATA_COMPRESS register is in the INTF block. Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org> Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/541967/ Link: https://lore.kernel.org/r/20230405-add-dsc-support-v6-3-95eab864d1b6@quicinc.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
1 parent 7c9e4a5 commit 22598cf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
BIT(DPU_INTF_STATUS_SUPPORTED) | \
106106
BIT(DPU_DATA_HCTL_EN))
107107

108-
#define INTF_SC7280_MASK (INTF_SC7180_MASK)
108+
#define INTF_SC7280_MASK (INTF_SC7180_MASK | BIT(DPU_INTF_DATA_COMPRESS))
109109

110110
#define WB_SM8250_MASK (BIT(DPU_WB_LINE_MODE) | \
111111
BIT(DPU_WB_UBWC) | \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,15 @@ enum {
181181
* @DPU_DATA_HCTL_EN Allows data to be transferred at different rate
182182
* than video timing
183183
* @DPU_INTF_STATUS_SUPPORTED INTF block has INTF_STATUS register
184+
* @DPU_INTF_DATA_COMPRESS INTF block has DATA_COMPRESS register
184185
* @DPU_INTF_MAX
185186
*/
186187
enum {
187188
DPU_INTF_INPUT_CTRL = 0x1,
188189
DPU_INTF_TE,
189190
DPU_DATA_HCTL_EN,
190191
DPU_INTF_STATUS_SUPPORTED,
192+
DPU_INTF_DATA_COMPRESS,
191193
DPU_INTF_MAX
192194
};
193195

0 commit comments

Comments
 (0)