techpack: display: Read mi dsc panel id
Change-Id: I19de530a4e37eb32137fddb5877162e0b6882e9b
This commit is contained in:
parent
a48ba78367
commit
c30070f9c7
@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: MIT
|
||||
* Copyright (C) 2018 Intel Corp.
|
||||
* Copyright (C) 2021 XiaoMi, Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Manasi Navare <manasi.d.navare@intel.com>
|
||||
@ -246,6 +247,10 @@ struct drm_dsc_config {
|
||||
* @dsc_version_major: DSC major version
|
||||
*/
|
||||
u8 dsc_version_major;
|
||||
/**
|
||||
* @dsc_panel_id: panel vendor
|
||||
*/
|
||||
u64 dsc_panel_id;
|
||||
/**
|
||||
* @native_422: True if Native 4:2:2 supported, else false
|
||||
*/
|
||||
|
@ -2771,6 +2771,14 @@ static int dsi_panel_parse_dsc_params(struct dsi_display_mode *mode,
|
||||
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);
|
||||
if (rc) {
|
||||
priv_info->dsc.config.dsc_version_major = 0x1;
|
||||
|
Loading…
Reference in New Issue
Block a user