fiq_debugger: Add fiq_debugger.disable option
This change allows to use same kernel image with different console options for uart and fiq_debugger. If fiq_debugger.disable will be set to 1/y/Y, fiq_debugger will not be initialized. Change-Id: I71fda54f5f863d13b1437b1f909e52dd375d002d Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
92c4fc6f09
commit
239dd54388
1 changed files with 6 additions and 0 deletions
|
@ -123,11 +123,13 @@ static bool initial_console_enable;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool fiq_kgdb_enable;
|
static bool fiq_kgdb_enable;
|
||||||
|
static bool fiq_debugger_disable;
|
||||||
|
|
||||||
module_param_named(no_sleep, initial_no_sleep, bool, 0644);
|
module_param_named(no_sleep, initial_no_sleep, bool, 0644);
|
||||||
module_param_named(debug_enable, initial_debug_enable, bool, 0644);
|
module_param_named(debug_enable, initial_debug_enable, bool, 0644);
|
||||||
module_param_named(console_enable, initial_console_enable, bool, 0644);
|
module_param_named(console_enable, initial_console_enable, bool, 0644);
|
||||||
module_param_named(kgdb_enable, fiq_kgdb_enable, bool, 0644);
|
module_param_named(kgdb_enable, fiq_kgdb_enable, bool, 0644);
|
||||||
|
module_param_named(disable, fiq_debugger_disable, bool, 0644);
|
||||||
|
|
||||||
#ifdef CONFIG_FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON
|
#ifdef CONFIG_FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON
|
||||||
static inline
|
static inline
|
||||||
|
@ -1230,6 +1232,10 @@ int fiq_debugger_uart_overlay(void)
|
||||||
|
|
||||||
static int __init fiq_debugger_init(void)
|
static int __init fiq_debugger_init(void)
|
||||||
{
|
{
|
||||||
|
if (fiq_debugger_disable) {
|
||||||
|
pr_err("serial_debugger: disabled\n");
|
||||||
|
return -ENODEV;
|
||||||
|
}
|
||||||
#if defined(CONFIG_FIQ_DEBUGGER_CONSOLE)
|
#if defined(CONFIG_FIQ_DEBUGGER_CONSOLE)
|
||||||
fiq_debugger_tty_init();
|
fiq_debugger_tty_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue