Skip to content
Snippets Groups Projects
Commit 8029f157 authored by Devin Kim's avatar Devin Kim
Browse files

ARM: lge: read the uart console status from cmdline


Bootloader gives kernel the uart console status via cmdline. Kernel
can use it to control the uart console

Change-Id: I85d455e4b0ebe420cc4381f09302fda235c18d3f
Signed-off-by: default avatarDevin Kim <dojip.kim@lge.com>
parent 3612b0c4
No related branches found
No related tags found
No related merge requests found
......@@ -36,4 +36,6 @@ void __init lge_reserve(void);
void __init lge_add_persistent_device(void);
#endif
int lge_uart_console_enabled(void);
#endif
......@@ -28,6 +28,8 @@
#include <mach/lge_handle_panic.h>
#endif
static int uart_console_enabled = 0;
#ifdef CONFIG_PSTORE_RAM
static char bootreason[128] = {0,};
......@@ -140,3 +142,21 @@ int lge_get_board_revno(void)
{
return system_rev;
}
int lge_uart_console_enabled(void)
{
return uart_console_enabled;
}
static int __init uart_console_setup(char *str)
{
if (str && !strncmp(str, "enable", 6))
uart_console_enabled = 1;
pr_info("UART CONSOLE: %s\n",
uart_console_enabled? "enabled" : "disabled");
return 1;
}
__setup("uart_console=", uart_console_setup);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment