From a0ff6f9fa682c1168f7f4ddecab6b2ce1d884c55 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Mon, 13 Jun 2022 09:44:49 +0900 Subject: [PATCH] arch: k210: Add a workaround for clock stabilization Summary: - I noticed that sometimes uart shows nothing on the maix-bit board. - This commit adds a workaround to avoid such the issue Impact: - k210 only Testing: - Tested with maix-bit Signed-off-by: Masayuki Ishikawa --- arch/risc-v/src/k210/k210_clockconfig.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/risc-v/src/k210/k210_clockconfig.c b/arch/risc-v/src/k210/k210_clockconfig.c index 3da5b18fb9..5317e24d7e 100644 --- a/arch/risc-v/src/k210/k210_clockconfig.c +++ b/arch/risc-v/src/k210/k210_clockconfig.c @@ -105,5 +105,9 @@ void k210_clockconfig(void) g_cpu_clock = OSC_FREQ; } + + /* Workaround for stabilization */ + + up_udelay(1); #endif }