Blame view

arch/mips/Kconfig.debug 5.35 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2

192ef3661   Ralf Baechle   [MIPS] TRACE_IRQF...
3
4
5
  config TRACE_IRQFLAGS_SUPPORT
  	bool
  	default y
4dd92e15b   Ralf Baechle   MIPS: Move EARLY_...
6
  config EARLY_PRINTK
6a108a14f   David Rientjes   kconfig: rename C...
7
  	bool "Early printk" if EXPERT
4dd92e15b   Ralf Baechle   MIPS: Move EARLY_...
8
9
10
11
12
13
14
15
16
17
18
  	depends on SYS_HAS_EARLY_PRINTK
  	default y
  	help
  	  This option enables special console drivers which allow the kernel
  	  to print messages very early in the bootup process.
  
  	  This is useful for kernel debugging when your machine crashes very
  	  early before the console code is initialized. For normal operation,
  	  it is not recommended because it looks ugly on some machines and
  	  doesn't cooperate with an X server. You should normally say N here,
  	  unless you want to debug such a crash.
7cd93b893   Yoichi Yuasa   MIPS: Add 8250/16...
19
  config EARLY_PRINTK_8250
e60865572   Ralf Baechle   MIPS: Fix build e...
20
21
22
  	bool
  	depends on EARLY_PRINTK && USE_GENERIC_EARLY_PRINTK_8250
  	default y
7cd93b893   Yoichi Yuasa   MIPS: Add 8250/16...
23
  	help
e60865572   Ralf Baechle   MIPS: Fix build e...
24
  	  "8250/16550 and compatible serial early printk driver"
7cd93b893   Yoichi Yuasa   MIPS: Add 8250/16...
25
26
  	  If you say Y here, it will be possible to use a 8250/16550 serial
  	  port as the boot console.
e60865572   Ralf Baechle   MIPS: Fix build e...
27
28
  config USE_GENERIC_EARLY_PRINTK_8250
  	bool
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
29
30
  config CMDLINE_BOOL
  	bool "Built-in kernel command line"
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  	help
  	  For most systems, it is firmware or second stage bootloader that
  	  by default specifies the kernel command line options.  However,
  	  it might be necessary or advantageous to either override the
  	  default kernel command line or add a few extra options to it.
  	  For such cases, this option allows you to hardcode your own
  	  command line options directly into the kernel.  For that, you
  	  should choose 'Y' here, and fill in the extra boot arguments
  	  in CONFIG_CMDLINE.
  
  	  The built-in options will be concatenated to the default command
  	  line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
  	  command line will be ignored and replaced by the built-in string.
  
  	  Most MIPS systems will normally expect 'N' here and rely upon
  	  the command line from the firmware or the second-stage bootloader.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
47
48
  config CMDLINE
  	string "Default kernel command string"
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
49
  	depends on CMDLINE_BOOL
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
50
  	help
3e7f9b825   Jan Altenberg   [MIPS] Fix some w...
51
  	  On some platforms, there is currently no way for the boot loader to
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
52
53
54
55
56
57
58
59
60
61
62
  	  pass arguments to the kernel.  For these platforms, and for the cases
  	  when you want to add some extra options to the command line or ignore
  	  the default command line, you can supply some command-line options at
  	  build time by entering them here.  In other cases you can specify
  	  kernel args so that you don't have to set them up in board prom
  	  initialization routines.
  
  	  For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
  	  options.
  
  config CMDLINE_OVERRIDE
6b2aac42b   Masanari Iida   Fix typo in vario...
63
  	bool "Built-in command line overrides firmware arguments"
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
64
65
66
67
68
69
70
  	depends on CMDLINE_BOOL
  	help
  	  By setting this option to 'Y' you will have your kernel ignore
  	  command line arguments from firmware or second stage bootloader.
  	  Instead, the built-in command line will be used exclusively.
  
  	  Normally, you will choose 'N' here.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
71

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
72
73
74
  config SB1XXX_CORELIS
  	bool "Corelis Debugger"
  	depends on SIBYTE_SB1xxx_SOC
