Commit aff8ee1e authored by Santosh Shilimkar's avatar Santosh Shilimkar

OMAP: Add printk and correct LL debug

Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
parent e07cccf4
...@@ -197,9 +197,8 @@ CONFIG_OMAP_MCBSP=y ...@@ -197,9 +197,8 @@ CONFIG_OMAP_MCBSP=y
CONFIG_OMAP_32K_TIMER=y CONFIG_OMAP_32K_TIMER=y
CONFIG_OMAP_32K_TIMER_HZ=128 CONFIG_OMAP_32K_TIMER_HZ=128
CONFIG_OMAP_DM_TIMER=y CONFIG_OMAP_DM_TIMER=y
# CONFIG_OMAP_LL_DEBUG_UART1 is not set
# CONFIG_OMAP_LL_DEBUG_UART2 is not set # CONFIG_OMAP_LL_DEBUG_UART2 is not set
CONFIG_OMAP_LL_DEBUG_UART3=y CONFIG_OMAP_LL_DEBUG_UART1=y
CONFIG_OMAP_SERIAL_WAKE=y CONFIG_OMAP_SERIAL_WAKE=y
CONFIG_ARCH_OMAP34XX=y CONFIG_ARCH_OMAP34XX=y
CONFIG_ARCH_OMAP3430=y CONFIG_ARCH_OMAP3430=y
...@@ -1931,7 +1930,7 @@ CONFIG_HAVE_ARCH_KGDB=y ...@@ -1931,7 +1930,7 @@ CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_DEBUG_USER is not set # CONFIG_DEBUG_USER is not set
# CONFIG_DEBUG_ERRORS is not set # CONFIG_DEBUG_ERRORS is not set
# CONFIG_DEBUG_STACK_USAGE is not set # CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_LL is not set CONFIG_DEBUG_LL=y
# #
# Security options # Security options
......
...@@ -45,6 +45,10 @@ void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...) ...@@ -45,6 +45,10 @@ void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
#define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT) #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
#ifdef CONFIG_DEBUG_LL
extern void printascii(char *);
#endif
/* printk's without a loglevel use this.. */ /* printk's without a loglevel use this.. */
#define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */ #define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
...@@ -686,6 +690,9 @@ asmlinkage int vprintk(const char *fmt, va_list args) ...@@ -686,6 +690,9 @@ asmlinkage int vprintk(const char *fmt, va_list args)
printed_len += vscnprintf(printk_buf + printed_len, printed_len += vscnprintf(printk_buf + printed_len,
sizeof(printk_buf) - printed_len, fmt, args); sizeof(printk_buf) - printed_len, fmt, args);
#ifdef CONFIG_DEBUG_LL
printascii(printk_buf);
#endif
p = printk_buf; p = printk_buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment