There is a lots of duplicate calculation for DSC encoder between DSI and DP. Also, with more DSC version it is easier to have a common helper module which handle all the DPU DSC encoder math. This series has only been compile test because there is no DSI DSC V1.1 panel to test it as DSC V1.2 panel is yet to be brough it up. In preparation to post DSC V1.2 over DP, let's handle all common DSI and DP DSC parameters calculation in this new module. Kuogee Hsieh (2): drm/msm/dpu: add dsc helper functions drm/msm/dsi: use new dpu_dsc_populate_dsc_config() drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.c | 209 +++++++++++++++++++++++++ drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.h | 34 ++++ drivers/gpu/drm/msm/dsi/dsi_host.c | 78 ++------- 4 files changed, 256 insertions(+), 66 deletions(-) create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.c create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project