blob: 7a8d94cdd4934b10fa700c7df25cc6b165ddfa3c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
Ralf Baechle192ef362006-07-07 14:07:18 +01003config TRACE_IRQFLAGS_SUPPORT
4 bool
5 default y
6
Ralf Baechle4dd92e12009-12-17 01:57:30 +00007config EARLY_PRINTK
David Rientjes6a108a12011-01-20 14:44:16 -08008 bool "Early printk" if EXPERT
Ralf Baechle4dd92e12009-12-17 01:57:30 +00009 depends on SYS_HAS_EARLY_PRINTK
10 default y
11 help
12 This option enables special console drivers which allow the kernel
13 to print messages very early in the bootup process.
14
15 This is useful for kernel debugging when your machine crashes very
16 early before the console code is initialized. For normal operation,
17 it is not recommended because it looks ugly on some machines and
18 doesn't cooperate with an X server. You should normally say N here,
19 unless you want to debug such a crash.
20
Yoichi Yuasa7cd93b82010-02-08 20:59:39 +090021config EARLY_PRINTK_8250
Ralf Baechlee6086552014-03-26 21:40:25 +010022 bool
23 depends on EARLY_PRINTK && USE_GENERIC_EARLY_PRINTK_8250
24 default y
Yoichi Yuasa7cd93b82010-02-08 20:59:39 +090025 help
Ralf Baechlee6086552014-03-26 21:40:25 +010026 "8250/16550 and compatible serial early printk driver"
Yoichi Yuasa7cd93b82010-02-08 20:59:39 +090027 If you say Y here, it will be possible to use a 8250/16550 serial
28 port as the boot console.
29
Ralf Baechlee6086552014-03-26 21:40:25 +010030config USE_GENERIC_EARLY_PRINTK_8250
31 bool
32
Dmitri Vorobiev6acc7d42009-11-21 22:34:41 +020033config CMDLINE_BOOL
34 bool "Built-in kernel command line"
Dmitri Vorobiev6acc7d42009-11-21 22:34:41 +020035 help
36 For most systems, it is firmware or second stage bootloader that
37 by default specifies the kernel command line options. However,
38 it might be necessary or advantageous to either override the
39 default kernel command line or add a few extra options to it.
40 For such cases, this option allows you to hardcode your own
41 command line options directly into the kernel. For that, you
42 should choose 'Y' here, and fill in the extra boot arguments
43 in CONFIG_CMDLINE.
44
45 The built-in options will be concatenated to the default command
46 line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
47 command line will be ignored and replaced by the built-in string.
48
49 Most MIPS systems will normally expect 'N' here and rely upon
50 the command line from the firmware or the second-stage bootloader.
51
Linus Torvalds1da177e2005-04-16 15:20:36 -070052config CMDLINE
53 string "Default kernel command string"
Dmitri Vorobiev6acc7d42009-11-21 22:34:41 +020054 depends on CMDLINE_BOOL
Linus Torvalds1da177e2005-04-16 15:20:36 -070055 help
Jan Altenberg3e7f9b822007-01-25 20:46:14 +010056 On some platforms, there is currently no way for the boot loader to
Dmitri Vorobiev6acc7d42009-11-21 22:34:41 +020057 pass arguments to the kernel. For these platforms, and for the cases
58 when you want to add some extra options to the command line or ignore
59 the default command line, you can supply some command-line options at
60 build time by entering them here. In other cases you can specify
61 kernel args so that you don't have to set them up in board prom
62 initialization routines.
63
64 For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
65 options.
66
67config CMDLINE_OVERRIDE
Masanari Iida6b2aac42012-04-14 00:14:11 +090068 bool "Built-in command line overrides firmware arguments"
Dmitri Vorobiev6acc7d42009-11-21 22:34:41 +020069 depends on CMDLINE_BOOL
70 help
71 By setting this option to 'Y' you will have your kernel ignore
72 command line arguments from firmware or second stage bootloader.
73 Instead, the built-in command line will be used exclusively.
74
75 Normally, you will choose 'N' here.
Linus Torvalds1da177e2005-04-16 15:20:36 -070076
Linus Torvalds1da177e2005-04-16 15:20:36 -070077config SB1XXX_CORELIS
78 bool "Corelis Debugger"
79 depends on SIBYTE_SB1xxx_SOC
Ralf Baechle3e441842017-04-21 03:28:18 +020080 select DEBUG_INFO if !COMPILE_TEST
Linus Torvalds1da177e2005-04-16 15:20:36 -070081 help
82 Select compile flags that produce code that can be processed by the
83 Corelis mksym utility and UDB Emulator.
84
Wu Zhangjinf86a69b2010-01-31 20:39:40 +080085config DEBUG_ZBOOT
86 bool "Enable compressed kernel support debugging"
87 depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
88 default n
89 help
90 If you want to add compressed kernel support to a new board, and the
91 board supports uart16550 compatible serial port, please select
92 SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
93 debug it.
94
95 If your board doesn't support uart16550 compatible serial port, you
96 can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
97 debug it. for example, add a new serial port support just as
98 arch/mips/boot/compressed/uart-16550.c does.
99
100 After the compressed kernel support works, please disable this option
101 to reduce the kernel image size and speed up the booting procedure a
102 little.
103
David Daneybba90762010-02-16 15:26:35 -0800104config SPINLOCK_TEST
105 bool "Enable spinlock timing tests in debugfs"
106 depends on DEBUG_FS
107 default n
108 help
109 Add several files to the debugfs to test spinlock speed.
110
Paul Burtond478b082015-09-22 10:10:56 -0700111config SCACHE_DEBUGFS
112 bool "L2 cache debugfs entries"
113 depends on DEBUG_FS
114 help
115 Enable this to allow parts of the L2 cache configuration, such as
116 whether or not prefetching is enabled, to be exposed to userland
117 via debugfs.
118
119 If unsure, say N.
120
James Hogan7e5e3712017-11-21 00:02:40 +0000121menuconfig MIPS_CPS_NS16550_BOOL
Paul Burton609cf6f2015-09-22 11:12:11 -0700122 bool "CPS SMP NS16550 UART output"
123 depends on MIPS_CPS
124 help
125 Output debug information via an ns16550 compatible UART if exceptions
126 occur early in the boot process of a secondary core.
127
James Hogan7e5e3712017-11-21 00:02:40 +0000128if MIPS_CPS_NS16550_BOOL
129
130config MIPS_CPS_NS16550
131 def_bool MIPS_CPS_NS16550_BASE != 0
Paul Burton609cf6f2015-09-22 11:12:11 -0700132
133config MIPS_CPS_NS16550_BASE
134 hex "UART Base Address"
135 default 0x1b0003f8 if MIPS_MALTA
James Hogan7e5e3712017-11-21 00:02:40 +0000136 default 0
Paul Burton609cf6f2015-09-22 11:12:11 -0700137 help
138 The base address of the ns16550 compatible UART on which to output
139 debug information from the early stages of core startup.
140
James Hogan7e5e3712017-11-21 00:02:40 +0000141 This is only used if non-zero.
142
Paul Burton609cf6f2015-09-22 11:12:11 -0700143config MIPS_CPS_NS16550_SHIFT
144 int "UART Register Shift"
James Hogan7e5e3712017-11-21 00:02:40 +0000145 default 0
Paul Burton609cf6f2015-09-22 11:12:11 -0700146 help
147 The number of bits to shift ns16550 register indices by in order to
148 form their addresses. That is, log base 2 of the span between
149 adjacent ns16550 registers in the system.
150
Serge Seminad42e0a2020-05-21 17:07:19 +0300151config MIPS_CPS_NS16550_WIDTH
152 int "UART Register Width"
153 default 1
154 help
155 ns16550 registers width. UART registers IO access methods will be
156 selected in accordance with this parameter. By setting it to 1, 2 or
157 4 UART registers will be accessed by means of lb/sb, lh/sh or lw/sw
158 instructions respectively. Any value not from that set activates
159 lb/sb instructions.
160
James Hogan7e5e3712017-11-21 00:02:40 +0000161endif # MIPS_CPS_NS16550_BOOL