techpack: display: Read mi dsc panel id

Change-Id: I19de530a4e37eb32137fddb5877162e0b6882e9b
This commit is contained in:
Arian 2022-01-08 17:39:52 +00:00 committed by Giovanni Ricca
parent a48ba78367
commit c30070f9c7
No known key found for this signature in database
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/* SPDX-License-Identifier: MIT /* SPDX-License-Identifier: MIT
* Copyright (C) 2018 Intel Corp. * Copyright (C) 2018 Intel Corp.
* Copyright (C) 2021 XiaoMi, Inc.
* *
* Authors: * Authors:
* Manasi Navare <manasi.d.navare@intel.com> * Manasi Navare <manasi.d.navare@intel.com>
@ -246,6 +247,10 @@ struct drm_dsc_config {
* @dsc_version_major: DSC major version * @dsc_version_major: DSC major version
*/ */
u8 dsc_version_major; u8 dsc_version_major;
/**
* @dsc_panel_id: panel vendor
*/
u64 dsc_panel_id;
/** /**
* @native_422: True if Native 4:2:2 supported, else false * @native_422: True if Native 4:2:2 supported, else false
*/ */

View File

@ -2771,6 +2771,14 @@ static int dsi_panel_parse_dsc_params(struct dsi_display_mode *mode,
return 0; return 0;
} }
rc = utils->read_u64(utils->data, "mi,mdss-dsc-panel-id", &priv_info->dsc.config.dsc_panel_id);
if (rc) {
priv_info->dsc.config.dsc_panel_id = 0;
DSI_DEBUG("mi,mdss-dsc-panel-id not specified\n");
} else {
DSI_DEBUG("mi,mdss-dsc-panel-id is 0x%llx\n", priv_info->dsc.config.dsc_panel_id);
}
rc = utils->read_u32(utils->data, "qcom,mdss-dsc-version", &data); rc = utils->read_u32(utils->data, "qcom,mdss-dsc-version", &data);
if (rc) { if (rc) {
priv_info->dsc.config.dsc_version_major = 0x1; priv_info->dsc.config.dsc_version_major = 0x1;