Skip to contentSkip to conversation

clk: altera: n5x: Fix MEMCLKMGR_EXTCNTRST_C0CNTRST to bit(0)

PATCH In review [email protected] 2 participants 2 messages Dec 15, 2023 – Dec 19, 2023 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: altera: n5x: Fix MEMCLKMGR_EXTCNTRST_C0CNTRST to bit(0)

From: Dinesh Maniyam <[email protected]>

MEMCLKMGR_EXTCNTRST_C0CNTRST register defined as BIT[0] in documentation but it is wrongly defined as BIT[7] in u-boot code. This register is used to hold associated pingpong counter in reset
while PLL and 5:1 mux configuration is changed.

---
 drivers/clk/altera/clk-mem-n5x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/altera/clk-mem-n5x.h +2 -2
index 7b687012e8..c6bc44bb34 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
+ * Copyright (C) 2020-2023 Intel Corporation <www.intel.com>
  */
 
 #ifndef	_CLK_MEM_N5X_
@@ -77,7 +77,7 @@
 #define MEMCLKMGR_PLLOUTDIV_C0CNT_MASK			GENMASK(4, 0)
 #define MEMCLKMGR_PLLOUTDIV_C0CNT_OFFSET		0
 
-#define MEMCLKMGR_EXTCNTRST_C0CNTRST			BIT(7)
+#define MEMCLKMGR_EXTCNTRST_C0CNTRST			BIT(0)
 #define MEMCLKMGR_EXTCNTRST_ALLCNTRST			\
 	(MEMCLKMGR_EXTCNTRST_C0CNTRST)
 
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 52 lines

-----Original Message-----
From: Maniyam, Dinesh <[email protected]>
Sent: Friday, December 15, 2023 3:15 PM
To: [email protected]
Cc: Marek <[email protected]>; Simon <[email protected]>; Lukasz Majewski <[email protected]>; Sean Anderson <[email protected]>; Chee, Tien Fong <[email protected]>; Hea, Kok Kiang <[email protected]>; Maniyam, Dinesh <[email protected]>; Ng, Boon Khai <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; Chong, Teik Heng <[email protected]>; Zamri, Muhammad Hazim Izzat <[email protected]>; Lim, Jit Loon <[email protected]>; Tang, Sieu Mun <[email protected]>
Subject: [PATCH] clk: altera: n5x: Fix MEMCLKMGR_EXTCNTRST_C0CNTRST to bit(0)

From: Dinesh Maniyam <[email protected]>

MEMCLKMGR_EXTCNTRST_C0CNTRST register defined as BIT[0] in documentation but it is wrongly defined as BIT[7] in u-boot code. This register is used to hold associated pingpong counter in reset while PLL and 5:1 mux configuration is changed.

---
 drivers/clk/altera/clk-mem-n5x.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/altera/clk-mem- renamed from drivers/clk/altera/clk-mem-n5x.h +0 -0

n5x.h
index 7b687012e8..c6bc44bb34 100644

drivers/clk/altera/clk-mem-n5x.h +2 -3
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2020-2022 Intel Corporation <www.intel.com>
+ * Copyright (C) 2020-2023 Intel Corporation <www.intel.com>
  */
 
 #ifndef	_CLK_MEM_N5X_
@@ -77,7 +77,7 @@
 #define MEMCLKMGR_PLLOUTDIV_C0CNT_MASK
 	GENMASK(4, 0)
 #define MEMCLKMGR_PLLOUTDIV_C0CNT_OFFSET		0
 
-#define MEMCLKMGR_EXTCNTRST_C0CNTRST			BIT(7)
+#define MEMCLKMGR_EXTCNTRST_C0CNTRST			BIT(0)
 #define MEMCLKMGR_EXTCNTRST_ALLCNTRST			\
 	(MEMCLKMGR_EXTCNTRST_C0CNTRST)
 
--
Quoted 1 line

2.26.2

Regards
Tien Fong