From 48a84911acf6b24df50ddecc8e70c1f666bcd4a8 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Tue, 11 Jun 2024 13:23:00 -0700 Subject: [PATCH] soc/mtk_adsp: Add default console hook Wire the default printk output to the console at boot, just to be sure we have stdio output good enough to get tests to pass. Signed-off-by: Andy Ross --- soc/mediatek/mtk_adsp/soc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/mediatek/mtk_adsp/soc.c b/soc/mediatek/mtk_adsp/soc.c index a94d5bbc556..83e8de52344 100644 --- a/soc/mediatek/mtk_adsp/soc.c +++ b/soc/mediatek/mtk_adsp/soc.c @@ -3,6 +3,7 @@ */ #include +#include #include #include @@ -171,5 +172,8 @@ void c_boot(void) val = 0xffffffff; __asm__ volatile("wsr %0, INTCLEAR" :: "r"(val)); + /* Default console, a driver can override this later */ + __stdout_hook_install(arch_printk_char_out); + z_prep_c(); }