3 source "lib/Kconfig.debug"
6 bool "Filter access to /dev/mem"
9 If this option is disabled, you allow userspace (root) access to all
10 of memory, including kernel and userspace memory. Accidental
11 access to this is obviously disastrous, but specific access can
12 be used by people debugging the kernel.
14 If this option is switched on, the /dev/mem file only allows
15 userspace access to memory mapped peripherals.
19 # RMK wants arm kernels compiled with frame pointers or stack unwinding.
20 # If you know what you are doing and are willing to live without stack
21 # traces, you can get a slightly smaller kernel by setting this option to
22 # n, but then RMK will have to kill you ;).
25 depends on !THUMB2_KERNEL
26 default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER
28 If you say N here, the resulting kernel will be slightly smaller and
29 faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled,
30 when a problem occurs with the kernel, the information that is
31 reported is severely limited.
34 bool "Enable stack unwinding support (EXPERIMENTAL)"
38 This option enables stack unwinding support in the kernel
39 using the information automatically generated by the
40 compiler. The resulting kernel image is slightly bigger but
41 the performance is not affected. Currently, this feature
42 only works with EABI compilers. If unsure say Y.
46 depends on FUNCTION_TRACER && FRAME_POINTER
50 bool "Verbose user fault messages"
52 When a user program crashes due to an exception, the kernel can
53 print a brief message explaining what the problem was. This is
54 sometimes helpful for debugging but serves no purpose on a
55 production system. Most people should say N here.
57 In addition, you need to pass user_debug=N on the kernel command
58 line to enable this feature. N consists of the sum of:
60 1 - undefined instruction events
62 4 - invalid data aborts
66 # These options are only for real kernel hackers who want to get their hands dirty.
68 bool "Kernel low-level debugging functions (read help!)"
69 depends on DEBUG_KERNEL
71 Say Y here to include definitions of printascii, printch, printhex
72 in the kernel. This is helpful if you are debugging code that
73 executes before the console is initialized.
75 Note that selecting this option will limit the kernel to a single
76 UART definition, as specified below. Attempting to boot the kernel
77 image on a different platform *will not work*, so this option should
78 not be enabled for kernels that are intended to be portable.
81 prompt "Kernel low-level debugging port"
84 config AT91_DEBUG_LL_DBGU0
85 bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10 and 9rl"
86 depends on HAVE_AT91_DBGU0
88 config AT91_DEBUG_LL_DBGU1
89 bool "Kernel low-level debugging on 9263 and 9g45"
90 depends on HAVE_AT91_DBGU1
93 bool "Kernel low-level debugging on BCM2835 PL011 UART"
94 depends on ARCH_BCM2835
95 select DEBUG_UART_PL01X
97 config DEBUG_BERLIN_UART
98 bool "Marvell Berlin SoC Debug UART"
99 depends on ARCH_BERLIN
100 select DEBUG_UART_8250
102 Say Y here if you want kernel low-level debugging support
103 on Marvell Berlin SoC based platforms.
105 config DEBUG_CLPS711X_UART1
106 bool "Kernel low-level debugging messages via UART1"
107 depends on ARCH_CLPS711X
109 Say Y here if you want the debug print routines to direct
110 their output to the first serial port on these devices.
112 config DEBUG_CLPS711X_UART2
113 bool "Kernel low-level debugging messages via UART2"
114 depends on ARCH_CLPS711X
116 Say Y here if you want the debug print routines to direct
117 their output to the second serial port on these devices.
120 bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
121 depends on ARCH_CNS3XXX
122 select DEBUG_UART_PL01X
124 Say Y here if you want the debug print routines to direct
125 their output to the CNS3xxx UART0.
127 config DEBUG_DAVINCI_DA8XX_UART1
128 bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
129 depends on ARCH_DAVINCI_DA8XX
130 select DEBUG_UART_8250
132 Say Y here if you want the debug print routines to direct
133 their output to UART1 serial port on DaVinci DA8XX devices.
135 config DEBUG_DAVINCI_DA8XX_UART2
136 bool "Kernel low-level debugging on DaVinci DA8XX using UART2"
137 depends on ARCH_DAVINCI_DA8XX
138 select DEBUG_UART_8250
140 Say Y here if you want the debug print routines to direct
141 their output to UART2 serial port on DaVinci DA8XX devices.
143 config DEBUG_DAVINCI_DMx_UART0
144 bool "Kernel low-level debugging on DaVinci DMx using UART0"
145 depends on ARCH_DAVINCI_DMx
146 select DEBUG_UART_8250
148 Say Y here if you want the debug print routines to direct
149 their output to UART0 serial port on DaVinci DMx devices.
151 config DEBUG_DAVINCI_TNETV107X_UART1
152 bool "Kernel low-level debugging on DaVinci TNETV107x using UART1"
153 depends on ARCH_DAVINCI_TNETV107X
154 select DEBUG_UART_8250
156 Say Y here if you want the debug print routines to direct
157 their output to UART1 serial port on DaVinci TNETV107X
160 config DEBUG_ZYNQ_UART0
161 bool "Kernel low-level debugging on Xilinx Zynq using UART0"
164 Say Y here if you want the debug print routines to direct
165 their output to UART0 on the Zynq platform.
167 config DEBUG_ZYNQ_UART1
168 bool "Kernel low-level debugging on Xilinx Zynq using UART1"
171 Say Y here if you want the debug print routines to direct
172 their output to UART1 on the Zynq platform.
174 If you have a ZC702 board and want early boot messages to
175 appear on the USB serial adaptor, select this option.
177 config DEBUG_DC21285_PORT
178 bool "Kernel low-level debugging messages via footbridge serial port"
179 depends on FOOTBRIDGE
181 Say Y here if you want the debug print routines to direct
182 their output to the serial port in the DC21285 (Footbridge).
184 config DEBUG_FOOTBRIDGE_COM1
185 bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
186 depends on FOOTBRIDGE
188 Say Y here if you want the debug print routines to direct
189 their output to the 8250 at PCI COM1.
191 config DEBUG_HI3620_UART
192 bool "Hisilicon HI3620 Debug UART"
193 depends on ARCH_HI3xxx
194 select DEBUG_UART_PL01X
196 Say Y here if you want kernel low-level debugging support
199 config DEBUG_HI3716_UART
200 bool "Hisilicon Hi3716 Debug UART"
201 depends on ARCH_HI3xxx
202 select DEBUG_UART_PL01X
204 Say Y here if you want kernel low-level debugging support
207 config DEBUG_HIGHBANK_UART
208 bool "Kernel low-level debugging messages via Highbank UART"
209 depends on ARCH_HIGHBANK
210 select DEBUG_UART_PL01X
212 Say Y here if you want the debug print routines to direct
213 their output to the UART on Highbank based devices.
215 config DEBUG_IMX1_UART
216 bool "i.MX1 Debug UART"
219 Say Y here if you want kernel low-level debugging support
222 config DEBUG_IMX23_UART
223 bool "i.MX23 Debug UART"
225 select DEBUG_UART_PL01X
227 Say Y here if you want kernel low-level debugging support
230 config DEBUG_IMX25_UART
231 bool "i.MX25 Debug UART"
234 Say Y here if you want kernel low-level debugging support
237 config DEBUG_IMX21_IMX27_UART
238 bool "i.MX21 and i.MX27 Debug UART"
239 depends on SOC_IMX21 || SOC_IMX27
241 Say Y here if you want kernel low-level debugging support
244 config DEBUG_IMX28_UART
245 bool "i.MX28 Debug UART"
247 select DEBUG_UART_PL01X
249 Say Y here if you want kernel low-level debugging support
252 config DEBUG_IMX31_UART
253 bool "i.MX31 Debug UART"
256 Say Y here if you want kernel low-level debugging support
259 config DEBUG_IMX35_UART
260 bool "i.MX35 Debug UART"
263 Say Y here if you want kernel low-level debugging support
266 config DEBUG_IMX50_UART
267 bool "i.MX50 Debug UART"
270 Say Y here if you want kernel low-level debugging support
273 config DEBUG_IMX51_UART
274 bool "i.MX51 Debug UART"
277 Say Y here if you want kernel low-level debugging support
280 config DEBUG_IMX53_UART
281 bool "i.MX53 Debug UART"
284 Say Y here if you want kernel low-level debugging support
287 config DEBUG_IMX6Q_UART
288 bool "i.MX6Q/DL Debug UART"
291 Say Y here if you want kernel low-level debugging support
294 config DEBUG_IMX6SL_UART
295 bool "i.MX6SL Debug UART"
296 depends on SOC_IMX6SL
298 Say Y here if you want kernel low-level debugging support
301 config DEBUG_KEYSTONE_UART0
302 bool "Kernel low-level debugging on KEYSTONE2 using UART0"
303 depends on ARCH_KEYSTONE
304 select DEBUG_UART_8250
306 Say Y here if you want the debug print routines to direct
307 their output to UART0 serial port on KEYSTONE2 devices.
309 config DEBUG_KEYSTONE_UART1
310 bool "Kernel low-level debugging on KEYSTONE2 using UART1"
311 depends on ARCH_KEYSTONE
312 select DEBUG_UART_8250
314 Say Y here if you want the debug print routines to direct
315 their output to UART1 serial port on KEYSTONE2 devices.
317 config DEBUG_MMP_UART2
318 bool "Kernel low-level debugging message via MMP UART2"
320 select DEBUG_UART_8250
322 Say Y here if you want kernel low-level debugging support
325 config DEBUG_MMP_UART3
326 bool "Kernel low-level debugging message via MMP UART3"
328 select DEBUG_UART_8250
330 Say Y here if you want kernel low-level debugging support
333 config DEBUG_MSM_UART1
334 bool "Kernel low-level debugging messages via MSM UART1"
335 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
336 select DEBUG_MSM_UART
338 Say Y here if you want the debug print routines to direct
339 their output to the first serial port on MSM devices.
341 config DEBUG_MSM_UART2
342 bool "Kernel low-level debugging messages via MSM UART2"
343 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
344 select DEBUG_MSM_UART
346 Say Y here if you want the debug print routines to direct
347 their output to the second serial port on MSM devices.
349 config DEBUG_MSM_UART3
350 bool "Kernel low-level debugging messages via MSM UART3"
351 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
352 select DEBUG_MSM_UART
354 Say Y here if you want the debug print routines to direct
355 their output to the third serial port on MSM devices.
357 config DEBUG_MSM8660_UART
358 bool "Kernel low-level debugging messages via MSM 8660 UART"
359 depends on ARCH_MSM8X60
360 select MSM_HAS_DEBUG_UART_HS
361 select DEBUG_MSM_UART
363 Say Y here if you want the debug print routines to direct
364 their output to the serial port on MSM 8660 devices.
366 config DEBUG_MSM8960_UART
367 bool "Kernel low-level debugging messages via MSM 8960 UART"
368 depends on ARCH_MSM8960
369 select MSM_HAS_DEBUG_UART_HS
370 select DEBUG_MSM_UART
372 Say Y here if you want the debug print routines to direct
373 their output to the serial port on MSM 8960 devices.
375 config DEBUG_MSM8974_UART
376 bool "Kernel low-level debugging messages via MSM 8974 UART"
377 depends on ARCH_MSM8974
378 select MSM_HAS_DEBUG_UART_HS
379 select DEBUG_MSM_UART
381 Say Y here if you want the debug print routines to direct
382 their output to the serial port on MSM 8974 devices.
384 config DEBUG_MVEBU_UART
385 bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)"
386 depends on ARCH_MVEBU
387 select DEBUG_UART_8250
389 Say Y here if you want kernel low-level debugging support
390 on MVEBU based platforms.
392 This option should be used with the old bootloaders
393 that left the internal registers mapped at
394 0xd0000000. As of today, this is the case on
395 platforms such as the Globalscale Mirabox or the
396 Plathome OpenBlocks AX3, when using the original
399 If the wrong DEBUG_MVEBU_UART* option is selected,
400 when u-boot hands over to the kernel, the system
401 silently crashes, with no serial output at all.
403 config DEBUG_MVEBU_UART_ALTERNATE
404 bool "Kernel low-level debugging messages via MVEBU UART (new bootloaders)"
405 depends on ARCH_MVEBU
406 select DEBUG_UART_8250
408 Say Y here if you want kernel low-level debugging support
409 on MVEBU based platforms.
411 This option should be used with the new bootloaders
412 that remap the internal registers at 0xf1000000.
414 If the wrong DEBUG_MVEBU_UART* option is selected,
415 when u-boot hands over to the kernel, the system
416 silently crashes, with no serial output at all.
422 Say Y here if you want kernel low-level debugging support
423 on Vybrid based platforms.
425 config DEBUG_NOMADIK_UART
426 bool "Kernel low-level debugging messages via NOMADIK UART"
427 depends on ARCH_NOMADIK
428 select DEBUG_UART_PL01X
430 Say Y here if you want kernel low-level debugging support
431 on NOMADIK based platforms.
433 config DEBUG_NSPIRE_CLASSIC_UART
434 bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
435 depends on ARCH_NSPIRE
436 select DEBUG_UART_8250
438 Say Y here if you want kernel low-level debugging support
439 on TI-NSPIRE classic models.
441 config DEBUG_NSPIRE_CX_UART
442 bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
443 depends on ARCH_NSPIRE
444 select DEBUG_UART_PL01X
446 Say Y here if you want kernel low-level debugging support
447 on TI-NSPIRE CX models.
449 config DEBUG_OMAP2UART1
450 bool "OMAP2/3/4 UART1 (omap2/3 sdp boards and some omap3 boards)"
451 depends on ARCH_OMAP2PLUS
452 select DEBUG_OMAP2PLUS_UART
454 This covers at least h4, 2430sdp, 3430sdp, 3630sdp,
455 omap3 torpedo and 3530 lv som.
457 config DEBUG_OMAP2UART2
458 bool "Kernel low-level debugging messages via OMAP2/3/4 UART2"
459 depends on ARCH_OMAP2PLUS
460 select DEBUG_OMAP2PLUS_UART
462 config DEBUG_OMAP2UART3
463 bool "Kernel low-level debugging messages via OMAP2 UART3 (n8x0)"
464 depends on ARCH_OMAP2PLUS
465 select DEBUG_OMAP2PLUS_UART
467 config DEBUG_OMAP3UART3
468 bool "Kernel low-level debugging messages via OMAP3 UART3 (most omap3 boards)"
469 depends on ARCH_OMAP2PLUS
470 select DEBUG_OMAP2PLUS_UART
472 This covers at least cm_t3x, beagle, crane, devkit8000,
473 igep00x0, ldp, n900, n9(50), pandora, overo, touchbook,
476 config DEBUG_OMAP4UART3
477 bool "Kernel low-level debugging messages via OMAP4/5 UART3 (omap4 blaze, panda, omap5 sevm)"
478 depends on ARCH_OMAP2PLUS
479 select DEBUG_OMAP2PLUS_UART
481 config DEBUG_OMAP3UART4
482 bool "Kernel low-level debugging messages via OMAP36XX UART4"
483 depends on ARCH_OMAP2PLUS
484 select DEBUG_OMAP2PLUS_UART
486 config DEBUG_OMAP4UART4
487 bool "Kernel low-level debugging messages via OMAP4/5 UART4"
488 depends on ARCH_OMAP2PLUS
489 select DEBUG_OMAP2PLUS_UART
491 config DEBUG_TI81XXUART1
492 bool "Kernel low-level debugging messages via TI81XX UART1 (ti8148evm)"
493 depends on ARCH_OMAP2PLUS
494 select DEBUG_OMAP2PLUS_UART
496 config DEBUG_TI81XXUART2
497 bool "Kernel low-level debugging messages via TI81XX UART2"
498 depends on ARCH_OMAP2PLUS
499 select DEBUG_OMAP2PLUS_UART
501 config DEBUG_TI81XXUART3
502 bool "Kernel low-level debugging messages via TI81XX UART3 (ti8168evm)"
503 depends on ARCH_OMAP2PLUS
504 select DEBUG_OMAP2PLUS_UART
506 config DEBUG_AM33XXUART1
507 bool "Kernel low-level debugging messages via AM33XX UART1"
508 depends on ARCH_OMAP2PLUS
509 select DEBUG_OMAP2PLUS_UART
511 config DEBUG_ZOOM_UART
512 bool "Kernel low-level debugging messages via Zoom2/3 UART"
513 depends on ARCH_OMAP2PLUS
514 select DEBUG_OMAP2PLUS_UART
516 config DEBUG_PICOXCELL_UART
517 depends on ARCH_PICOXCELL
518 bool "Use PicoXcell UART for low-level debug"
519 select DEBUG_UART_8250
521 Say Y here if you want kernel low-level debugging support
522 on PicoXcell based platforms.
524 config DEBUG_PXA_UART1
526 bool "Use PXA UART1 for low-level debug"
527 select DEBUG_UART_8250
529 Say Y here if you want kernel low-level debugging support
532 config DEBUG_REALVIEW_STD_PORT
533 bool "RealView Default UART"
534 depends on ARCH_REALVIEW
535 select DEBUG_UART_PL01X
537 Say Y here if you want the debug print routines to direct
538 their output to the serial port on RealView EB, PB11MP, PBA8
541 config DEBUG_REALVIEW_PB1176_PORT
542 bool "RealView PB1176 UART"
543 depends on MACH_REALVIEW_PB1176
544 select DEBUG_UART_PL01X
546 Say Y here if you want the debug print routines to direct
547 their output to the standard serial port on the RealView
550 config DEBUG_RK29_UART0
551 bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
552 depends on ARCH_ROCKCHIP
553 select DEBUG_UART_8250
555 Say Y here if you want kernel low-level debugging support
556 on Rockchip based platforms.
558 config DEBUG_RK29_UART1
559 bool "Kernel low-level debugging messages via Rockchip RK29 UART1"
560 depends on ARCH_ROCKCHIP
561 select DEBUG_UART_8250
563 Say Y here if you want kernel low-level debugging support
564 on Rockchip based platforms.
566 config DEBUG_RK29_UART2
567 bool "Kernel low-level debugging messages via Rockchip RK29 UART2"
568 depends on ARCH_ROCKCHIP
569 select DEBUG_UART_8250
571 Say Y here if you want kernel low-level debugging support
572 on Rockchip based platforms.
574 config DEBUG_RK3X_UART0
575 bool "Kernel low-level debugging messages via Rockchip RK3X UART0"
576 depends on ARCH_ROCKCHIP
577 select DEBUG_UART_8250
579 Say Y here if you want kernel low-level debugging support
580 on Rockchip based platforms.
582 config DEBUG_RK3X_UART1
583 bool "Kernel low-level debugging messages via Rockchip RK3X UART1"
584 depends on ARCH_ROCKCHIP
585 select DEBUG_UART_8250
587 Say Y here if you want kernel low-level debugging support
588 on Rockchip based platforms.
590 config DEBUG_RK3X_UART2
591 bool "Kernel low-level debugging messages via Rockchip RK3X UART2"
592 depends on ARCH_ROCKCHIP
593 select DEBUG_UART_8250
595 Say Y here if you want kernel low-level debugging support
596 on Rockchip based platforms.
598 config DEBUG_RK3X_UART3
599 bool "Kernel low-level debugging messages via Rockchip RK3X UART3"
600 depends on ARCH_ROCKCHIP
601 select DEBUG_UART_8250
603 Say Y here if you want kernel low-level debugging support
604 on Rockchip based platforms.
606 config DEBUG_S3C_UART0
607 depends on PLAT_SAMSUNG
608 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
609 bool "Use S3C UART 0 for low-level debug"
611 Say Y here if you want the debug print routines to direct
612 their output to UART 0. The port must have been initialised
613 by the boot-loader before use.
615 The uncompressor code port configuration is now handled
616 by CONFIG_S3C_LOWLEVEL_UART_PORT.
618 config DEBUG_S3C_UART1
619 depends on PLAT_SAMSUNG
620 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
621 bool "Use S3C UART 1 for low-level debug"
623 Say Y here if you want the debug print routines to direct
624 their output to UART 1. The port must have been initialised
625 by the boot-loader before use.
627 The uncompressor code port configuration is now handled
628 by CONFIG_S3C_LOWLEVEL_UART_PORT.
630 config DEBUG_S3C_UART2
631 depends on PLAT_SAMSUNG
632 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
633 bool "Use S3C UART 2 for low-level debug"
635 Say Y here if you want the debug print routines to direct
636 their output to UART 2. The port must have been initialised
637 by the boot-loader before use.
639 The uncompressor code port configuration is now handled
640 by CONFIG_S3C_LOWLEVEL_UART_PORT.
642 config DEBUG_S3C_UART3
643 depends on PLAT_SAMSUNG && ARCH_EXYNOS
644 select DEBUG_EXYNOS_UART
645 bool "Use S3C UART 3 for low-level debug"
647 Say Y here if you want the debug print routines to direct
648 their output to UART 3. The port must have been initialised
649 by the boot-loader before use.
651 The uncompressor code port configuration is now handled
652 by CONFIG_S3C_LOWLEVEL_UART_PORT.
654 config DEBUG_SOCFPGA_UART
655 depends on ARCH_SOCFPGA
656 bool "Use SOCFPGA UART for low-level debug"
657 select DEBUG_UART_8250
659 Say Y here if you want kernel low-level debugging support
660 on SOCFPGA based platforms.
662 config DEBUG_SUNXI_UART0
663 bool "Kernel low-level debugging messages via sunXi UART0"
664 depends on ARCH_SUNXI
665 select DEBUG_UART_8250
667 Say Y here if you want kernel low-level debugging support
668 on Allwinner A1X based platforms on the UART0.
670 config DEBUG_SUNXI_UART1
671 bool "Kernel low-level debugging messages via sunXi UART1"
672 depends on ARCH_SUNXI
673 select DEBUG_UART_8250
675 Say Y here if you want kernel low-level debugging support
676 on Allwinner A1X based platforms on the UART1.
678 config TEGRA_DEBUG_UART_AUTO_ODMDATA
679 bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
680 depends on ARCH_TEGRA
681 select DEBUG_TEGRA_UART
683 Automatically determines which UART to use for low-level
684 debug based on the ODMDATA value. This value is part of
685 the BCT, and is written to the boot memory device using
686 nvflash, or other flashing tool. When bits 19:18 are 3,
687 then bits 17:15 indicate which UART to use; 0/1/2/3/4
690 config TEGRA_DEBUG_UARTA
691 bool "Kernel low-level debugging messages via Tegra UART A"
692 depends on ARCH_TEGRA
693 select DEBUG_TEGRA_UART
695 Say Y here if you want kernel low-level debugging support
696 on Tegra based platforms.
698 config TEGRA_DEBUG_UARTB
699 bool "Kernel low-level debugging messages via Tegra UART B"
700 depends on ARCH_TEGRA
701 select DEBUG_TEGRA_UART
703 Say Y here if you want kernel low-level debugging support
704 on Tegra based platforms.
706 config TEGRA_DEBUG_UARTC
707 bool "Kernel low-level debugging messages via Tegra UART C"
708 depends on ARCH_TEGRA
709 select DEBUG_TEGRA_UART
711 Say Y here if you want kernel low-level debugging support
712 on Tegra based platforms.
714 config TEGRA_DEBUG_UARTD
715 bool "Kernel low-level debugging messages via Tegra UART D"
716 depends on ARCH_TEGRA
717 select DEBUG_TEGRA_UART
719 Say Y here if you want kernel low-level debugging support
720 on Tegra based platforms.
722 config TEGRA_DEBUG_UARTE
723 bool "Kernel low-level debugging messages via Tegra UART E"
724 depends on ARCH_TEGRA
725 select DEBUG_TEGRA_UART
727 Say Y here if you want kernel low-level debugging support
728 on Tegra based platforms.
730 config DEBUG_SIRFPRIMA2_UART1
731 bool "Kernel low-level debugging messages via SiRFprimaII UART1"
732 depends on ARCH_PRIMA2
734 Say Y here if you want the debug print routines to direct
735 their output to the uart1 port on SiRFprimaII devices.
737 config DEBUG_SIRFMARCO_UART1
738 bool "Kernel low-level debugging messages via SiRFmarco UART1"
739 depends on ARCH_MARCO
741 Say Y here if you want the debug print routines to direct
742 their output to the uart1 port on SiRFmarco devices.
744 config STIH41X_DEBUG_ASC2
745 bool "Use StiH415/416 ASC2 UART for low-level debug"
747 select DEBUG_STI_UART
749 Say Y here if you want kernel low-level debugging support
750 on STiH415/416 based platforms like b2000, which has
751 default UART wired up to ASC2.
755 config STIH41X_DEBUG_SBC_ASC1
756 bool "Use StiH415/416 SBC ASC1 UART for low-level debug"
758 select DEBUG_STI_UART
760 Say Y here if you want kernel low-level debugging support
761 on STiH415/416 based platforms like b2020. which has
762 default UART wired up to SBC ASC1.
766 config DEBUG_U300_UART
767 bool "Kernel low-level debugging messages via U300 UART0"
769 select DEBUG_UART_PL01X
771 Say Y here if you want the debug print routines to direct
772 their output to the uart port on U300 devices.
774 config DEBUG_UX500_UART
775 depends on ARCH_U8500
776 bool "Use Ux500 UART for low-level debug"
778 Say Y here if you want kernel low-level debugging support
779 on Ux500 based platforms.
781 config DEBUG_VEXPRESS_UART0_DETECT
782 bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
783 depends on ARCH_VEXPRESS && CPU_CP15_MMU
785 This option enables a simple heuristic which tries to determine
786 the motherboard's memory map variant (original or RS1) and then
787 choose the relevant UART0 base address.
789 Note that this will only work with standard A-class core tiles,
790 and may fail with non-standard SMM or custom software models.
792 config DEBUG_VEXPRESS_UART0_CA9
793 bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
794 depends on ARCH_VEXPRESS
795 select DEBUG_UART_PL01X
797 This option selects UART0 at 0x10009000. Except for custom models,
798 this applies only to the V2P-CA9 tile.
800 config DEBUG_VEXPRESS_UART0_RS1
801 bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
802 depends on ARCH_VEXPRESS
803 select DEBUG_UART_PL01X
805 This option selects UART0 at 0x1c090000. This applies to most
806 of the tiles using the RS1 memory map, including all new A-class
807 core tiles, FPGA-based SMMs and software models.
809 config DEBUG_VEXPRESS_UART0_CRX
810 bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
811 depends on ARCH_VEXPRESS && !MMU
812 select DEBUG_UART_PL01X
814 This option selects UART0 at 0xb0090000. This is appropriate for
815 Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
817 config DEBUG_VT8500_UART0
818 bool "Use UART0 on VIA/Wondermedia SoCs"
819 depends on ARCH_VT8500
821 This option selects UART0 on VIA/Wondermedia System-on-a-chip
822 devices, including VT8500, WM8505, WM8650 and WM8850.
824 config DEBUG_LL_UART_NONE
825 bool "No low-level debugging UART"
826 depends on !ARCH_MULTIPLATFORM
828 Say Y here if your platform doesn't provide a UART option
829 above. This relies on your platform choosing the right UART
830 definition internally in order for low-level debugging to
834 bool "Kernel low-level debugging via EmbeddedICE DCC channel"
836 Say Y here if you want the debug print routines to direct
837 their output to the EmbeddedICE macrocell's DCC channel using
838 co-processor 14. This is known to work on the ARM9 style ICE
839 channel and on the XScale with the PEEDI.
841 Note that the system will appear to hang during boot if there
842 is nothing connected to read from the DCC.
844 config DEBUG_SEMIHOSTING
845 bool "Kernel low-level debug output via semihosting I/O"
847 Semihosting enables code running on an ARM target to use
848 the I/O facilities on a host debugger/emulator through a
849 simple SVC call. The host debugger or emulator must have
850 semihosting enabled for the special svc call to be trapped
851 otherwise the kernel will crash.
853 This is known to work with OpenOCD, as well as
854 ARM's Fast Models, or any other controlling environment
855 that implements semihosting.
857 For more details about semihosting, please see
858 chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
860 config DEBUG_LL_UART_8250
861 bool "Kernel low-level debugging via 8250 UART"
863 Say Y here if you wish the debug print routes to direct
864 their output to an 8250 UART. You can use this option
865 to provide the parameters for the 8250 UART rather than
866 selecting one of the platform specific options above if
867 you know the parameters for the port.
869 This option is preferred over the platform specific
870 options; the platform specific options are deprecated
871 and will be soon removed.
873 config DEBUG_LL_UART_EFM32
874 bool "Kernel low-level debugging via efm32 UART"
875 depends on ARCH_EFM32
877 Say Y here if you want the debug print routines to direct
878 their output to an UART or USART port on efm32 based
879 machines. Use the following addresses for DEBUG_UART_PHYS:
887 config DEBUG_LL_UART_PL01X
888 bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
890 Say Y here if you wish the debug print routes to direct
891 their output to a PL01x Primecell UART. You can use
892 this option to provide the parameters for the UART
893 rather than selecting one of the platform specific
894 options above if you know the parameters for the port.
896 This option is preferred over the platform specific
897 options; the platform specific options are deprecated
898 and will be soon removed.
902 config DEBUG_EXYNOS_UART
905 config DEBUG_OMAP2PLUS_UART
907 depends on ARCH_OMAP2PLUS
909 config DEBUG_IMX_UART_PORT
910 int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
911 DEBUG_IMX25_UART || \
912 DEBUG_IMX21_IMX27_UART || \
913 DEBUG_IMX31_UART || \
914 DEBUG_IMX35_UART || \
915 DEBUG_IMX50_UART || \
916 DEBUG_IMX51_UART || \
917 DEBUG_IMX53_UART || \
918 DEBUG_IMX6Q_UART || \
923 Choose UART port on which kernel low-level debug messages
926 config DEBUG_TEGRA_UART
928 depends on ARCH_TEGRA
930 config DEBUG_STI_UART
934 config DEBUG_MSM_UART
938 config DEBUG_LL_INCLUDE
940 default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
941 default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
942 default "debug/exynos.S" if DEBUG_EXYNOS_UART
943 default "debug/efm32.S" if DEBUG_LL_UART_EFM32
944 default "debug/icedcc.S" if DEBUG_ICEDCC
945 default "debug/imx.S" if DEBUG_IMX1_UART || \
946 DEBUG_IMX25_UART || \
947 DEBUG_IMX21_IMX27_UART || \
948 DEBUG_IMX31_UART || \
949 DEBUG_IMX35_UART || \
950 DEBUG_IMX50_UART || \
951 DEBUG_IMX51_UART || \
953 DEBUG_IMX6Q_UART || \
955 default "debug/msm.S" if DEBUG_MSM_UART
956 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
957 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
958 default "debug/sti.S" if DEBUG_STI_UART
959 default "debug/tegra.S" if DEBUG_TEGRA_UART
960 default "debug/ux500.S" if DEBUG_UX500_UART
961 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT
962 default "debug/vf.S" if DEBUG_VF_UART
963 default "debug/vt8500.S" if DEBUG_VT8500_UART0
964 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
965 default "mach/debug-macro.S"
967 # Compatibility options for PL01x
968 config DEBUG_UART_PL01X
969 def_bool ARCH_EP93XX || \
976 # Compatibility options for 8250
977 config DEBUG_UART_8250
978 def_bool ARCH_DOVE || ARCH_EBSA110 || \
979 (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
980 ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \
981 ARCH_IOP33X || ARCH_IXP4XX || ARCH_KIRKWOOD || \
982 ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC
984 config DEBUG_UART_PHYS
985 hex "Physical base address of debug UART"
986 default 0x01c20000 if DEBUG_DAVINCI_DMx_UART0
987 default 0x01c28000 if DEBUG_SUNXI_UART0
988 default 0x01c28400 if DEBUG_SUNXI_UART1
989 default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
990 default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
991 default 0x02530c00 if DEBUG_KEYSTONE_UART0
992 default 0x02531000 if DEBUG_KEYSTONE_UART1
993 default 0x03010fe0 if ARCH_RPC
994 default 0x08108300 if DEBUG_DAVINCI_TNETV107X_UART1
995 default 0x10009000 if DEBUG_REALVIEW_STD_PORT || DEBUG_CNS3XXX || \
996 DEBUG_VEXPRESS_UART0_CA9
997 default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
998 default 0x10124000 if DEBUG_RK3X_UART0
999 default 0x10126000 if DEBUG_RK3X_UART1
1000 default 0x101f1000 if ARCH_VERSATILE
1001 default 0x101fb000 if DEBUG_NOMADIK_UART
1002 default 0x16000000 if ARCH_INTEGRATOR
1003 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
1004 default 0x20060000 if DEBUG_RK29_UART0
1005 default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1006 default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1007 default 0x20201000 if DEBUG_BCM2835
1008 default 0x4000e400 if DEBUG_LL_UART_EFM32
1009 default 0x40090000 if ARCH_LPC32XX
1010 default 0x40100000 if DEBUG_PXA_UART1
1011 default 0x42000000 if ARCH_GEMINI
1012 default 0x7c0003f8 if FOOTBRIDGE
1013 default 0x80230000 if DEBUG_PICOXCELL_UART
1014 default 0x80070000 if DEBUG_IMX23_UART
1015 default 0x80074000 if DEBUG_IMX28_UART
1016 default 0x808c0000 if ARCH_EP93XX
1017 default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1018 default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
1019 default 0xc0013000 if DEBUG_U300_UART
1020 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1021 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1022 default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1023 default 0xd0012000 if DEBUG_MVEBU_UART
1024 default 0xd4017000 if DEBUG_MMP_UART2
1025 default 0xd4018000 if DEBUG_MMP_UART3
1026 default 0xe0000000 if ARCH_SPEAR13XX
1027 default 0xf0000be0 if ARCH_EBSA110
1028 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
1029 default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \
1031 default 0xf7fc9000 if DEBUG_BERLIN_UART
1032 default 0xf8b00000 if DEBUG_HI3716_UART
1033 default 0xfcb00000 if DEBUG_HI3620_UART
1034 default 0xfe800000 if ARCH_IOP32X
1035 default 0xffc02000 if DEBUG_SOCFPGA_UART
1036 default 0xffd82340 if ARCH_IOP13XX
1037 default 0xfff36000 if DEBUG_HIGHBANK_UART
1038 default 0xfffff700 if ARCH_IOP33X
1039 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1040 DEBUG_LL_UART_EFM32 || \
1041 DEBUG_UART_8250 || DEBUG_UART_PL01X
1043 config DEBUG_UART_VIRT
1044 hex "Virtual base address of debug UART"
1045 default 0xe0010fe0 if ARCH_RPC
1046 default 0xf0000be0 if ARCH_EBSA110
1047 default 0xf0009000 if DEBUG_CNS3XXX
1048 default 0xf01fb000 if DEBUG_NOMADIK_UART
1049 default 0xf0201000 if DEBUG_BCM2835
1050 default 0xf11f1000 if ARCH_VERSATILE
1051 default 0xf1600000 if ARCH_INTEGRATOR
1052 default 0xf1c28000 if DEBUG_SUNXI_UART0
1053 default 0xf1c28400 if DEBUG_SUNXI_UART1
1054 default 0xf2100000 if DEBUG_PXA_UART1
1055 default 0xf4090000 if ARCH_LPC32XX
1056 default 0xf4200000 if ARCH_GEMINI
1057 default 0xf7fc9000 if DEBUG_BERLIN_UART
1058 default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
1059 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
1060 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
1061 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
1062 default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1063 default 0xfd000000 if ARCH_SPEAR13XX
1064 default 0xfd012000 if ARCH_MV78XX0
1065 default 0xfde12000 if ARCH_DOVE
1066 default 0xfe012000 if ARCH_ORION5X
1067 default 0xfe017000 if DEBUG_MMP_UART2
1068 default 0xfe018000 if DEBUG_MMP_UART3
1069 default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
1070 default 0xfe230000 if DEBUG_PICOXCELL_UART
1071 default 0xfe800000 if ARCH_IOP32X
1072 default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HI3716_UART
1073 default 0xfeb24000 if DEBUG_RK3X_UART0
1074 default 0xfeb26000 if DEBUG_RK3X_UART1
1075 default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
1076 default 0xfeb31000 if DEBUG_KEYSTONE_UART1
1077 default 0xfec12000 if DEBUG_MVEBU_UART || DEBUG_MVEBU_UART_ALTERNATE
1078 default 0xfed60000 if DEBUG_RK29_UART0
1079 default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1080 default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1081 default 0xfec02000 if DEBUG_SOCFPGA_UART
1082 default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
1083 default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
1084 default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
1085 default 0xfed12000 if ARCH_KIRKWOOD
1086 default 0xfedc0000 if ARCH_EP93XX
1087 default 0xfee003f8 if FOOTBRIDGE
1088 default 0xfee08300 if DEBUG_DAVINCI_TNETV107X_UART1
1089 default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1090 default 0xfef36000 if DEBUG_HIGHBANK_UART
1091 default 0xfee82340 if ARCH_IOP13XX
1092 default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1093 default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1094 default 0xfefff700 if ARCH_IOP33X
1095 default 0xff003000 if DEBUG_U300_UART
1096 default DEBUG_UART_PHYS if !MMU
1097 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1098 DEBUG_UART_8250 || DEBUG_UART_PL01X
1100 config DEBUG_UART_8250_SHIFT
1101 int "Register offset shift for the 8250 debug UART"
1102 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1103 default 0 if FOOTBRIDGE || ARCH_IOP32X
1106 config DEBUG_UART_8250_WORD
1107 bool "Use 32-bit accesses for 8250 UART"
1108 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1109 depends on DEBUG_UART_8250_SHIFT >= 2
1110 default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART || \
1112 DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
1113 DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_DAVINCI_TNETV107X_UART1
1115 config DEBUG_UART_8250_FLOW_CONTROL
1116 bool "Enable flow control for 8250 UART"
1117 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1118 default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_GEMINI || ARCH_RPC
1120 config DEBUG_UNCOMPRESS
1122 depends on ARCH_MULTIPLATFORM || ARCH_MSM
1123 default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
1124 (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
1126 This option influences the normal decompressor output for
1127 multiplatform kernels. Normally, multiplatform kernels disable
1128 decompressor output because it is not possible to know where to
1129 send the decompressor output.
1131 When this option is set, the selected DEBUG_LL output method
1132 will be re-used for normal decompressor output on multiplatform
1136 config UNCOMPRESS_INCLUDE
1138 default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM
1139 default "mach/uncompress.h"
1145 Say Y here if you want to have an early console using the
1146 kernel low-level debugging functions. Add earlyprintk to your
1147 kernel parameters to enable this console.
1150 bool "On-chip ETM and ETB"
1153 Enables the on-chip embedded trace macrocell and embedded trace
1154 buffer driver that will allow you to collect traces of the
1157 config ARM_KPROBES_TEST
1158 tristate "Kprobes test module"
1159 depends on KPROBES && MODULES
1161 Perform tests of kprobes API and instruction set simulation.
1163 config PID_IN_CONTEXTIDR
1164 bool "Write the current PID to the CONTEXTIDR register"
1165 depends on CPU_COPY_V6
1167 Enabling this option causes the kernel to write the current PID to
1168 the PROCID field of the CONTEXTIDR register, at the expense of some
1169 additional instructions during context switch. Say Y here only if you
1170 are planning to use hardware trace tools with this kernel.