stm32mp1: keep console during runtime
authorYann Gautier <[email protected]>
Wed, 24 Apr 2019 14:14:22 +0000 (16:14 +0200)
committerYann Gautier <[email protected]>
Mon, 2 Sep 2019 15:52:53 +0000 (17:52 +0200)
The runtime console is only kept in DEBUG configuration.

Change-Id: I0447dfcacb9a63a12bcdab7c55584d70c3220e5b
Signed-off-by: Yann Gautier <[email protected]>
plat/st/stm32mp1/sp_min/sp_min_setup.c

index e54249f7441f7ddce8f7b284ae35c30034e68846..417115b6540e52496d550f281c520500e8c17bac 100644 (file)
@@ -134,6 +134,11 @@ void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
                    0) {
                        panic();
                }
+
+#ifdef DEBUG
+               console_set_scope(&console.console,
+                                 CONSOLE_FLAG_BOOT | CONSOLE_FLAG_RUNTIME);
+#endif
        }
 }