summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-11-22 11:17:03 +0800
committerAnson Huang <Anson.Huang@nxp.com>2019-12-13 10:41:23 +0800
commitd5fca8923f5e390e55ed03212e3c9619c083eb3c (patch)
tree0d2e2b2724b3b74d1732d628e22af1e094b33d12 /lib
parentc8c1085323219563401454be45a56b53c8a41d47 (diff)
Add NXP's i.MX8 SoCs system controller console support
NXP's i.MX8 SoCs with system controller inside support outputting debug message to system controller's console via calling SCFW API, since TF-A shares debug console with Linux kernel which will have confliction if Linux kernel and TF-A's console are both enabled, this patch adds support for switching TF-A debug console to system controller to easy TF-A debug. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/putchar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/putchar.c b/lib/libc/putchar.c
index 037e28ac..1f985bc4 100644
--- a/lib/libc/putchar.c
+++ b/lib/libc/putchar.c
@@ -8,6 +8,8 @@
#include <drivers/console.h>
+#pragma weak putchar
+
int putchar(int c)
{
int res;