[PATCH] power: imx8m-power-domain: Add delay to align with kernel driver

Fabio Estevam festevam at gmail.com
Sat May 6 18:14:02 CEST 2023

From: Fabio Estevam <festevam at denx.de>

In the imx8m power domain kernel driver, there is an extra udelay(5)
prior to requesting the domain to power up:


Haven't observed any issues due to the lack of this delay in U-Boot yet,
but better to align it with the kernel driver implementation.

Signed-off-by: Fabio Estevam <festevam at denx.de>
Reviewed-by: Marek Vasut <marex at denx.de>
Changes since RFC:
- Added Marek's Reviewed-by tag.

 drivers/power/domain/imx8m-power-domain.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index 145f6ec0cd32..df5d7d695621 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -338,6 +338,9 @@ static int imx8m_power_domain_on(struct power_domain *power_domain)
+	/* delay for reset to propagate */
+	udelay(5);
 	if (domain->bits.pxx) {
 		/* request the domain to power up */
 		setbits_le32(base + regs->pup, domain->bits.pxx);

More information about the U-Boot mailing list