Skip to contentSkip to conversation

board: zynqmp: Remove 1 second delay in psu_uboot_init

PATCH Applied Mike Looijmans 2 participants 2 messages Oct 21 – Nov 3 1 message not in the archive Arm/Zynq architecture

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.1317d009-0e43-4329-a100-1e7fd66855c7@emailsignatures365.codetwo.com

#1 lore raw

PATCH 1/1 board: zynqmp: Remove 1 second delay in psu_uboot_init

There's a 1 second udelay call in psu_uboot_init that supposedly waits for clock propagation. It was likely added somewhere in history as a workaround, but testing shows that it isn't needed at all.

The psu_init routines internally check and wait for a PLL lock already.

---

 board/xilinx/zynqmp/zynqmp.c | 3 ---
 1 file changed, 3 deletions(-)
board/xilinx/zynqmp/zynqmp.c +0 -3
index c7464b493c5..0fe0c34df67 100644
@@ -81,9 +81,6 @@ int __maybe_unused psu_uboot_init(void)
 	writel(ZYNQMP_CCI_REG_CCI_MISC_CTRL_NIDEN,
 	       ZYNQMP_CCI_REG_CCI_MISC_CTRL);
 
-	/* Delay is required for clocks to be propagated */
-	udelay(1000000);
-	
 	return 0;
 }
 

---
base-commit: 62c9805d8d57cad407f0295879cc9a6182da464a
branch: zynqmp-init-no-delay

Signature · 18 lines
2.43.0


Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands

T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl

Please consider the environment before printing this e-mail
maintainer Applied
#2 lore raw
Quoted 28 lines · Mike Looijmans

There's a 1 second udelay call in psu_uboot_init that supposedly waits for clock propagation. It was likely added somewhere in history as a workaround, but testing shows that it isn't needed at all.

The psu_init routines internally check and wait for a PLL lock already.

---

  board/xilinx/zynqmp/zynqmp.c | 3 ---
  1 file changed, 3 deletions(-)
board/xilinx/zynqmp/zynqmp.c +0 -4
index c7464b493c5..0fe0c34df67 100644
@@ -81,9 +81,6 @@ int __maybe_unused psu_uboot_init(void)
  	writel(ZYNQMP_CCI_REG_CCI_MISC_CTRL_NIDEN,
  	       ZYNQMP_CCI_REG_CCI_MISC_CTRL);
 
-	/* Delay is required for clocks to be propagated */
-	udelay(1000000);
-	
  	return 0;
  }
 
---
Quoted 3 lines

base-commit: 62c9805d8d57cad407f0295879cc9a6182da464a
branch: zynqmp-init-no-delay

Applied.
M