disp: msm: dsi: add support for spr enable from panel config
This change parses SPR enable entry from panel device tree and populates SPR specific information in panel data structure. Valid entry of SPR pack type is treated as panel requirement to enable SPR for specified pack type from source end. This change also populate connector capabilities blob with SPR pack type. Change-Id: I9d9ab8a990476fba281e12890bf3f7b17a174d79 Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
This commit is contained in:
@@ -231,6 +231,32 @@ enum msm_display_compression_type {
|
||||
#define MSM_DISPLAY_COMPRESSION_RATIO_NONE 1
|
||||
#define MSM_DISPLAY_COMPRESSION_RATIO_MAX 5
|
||||
|
||||
/**
|
||||
* enum msm_display_spr_pack_type - sub pixel rendering pack patterns supported
|
||||
* @MSM_DISPLAY_SPR_TYPE_NONE: Bypass, no special packing
|
||||
* @MSM_DISPLAY_SPR_TYPE_PENTILE: pentile pack pattern
|
||||
* @MSM_DISPLAY_SPR_TYPE_RGBW: RGBW pack pattern
|
||||
* @MSM_DISPLAY_SPR_TYPE_YYGM: YYGM pack pattern
|
||||
* @MSM_DISPLAY_SPR_TYPE_YYGW: YYGW pack patterm
|
||||
* @MSM_DISPLAY_SPR_TYPE_MAX: max and invalid
|
||||
*/
|
||||
enum msm_display_spr_pack_type {
|
||||
MSM_DISPLAY_SPR_TYPE_NONE,
|
||||
MSM_DISPLAY_SPR_TYPE_PENTILE,
|
||||
MSM_DISPLAY_SPR_TYPE_RGBW,
|
||||
MSM_DISPLAY_SPR_TYPE_YYGM,
|
||||
MSM_DISPLAY_SPR_TYPE_YYGW,
|
||||
MSM_DISPLAY_SPR_TYPE_MAX
|
||||
};
|
||||
|
||||
static const char *msm_spr_pack_type_str[MSM_DISPLAY_SPR_TYPE_MAX] = {
|
||||
[MSM_DISPLAY_SPR_TYPE_NONE] = "",
|
||||
[MSM_DISPLAY_SPR_TYPE_PENTILE] = "pentile",
|
||||
[MSM_DISPLAY_SPR_TYPE_RGBW] = "rgbw",
|
||||
[MSM_DISPLAY_SPR_TYPE_YYGM] = "yygm",
|
||||
[MSM_DISPLAY_SPR_TYPE_YYGW] = "yygw"
|
||||
};
|
||||
|
||||
/**
|
||||
* enum msm_display_caps - features/capabilities supported by displays
|
||||
* @MSM_DISPLAY_CAP_VID_MODE: Video or "active" mode supported
|
||||
|
Viittaa uudesa ongelmassa
Block a user