This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a0ff6f9fa6 arch: k210: Add a workaround for clock stabilization
a0ff6f9fa6 is described below

commit a0ff6f9fa682c1168f7f4ddecab6b2ce1d884c55
Author: Masayuki Ishikawa <[email protected]>
AuthorDate: Mon Jun 13 09:44:49 2022 +0900

    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 <[email protected]>
---
 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
 }

Reply via email to