android_kernel_xiaomi_sm8350/msm/sde_dsc_helper.h
Abhijit Kulkarni acb8d98e66 disp: msm: use upstream dsc config data
This change enforces dp, dsi and the sde drivers to use the
drm framework defined dsc_config data structure. As a part of this,
it introduces the sde_dsc_helper API to configure the dsc params
and creating a PPS command. Earlier each driver implemented it's
private versions leading to duplication of code. Additionaly the
helper api supports DSC spec 1.2 422 and 420 mode.

Change-Id: I25933fab08cdabbc6787079926885d1a78945e97
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2020-01-22 12:33:24 -08:00

23 lines
559 B
C

// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
*/
#ifndef __SDE_DSC_HELPER_H__
#define __SDE_DSC_HELPER_H__
#include "msm_drv.h"
#define DSC_1_1_PPS_PARAMETER_SET_ELEMENTS 88
int sde_dsc_populate_dsc_config(struct drm_dsc_config *dsc, int scr_ver);
int sde_dsc_populate_dsc_private_params(struct msm_display_dsc_info *dsc_info,
int intf_width);
int sde_dsc_create_pps_buf_cmd(struct msm_display_dsc_info *dsc_info,
char *buf, int pps_id, u32 len);
#endif /* __SDE_DSC_HELPER_H__ */