disp: msm: dsi: rework DSI PLL to be configured within PHY
Change avoids clock framework APIs to configure the DSI PHY PLL. It follows HW recommendation to set the byte and pclk dividers. Change-Id: I8c110f3997e4ec4c2eaa28778b70091855725ab8 Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "%s: " fmt, __func__
|
||||
@@ -23,9 +23,6 @@ static int dsi_pll_clock_register(struct platform_device *pdev,
|
||||
case DSI_PLL_5NM:
|
||||
rc = dsi_pll_clock_register_5nm(pdev, pll_res);
|
||||
break;
|
||||
case DSI_PLL_10NM:
|
||||
rc = dsi_pll_clock_register_10nm(pdev, pll_res);
|
||||
break;
|
||||
default:
|
||||
rc = -EINVAL;
|
||||
break;
|
||||
@@ -144,14 +141,12 @@ int dsi_pll_init(struct platform_device *pdev, struct dsi_pll_resource **pll)
|
||||
DSI_PLL_INFO(pll_res, "DSI pll label = %s\n", label);
|
||||
|
||||
/**
|
||||
* Currently, Only supports 5nm and 10nm PLL version. Will add
|
||||
* Currently, Only supports 5nm. Will add
|
||||
* support for other versions as needed.
|
||||
*/
|
||||
|
||||
if (!strcmp(label, "dsi_pll_5nm"))
|
||||
pll_res->pll_revision = DSI_PLL_5NM;
|
||||
else if (!strcmp(label, "dsi_pll_10nm"))
|
||||
pll_res->pll_revision = DSI_PLL_10NM;
|
||||
else
|
||||
return -ENOTSUPP;
|
||||
|
||||
|
Reference in New Issue
Block a user