summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/picasso/psp_verstage/printk.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/soc/amd/picasso/psp_verstage/printk.c b/src/soc/amd/picasso/psp_verstage/printk.c
index 2f9d30a29e..a99d8bc35d 100644
--- a/src/soc/amd/picasso/psp_verstage/printk.c
+++ b/src/soc/amd/picasso/psp_verstage/printk.c
@@ -2,12 +2,13 @@
#include <bl_uapp/bl_syscall_public.h>
#include <console/console.h>
+#include <console/cbmem_console.h>
#include <console/streams.h>
#include <stdarg.h>
void console_hw_init(void)
{
- // Nothing to init for svc_debug_print
+ __cbmemc_init();
}
int do_printk(int msg_level, const char *fmt, ...)
@@ -24,14 +25,16 @@ int do_printk(int msg_level, const char *fmt, ...)
int do_vprintk(int msg_level, const char *fmt, va_list args)
{
- int i, log_this;
+ int i, cnt, log_this;
char buf[256];
log_this = console_log_level(msg_level);
if (log_this < CONSOLE_LOG_FAST)
return 0;
- i = vsnprintf(buf, sizeof(buf), fmt, args);
+ cnt = vsnprintf(buf, sizeof(buf), fmt, args);
+ for (i = 0; i < cnt; i++)
+ __cbmemc_tx_byte(buf[i]);
svc_debug_print(buf);
return i;
}