xref: /OK3568_Linux_fs/kernel/drivers/soc/rockchip/fiq_debugger/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config FIQ_DEBUGGER
2	tristate "FIQ Mode Serial Debugger"
3	default n
4	depends on ARM || ARM64
5	help
6	  The FIQ serial debugger can accept commands even when the
7	  kernel is unresponsive due to being stuck with interrupts
8	  disabled.
9
10config FIQ_DEBUGGER_NO_SLEEP
11	bool "Keep serial debugger active"
12	depends on FIQ_DEBUGGER
13	default n
14	help
15	  Enables the serial debugger at boot. Passing
16	  fiq_debugger.no_sleep on the kernel commandline will
17	  override this config option.
18
19config FIQ_DEBUGGER_WAKEUP_IRQ_ALWAYS_ON
20	bool "Don't disable wakeup IRQ when debugger is active"
21	depends on FIQ_DEBUGGER
22	default n
23	help
24	  Don't disable the wakeup irq when enabling the uart clock.  This will
25	  cause extra interrupts, but it makes the serial debugger usable with
26	  on some MSM radio builds that ignore the uart clock request in power
27	  collapse.
28
29config FIQ_DEBUGGER_CONSOLE
30	bool "Console on FIQ Serial Debugger port"
31	depends on FIQ_DEBUGGER
32	default n
33	help
34	  Enables a console so that printk messages are displayed on
35	  the debugger serial port as the occur.
36
37config FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE
38	bool "Put the FIQ debugger into console mode by default"
39	depends on FIQ_DEBUGGER_CONSOLE
40	default n
41	help
42	  If enabled, this puts the fiq debugger into console mode by default.
43	  Otherwise, the fiq debugger will start out in debug mode.
44
45config FIQ_DEBUGGER_TRUST_ZONE
46	bool "Uart FIQ is captured by trust zone, then passed to non-secure world"
47	depends on FIQ_DEBUGGER
48	default n
49	help
50	  It is for ARM v7/V8 arch.
51
52config FIQ_DEBUGGER_UART_OVERLAY
53	bool "Install uart DT overlay"
54	depends on FIQ_DEBUGGER
55	select OF_OVERLAY
56	default n
57	help
58	  If enabled, fiq debugger is calling fiq_debugger_uart_overlay()
59	  that will apply overlay uart_overlay@0 to disable proper uart.
60
61config FIQ_WATCHDOG
62	bool
63	select FIQ_DEBUGGER
64	select PSTORE_RAM
65	default n
66
67config RK_CONSOLE_THREAD
68	bool "Console write by thread"
69	depends on FIQ_DEBUGGER
70	default n
71	help
72	  Normal kernel printk will write out to UART by "kconsole" kthread
73
74config FIQ_DEBUGGER_FIQ_GLUE
75	bool "Uart FIQ is captured by linux"
76	depends on FIQ_DEBUGGER && ARM
77	select FIQ_GLUE
78	default n
79	help
80	  It is for ARM v7 arch without trust zone.
81
82config ROCKCHIP_FIQ_DEBUGGER
83	tristate "Rockchip FIQ Debugger"
84	depends on FIQ_DEBUGGER
85	default FIQ_DEBUGGER
86	help
87	  Say y here to enable Rockchip FIQ Debugger platform driver.
88