From 110909494f8eeae7470321399978c25d9e3af554 Mon Sep 17 00:00:00 2001 From: Patrick Yavitz Date: Mon, 13 May 2024 17:45:57 -0400 Subject: [PATCH] mach-sunxi: dram_helpers: add delay to steady dram detection Signed-off-by: Patrick Yavitz --- arch/arm/mach-sunxi/dram_helpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-sunxi/dram_helpers.c b/arch/arm/mach-sunxi/dram_helpers.c index 83dbe4ca98..df7845502d 100644 --- a/arch/arm/mach-sunxi/dram_helpers.c +++ b/arch/arm/mach-sunxi/dram_helpers.c @@ -11,6 +11,7 @@ #include #include #include +#include /* * Wait up to 1s for value to be set in given part of reg. @@ -45,6 +46,7 @@ bool mctl_mem_matches_base(u32 offset, ulong base) writel(0, base); writel(0xaa55aa55, base + offset); dsb(); + udelay(150); /* Check if the same value is actually observed when reading back */ ret = readl(base) == readl(base + offset); -- 2.39.2