3e441845c   Ralf Baechle   MIPS: Sibyte: Fix...
75
  	select DEBUG_INFO if !COMPILE_TEST
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
76
77
78
  	help
  	  Select compile flags that produce code that can be processed by the
  	  Corelis mksym utility and UDB Emulator.
f86a69b15   Wu Zhangjin   MIPS: Make the de...
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  config DEBUG_ZBOOT
  	bool "Enable compressed kernel support debugging"
  	depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
  	default n
  	help
  	  If you want to add compressed kernel support to a new board, and the
  	  board supports uart16550 compatible serial port, please select
  	  SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
  	  debug it.
  
  	  If your board doesn't support uart16550 compatible serial port, you
  	  can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
  	  debug it. for example, add a new serial port support just as
  	  arch/mips/boot/compressed/uart-16550.c does.
  
  	  After the compressed kernel support works, please disable this option
  	  to reduce the kernel image size and speed up the booting procedure a
  	  little.
bba907605   David Daney   MIPS: Crazy spinl...
97
98
99
100
101
102
  config SPINLOCK_TEST
  	bool "Enable spinlock timing tests in debugfs"
  	depends on DEBUG_FS
  	default n
  	help
  	  Add several files to the debugfs to test spinlock speed.
d478b088a   Paul Burton   MIPS: Allow L2 pr...
103
104
105
106
107
108
109
110
111
  config SCACHE_DEBUGFS
  	bool "L2 cache debugfs entries"
  	depends on DEBUG_FS
  	help
  	  Enable this to allow parts of the L2 cache configuration, such as
  	  whether or not prefetching is enabled, to be exposed to userland
  	  via debugfs.
  
  	  If unsure, say N.
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
112
  menuconfig MIPS_CPS_NS16550_BOOL
609cf6f22   Paul Burton   MIPS: CPS: Early ...
113
114
115
116
117
  	bool "CPS SMP NS16550 UART output"
  	depends on MIPS_CPS
  	help
  	  Output debug information via an ns16550 compatible UART if exceptions
  	  occur early in the boot process of a secondary core.
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
118
119
120
121
  if MIPS_CPS_NS16550_BOOL
  
  config MIPS_CPS_NS16550
  	def_bool MIPS_CPS_NS16550_BASE != 0
609cf6f22   Paul Burton   MIPS: CPS: Early ...
122
123
124
125
  
  config MIPS_CPS_NS16550_BASE
  	hex "UART Base Address"
  	default 0x1b0003f8 if MIPS_MALTA
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
126
  	default 0
609cf6f22   Paul Burton   MIPS: CPS: Early ...
127
128
129
  	help
  	  The base address of the ns16550 compatible UART on which to output
  	  debug information from the early stages of core startup.
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
130
  	  This is only used if non-zero.
609cf6f22   Paul Burton   MIPS: CPS: Early ...
131
132
  config MIPS_CPS_NS16550_SHIFT
  	int "UART Register Shift"
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
133
  	default 0
609cf6f22   Paul Burton   MIPS: CPS: Early ...
134
135
136
137
  	help
  	  The number of bits to shift ns16550 register indices by in order to
  	  form their addresses. That is, log base 2 of the span between
  	  adjacent ns16550 registers in the system.
ad42e0a8d   Serge Semin   mips: Add CPS_NS1...
138
139
140
141
142
143
144
145
146
  config MIPS_CPS_NS16550_WIDTH
  	int "UART Register Width"
  	default 1
  	help
  	  ns16550 registers width. UART registers IO access methods will be
  	  selected in accordance with this parameter. By setting it to 1, 2 or
  	  4 UART registers will be accessed by means of lb/sb, lh/sh or lw/sw
  	  instructions respectively. Any value not from that set activates
  	  lb/sb instructions.
7e5e371ee   James Hogan   MIPS: Fix CPS SMP...
147
  endif # MIPS_CPS_NS16550_BOOL