Skip to content

Commit 48a8491

Browse files
andyrosskartben
authored andcommitted
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 <[email protected]>
1 parent f7c10ac commit 48a8491

File tree

1 file changed

+4
-0
lines changed
  • soc/mediatek/mtk_adsp

1 file changed

+4
-0
lines changed

soc/mediatek/mtk_adsp/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*/
44

55
#include <zephyr/devicetree.h>
6+
#include <zephyr/sys/libc-hooks.h>
67
#include <string.h>
78
#include <kernel_internal.h>
89

@@ -171,5 +172,8 @@ void c_boot(void)
171172
val = 0xffffffff;
172173
__asm__ volatile("wsr %0, INTCLEAR" :: "r"(val));
173174

175+
/* Default console, a driver can override this later */
176+
__stdout_hook_install(arch_printk_char_out);
177+
174178
z_prep_c();
175179
}

0 commit comments

Comments
 (0)