Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/dsc: Adding the new registers for DSC

Adding new DSC register which are introducted MTL onwards

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Vandita Kulkarni <Vandita.kulkarni@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309062855.393087-4-suraj.kandpal@intel.com

authored by

Suraj Kandpal and committed by
Uma Shankar
ac754358 5011f291

+28
+28
drivers/gpu/drm/i915/display/intel_vdsc_regs.h
··· 46 46 _ICL_PIPE_DSS_CTL2_PB, \ 47 47 _ICL_PIPE_DSS_CTL2_PC) 48 48 49 + /* MTL Display Stream Compression registers */ 50 + #define _MTL_DSC0_PICTURE_PARAMETER_SET_17_PB 0x782B4 51 + #define _MTL_DSC1_PICTURE_PARAMETER_SET_17_PB 0x783B4 52 + #define _MTL_DSC0_PICTURE_PARAMETER_SET_17_PC 0x784B4 53 + #define _MTL_DSC1_PICTURE_PARAMETER_SET_17_PC 0x785B4 54 + #define MTL_DSC0_PICTURE_PARAMETER_SET_17(pipe) _MMIO_PIPE((pipe) - PIPE_B, \ 55 + _MTL_DSC0_PICTURE_PARAMETER_SET_17_PB, \ 56 + _MTL_DSC0_PICTURE_PARAMETER_SET_17_PC) 57 + #define MTL_DSC1_PICTURE_PARAMETER_SET_17(pipe) _MMIO_PIPE((pipe) - PIPE_B, \ 58 + _MTL_DSC1_PICTURE_PARAMETER_SET_17_PB, \ 59 + _MTL_DSC1_PICTURE_PARAMETER_SET_17_PC) 60 + #define DSC_SL_BPG_OFFSET(offset) ((offset) << 27) 61 + 62 + #define _MTL_DSC0_PICTURE_PARAMETER_SET_18_PB 0x782B8 63 + #define _MTL_DSC1_PICTURE_PARAMETER_SET_18_PB 0x783B8 64 + #define _MTL_DSC0_PICTURE_PARAMETER_SET_18_PC 0x784B8 65 + #define _MTL_DSC1_PICTURE_PARAMETER_SET_18_PC 0x785B8 66 + #define MTL_DSC0_PICTURE_PARAMETER_SET_18(pipe) _MMIO_PIPE((pipe) - PIPE_B, \ 67 + _MTL_DSC0_PICTURE_PARAMETER_SET_18_PB, \ 68 + _MTL_DSC0_PICTURE_PARAMETER_SET_18_PC) 69 + #define MTL_DSC1_PICTURE_PARAMETER_SET_18(pipe) _MMIO_PIPE((pipe) - PIPE_B, \ 70 + _MTL_DSC1_PICTURE_PARAMETER_SET_18_PB, \ 71 + _MTL_DSC1_PICTURE_PARAMETER_SET_18_PC) 72 + #define DSC_NSL_BPG_OFFSET(offset) ((offset) << 16) 73 + #define DSC_SL_OFFSET_ADJ(offset) ((offset) << 0) 74 + 49 75 /* Icelake Display Stream Compression Registers */ 50 76 #define DSCA_PICTURE_PARAMETER_SET_0 _MMIO(0x6B200) 51 77 #define DSCC_PICTURE_PARAMETER_SET_0 _MMIO(0x6BA00) ··· 85 59 #define ICL_DSC1_PICTURE_PARAMETER_SET_0(pipe) _MMIO_PIPE((pipe) - PIPE_B, \ 86 60 _ICL_DSC1_PICTURE_PARAMETER_SET_0_PB, \ 87 61 _ICL_DSC1_PICTURE_PARAMETER_SET_0_PC) 62 + #define DSC_NATIVE_422_ENABLE BIT(23) 63 + #define DSC_NATIVE_420_ENABLE BIT(22) 88 64 #define DSC_ALT_ICH_SEL (1 << 20) 89 65 #define DSC_VBR_ENABLE (1 << 19) 90 66 #define DSC_422_ENABLE (1 << 18)