disp: msm: dp: init DP catalog for kalama

DP PHY version is changed for kalama. This change
initializes the catalog structure for this new
version.

Change-Id: Ib89293cb874c61c6276f49573266822570e715bb
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
This commit is contained in:
Sandeep Gangadharaiah
2022-01-14 13:34:07 -05:00
parent 522177a45c
commit 135e318102
2 changed files with 9 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/ */
@@ -2812,18 +2813,12 @@ static int dp_catalog_init(struct device *dev, struct dp_catalog *dp_catalog,
struct dp_catalog_private *catalog = container_of(dp_catalog, struct dp_catalog_private *catalog = container_of(dp_catalog,
struct dp_catalog_private, dp_catalog); struct dp_catalog_private, dp_catalog);
switch (parser->hw_cfg.phy_version) { if (parser->hw_cfg.phy_version >= DP_PHY_VERSION_4_2_0)
case DP_PHY_VERSION_4_2_0: dp_catalog->sub = dp_catalog_get_v420(dev, dp_catalog, &catalog->io);
dp_catalog->sub = dp_catalog_get_v420(dev, dp_catalog, else if (parser->hw_cfg.phy_version == DP_PHY_VERSION_2_0_0)
&catalog->io); dp_catalog->sub = dp_catalog_get_v200(dev, dp_catalog, &catalog->io);
break; else
case DP_PHY_VERSION_2_0_0:
dp_catalog->sub = dp_catalog_get_v200(dev, dp_catalog,
&catalog->io);
break;
default:
goto end; goto end;
}
if (IS_ERR(dp_catalog->sub)) { if (IS_ERR(dp_catalog->sub)) {
rc = PTR_ERR(dp_catalog->sub); rc = PTR_ERR(dp_catalog->sub);

View File

@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
*/ */
@@ -131,12 +132,14 @@ enum dp_phy_aux_config_type {
* enum dp_phy_version - version of the dp phy * enum dp_phy_version - version of the dp phy
* @DP_PHY_VERSION_UNKNOWN: Unknown controller version * @DP_PHY_VERSION_UNKNOWN: Unknown controller version
* @DP_PHY_VERSION_4_2_0: DP phy v4.2.0 controller * @DP_PHY_VERSION_4_2_0: DP phy v4.2.0 controller
* @DP_PHY_VERSION_6_0_0: DP phy v6.0.0 controller
* @DP_PHY_VERSION_MAX: max version * @DP_PHY_VERSION_MAX: max version
*/ */
enum dp_phy_version { enum dp_phy_version {
DP_PHY_VERSION_UNKNOWN, DP_PHY_VERSION_UNKNOWN,
DP_PHY_VERSION_2_0_0 = 0x200, DP_PHY_VERSION_2_0_0 = 0x200,
DP_PHY_VERSION_4_2_0 = 0x420, DP_PHY_VERSION_4_2_0 = 0x420,
DP_PHY_VERSION_6_0_0 = 0x600,
DP_PHY_VERSION_MAX DP_PHY_VERSION_MAX
}; };