From 92a699155c16153549d953dced9b156ec0c77906 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 26 Aug 2020 15:48:06 +0300 Subject: [PATCH] soc: intel_apl_adsp: Tweak adsp initialization Tweak ADSP initialization to catch early console output. Signed-off-by: Andrei Emeltchenko --- soc/xtensa/intel_apl_adsp/adsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/soc/xtensa/intel_apl_adsp/adsp.c b/soc/xtensa/intel_apl_adsp/adsp.c index 9220fe691c1..33f1fd78572 100644 --- a/soc/xtensa/intel_apl_adsp/adsp.c +++ b/soc/xtensa/intel_apl_adsp/adsp.c @@ -123,4 +123,5 @@ static int adsp_init(const struct device *dev) return 0; } -SYS_INIT(adsp_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); +/* Init after IPM initialization and before logging (uses memory windows) */ +SYS_INIT(adsp_init, PRE_KERNEL_2, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);