Message ID | 20240926144513.71349-3-v.pavani@samsung.com |
---|---|
State | New |
Headers | show
Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B49AD14F9F3 for <linux-samsung-soc@vger.kernel.org>; Thu, 26 Sep 2024 15:33:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727364837; cv=none; b=h4YQM1XyL79tpAISCeMAwjK/1/m6tmTaJgfA2rlR51s0mDeVWZNN3MSV/j/WZwue674Pzp50qKPtHMI2mtpfAyq2oqi3q2SHFHmEC9Rci5p+7yW/ixPghNVGsUVo1Zascb0W0ppEN9HdgDiz5nUwFnMiGT6y4jF6JGXuJ0f6E6A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727364837; c=relaxed/simple; bh=vBy7OFug84v0/K0Vd+HlF324zw+uJF9x+kHFONfOVqg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=t1jhJ17Xn/xRuIzb5NduhCWiZe4w/pbwHa8/Pgop0kAZQU+ZTsGQ9i9IlM/ROZunSvS60Q0E9Z025X6VqnsqJln+P7u7oNJ9QP+AUCe9xpjZpEnuRPDcQ/mBjB1mn0AHm8NOCLQi7GLI2nlA0EuArhicjCkIMxlE4puxtLDLwKw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=G0gY/3KF; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="G0gY/3KF" Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240926153353epoutp03269db7c7577d99e1d46aef41a23a2ead~41SoOyLrG1729317293epoutp03J for <linux-samsung-soc@vger.kernel.org>; Thu, 26 Sep 2024 15:33:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240926153353epoutp03269db7c7577d99e1d46aef41a23a2ead~41SoOyLrG1729317293epoutp03J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1727364833; bh=sfSiZshNltBPyKbM7f8L8Q015QrPMyWEOljZ3sJgHEM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G0gY/3KF8nTo8NdaGCkvM8DI5uwIH8CSK9gi2PNEeEkrDNIe4TKta9kM2dJ4B/0vD pdcbB4qjOJDba51gitUi3Vpk5sIHVam94uz/DMlItZe4ocNkA2OmxV7rujwMJt6bvr blPtutntFlwKyzkSHfvbx9wVoHFLKieSjgM2ak8M= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20240926153353epcas5p4240c7cc9f029c2ea1399802f17fbb5d2~41SnovrrP1931019310epcas5p4_; Thu, 26 Sep 2024 15:33:53 +0000 (GMT) Received: from epsmgec5p1-new.samsung.com (unknown [182.195.38.176]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4XDyLR6Mqyz4x9Pp; Thu, 26 Sep 2024 15:33:51 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmgec5p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 8A.7E.19863.FDE75F66; Fri, 27 Sep 2024 00:33:51 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20240926144743epcas5p2047d01217bf90d6d52ec97c9b3094c82~40qUQ3poA0768307683epcas5p2s; Thu, 26 Sep 2024 14:47:43 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240926144743epsmtrp18cdee3eada09707edfebfe34e564a663~40qUPXza90487704877epsmtrp1V; Thu, 26 Sep 2024 14:47:43 +0000 (GMT) X-AuditID: b6c32a50-c73ff70000004d97-7c-66f57edfe441 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 16.EF.19367.F0475F66; Thu, 26 Sep 2024 23:47:43 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240926144741epsmtip1a45675997190fef8c60891441d978414~40qSJO4m81883918839epsmtip1x; Thu, 26 Sep 2024 14:47:41 +0000 (GMT) From: Varada Pavani <v.pavani@samsung.com> To: krzk@kernel.org, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, s.nawrocki@samsung.com, cw00.choi@samsung.com, alim.akhtar@samsung.com, mturquette@baylibre.com, sboyd@kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: gost.dev@samsung.com, Varada Pavani <v.pavani@samsung.com>, stable@vger.kernel.org Subject: [PATCH 2/2] clk: samsung: Fixes PLL locktime for PLL142XX used on FSD platfom Date: Thu, 26 Sep 2024 20:15:13 +0530 Message-Id: <20240926144513.71349-3-v.pavani@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240926144513.71349-1-v.pavani@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphk+LIzCtJLcpLzFFi42LZdlhTU/d+3dc0g4sX9S0ezNvGZnFo81Z2 i+tfnrN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X2v5V729657+RNubm6SizF GYmGWsxFxYkAfL4ykswCAAA= X-CMS-MailID: 20240926144743epcas5p2047d01217bf90d6d52ec97c9b3094c82 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240926144743epcas5p2047d01217bf90d6d52ec97c9b3094c82 References: <20240926144513.71349-1-v.pavani@samsung.com> <CGME20240926144743epcas5p2047d01217bf90d6d52ec97c9b3094c82@epcas5p2.samsung.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: <linux-samsung-soc.vger.kernel.org> List-Subscribe: <mailto:linux-samsung-soc+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-samsung-soc+unsubscribe@vger.kernel.org> |
Series |
None
|
expand
|
diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c index 4be879ab917e..d4c5ae20de4f 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -206,6 +206,7 @@ static const struct clk_ops samsung_pll3000_clk_ops = { */ /* Maximum lock time can be 270 * PDIV cycles */ #define PLL35XX_LOCK_FACTOR (270) +#define PLL142XX_LOCK_FACTOR (150) #define PLL35XX_MDIV_MASK (0x3FF) #define PLL35XX_PDIV_MASK (0x3F) @@ -272,7 +273,11 @@ static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, } /* Set PLL lock time. */ - writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR, + if (pll->type == pll_142xx) + writel_relaxed(rate->pdiv * PLL142XX_LOCK_FACTOR, + pll->lock_reg); + else + writel_relaxed(rate->pdiv * PLL35XX_LOCK_FACTOR, pll->lock_reg); /* Change PLL PMS values */
Add PLL locktime for PLL142XX controller. Fixes: 4f346005aaed ("clk: samsung: fsd: Add initial clock support") Cc: stable@vger.kernel.org Signed-off-by: Varada Pavani <v.pavani@samsung.com> --- drivers/clk/samsung/clk-pll.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)