[PATCH 2/4] bsps/riscv: UART - Use clock synthesizer only for ns16750

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Sun Mar 31 14:33:29 UTC 2019


---
 bsps/riscv/riscv/console/console-config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bsps/riscv/riscv/console/console-config.c b/bsps/riscv/riscv/console/console-config.c
index 315287c3ed..04d0b28361 100644
--- a/bsps/riscv/riscv/console/console-config.c
+++ b/bsps/riscv/riscv/console/console-config.c
@@ -165,6 +165,10 @@ static void riscv_console_probe(void)
         ctx->set_reg = riscv_console_set_reg_8;
       }
 
+      if (RISCV_CONSOLE_IS_COMPATIBLE(compat, compat_len, "ns16750")) {
+        ctx->has_precision_clock_synthesizer = true;
+      }
+
       ctx->port = (uintptr_t) riscv_fdt_get_address(fdt, node);
 
       if (ctx->port == 0) {
-- 
2.17.1




More information about the devel mailing list