GNU Linux-libre 4.14.290-gnu1
[releases.git] / arch / arm / Kconfig.debug
1 # SPDX-License-Identifier: GPL-2.0
2 menu "Kernel hacking"
3
4 source "lib/Kconfig.debug"
5
6 config ARM_PTDUMP
7         bool "Export kernel pagetable layout to userspace via debugfs"
8         depends on DEBUG_KERNEL
9         depends on MMU
10         select DEBUG_FS
11         ---help---
12           Say Y here if you want to show the kernel pagetable layout in a
13           debugfs file. This information is only useful for kernel developers
14           who are working in architecture specific areas of the kernel.
15           It is probably not a good idea to enable this feature in a production
16           kernel.
17           If in doubt, say "N"
18
19 choice
20         prompt "Choose kernel unwinder"
21         default UNWINDER_ARM if AEABI && !FUNCTION_GRAPH_TRACER
22         default UNWINDER_FRAME_POINTER if !AEABI || FUNCTION_GRAPH_TRACER
23         help
24           This determines which method will be used for unwinding kernel stack
25           traces for panics, oopses, bugs, warnings, perf, /proc/<pid>/stack,
26           livepatch, lockdep, and more.
27
28 config UNWINDER_FRAME_POINTER
29         bool "Frame pointer unwinder"
30         depends on !THUMB2_KERNEL && !CC_IS_CLANG
31         select ARCH_WANT_FRAME_POINTERS
32         select FRAME_POINTER
33         help
34           This option enables the frame pointer unwinder for unwinding
35           kernel stack traces.
36
37 config UNWINDER_ARM
38         bool "ARM EABI stack unwinder"
39         depends on AEABI
40         select ARM_UNWIND
41         help
42           This option enables stack unwinding support in the kernel
43           using the information automatically generated by the
44           compiler. The resulting kernel image is slightly bigger but
45           the performance is not affected. Currently, this feature
46           only works with EABI compilers.
47
48 endchoice
49
50 config ARM_UNWIND
51         bool
52
53 config FRAME_POINTER
54         bool
55
56 config OLD_MCOUNT
57         bool
58         depends on FUNCTION_TRACER && FRAME_POINTER
59         default y
60
61 config DEBUG_USER
62         bool "Verbose user fault messages"
63         help
64           When a user program crashes due to an exception, the kernel can
65           print a brief message explaining what the problem was. This is
66           sometimes helpful for debugging but serves no purpose on a
67           production system. Most people should say N here.
68
69           In addition, you need to pass user_debug=N on the kernel command
70           line to enable this feature.  N consists of the sum of:
71
72               1 - undefined instruction events
73               2 - system calls
74               4 - invalid data aborts
75               8 - SIGSEGV faults
76              16 - SIGBUS faults
77
78 # These options are only for real kernel hackers who want to get their hands dirty.
79 config DEBUG_LL
80         bool "Kernel low-level debugging functions (read help!)"
81         depends on DEBUG_KERNEL
82         help
83           Say Y here to include definitions of printascii, printch, printhex
84           in the kernel.  This is helpful if you are debugging code that
85           executes before the console is initialized.
86
87           Note that selecting this option will limit the kernel to a single
88           UART definition, as specified below. Attempting to boot the kernel
89           image on a different platform *will not work*, so this option should
90           not be enabled for kernels that are intended to be portable.
91
92 choice
93         prompt "Kernel low-level debugging port"
94         depends on DEBUG_LL
95
96         config DEBUG_ALPINE_UART0
97                 bool "Kernel low-level debugging messages via Alpine UART0"
98                 depends on ARCH_ALPINE
99                 select DEBUG_UART_8250
100                 help
101                   Say Y here if you want kernel low-level debugging support
102                   on Alpine based platforms.
103
104         config DEBUG_ASM9260_UART
105                 bool "Kernel low-level debugging via asm9260 UART"
106                 depends on MACH_ASM9260
107                 help
108                   Say Y here if you want the debug print routines to direct
109                   their output to an UART or USART port on asm9260 based
110                   machines.
111
112                     DEBUG_UART_PHYS | DEBUG_UART_VIRT
113
114                     0x80000000      | 0xf0000000     | UART0
115                     0x80004000      | 0xf0004000     | UART1
116                     0x80008000      | 0xf0008000     | UART2
117                     0x8000c000      | 0xf000c000     | UART3
118                     0x80010000      | 0xf0010000     | UART4
119                     0x80014000      | 0xf0014000     | UART5
120                     0x80018000      | 0xf0018000     | UART6
121                     0x8001c000      | 0xf001c000     | UART7
122                     0x80020000      | 0xf0020000     | UART8
123                     0x80024000      | 0xf0024000     | UART9
124
125         config DEBUG_AT91_RM9200_DBGU
126                 bool "Kernel low-level debugging on AT91RM9200, AT91SAM9 DBGU"
127                 select DEBUG_AT91_UART
128                 depends on SOC_AT91RM9200 || SOC_AT91SAM9
129                 help
130                   Say Y here if you want kernel low-level debugging support
131                   on the DBGU port of:
132                     at91rm9200, at91sam9260, at91sam9g20, at91sam9261,
133                     at91sam9g10, at91sam9n12, at91sam9rl64, at91sam9x5
134
135         config DEBUG_AT91_SAM9263_DBGU
136                 bool "Kernel low-level debugging on AT91SAM{9263,9G45,A5D3} DBGU"
137                 select DEBUG_AT91_UART
138                 depends on SOC_AT91SAM9 || SOC_SAMA5D3
139                 help
140                   Say Y here if you want kernel low-level debugging support
141                   on the DBGU port of:
142                     at91sam9263, at91sam9g45, at91sam9m10,
143                     sama5d3
144
145         config DEBUG_AT91_SAMA5D2_UART1
146                 bool "Kernel low-level debugging on SAMA5D2 UART1"
147                 select DEBUG_AT91_UART
148                 depends on SOC_SAMA5D2
149                 help
150                   Say Y here if you want kernel low-level debugging support
151                   on the UART1 port of sama5d2.
152
153         config DEBUG_AT91_SAMA5D4_USART3
154                 bool "Kernel low-level debugging on SAMA5D4 USART3"
155                 select DEBUG_AT91_UART
156                 depends on SOC_SAMA5D4
157                 help
158                   Say Y here if you want kernel low-level debugging support
159                   on the USART3 port of sama5d4.
160
161         config DEBUG_AT91_SAMV7_USART1
162                 bool "Kernel low-level debugging via SAMV7 USART1"
163                 select DEBUG_AT91_UART
164                 depends on SOC_SAMV7
165                 help
166                   Say Y here if you want the debug print routines to direct
167                   their output to the USART1 port on SAMV7 based
168                   machines.
169
170         config DEBUG_BCM2835
171                 bool "Kernel low-level debugging on BCM2835 PL011 UART"
172                 depends on ARCH_BCM2835 && ARCH_MULTI_V6
173                 select DEBUG_UART_PL01X
174
175         config DEBUG_BCM2836
176                 bool "Kernel low-level debugging on BCM2836 PL011 UART"
177                 depends on ARCH_BCM2835 && ARCH_MULTI_V7
178                 select DEBUG_UART_PL01X
179
180         config DEBUG_BCM_5301X
181                 bool "Kernel low-level debugging on BCM5301X/NSP UART1"
182                 depends on ARCH_BCM_5301X || ARCH_BCM_NSP
183                 select DEBUG_UART_8250
184
185         config DEBUG_BCM_KONA_UART
186                 bool "Kernel low-level debugging messages via BCM KONA UART"
187                 depends on ARCH_BCM_MOBILE
188                 select DEBUG_UART_8250
189                 help
190                   Say Y here if you want kernel low-level debugging support
191                   on Broadcom SoC platforms.
192                   This low level debug works for Broadcom
193                   mobile SoCs in the Kona family of chips (e.g. bcm28155,
194                   bcm11351, etc...)
195
196         config DEBUG_BCM63XX_UART
197                 bool "Kernel low-level debugging on BCM63XX UART"
198                 depends on ARCH_BCM_63XX
199
200         config DEBUG_BERLIN_UART
201                 bool "Marvell Berlin SoC Debug UART"
202                 depends on ARCH_BERLIN
203                 select DEBUG_UART_8250
204                 help
205                   Say Y here if you want kernel low-level debugging support
206                   on Marvell Berlin SoC based platforms.
207
208         config DEBUG_BRCMSTB_UART
209                 bool "Use BRCMSTB UART for low-level debug"
210                 depends on ARCH_BRCMSTB
211                 help
212                   Say Y here if you want the debug print routines to direct
213                   their output to the first serial port on these devices. The
214                   UART physical and virtual address is automatically provided
215                   based on the chip identification register value.
216
217                   If you have a Broadcom STB chip and would like early print
218                   messages to appear over the UART, select this option.
219
220         config DEBUG_CLPS711X_UART1
221                 bool "Kernel low-level debugging messages via UART1"
222                 depends on ARCH_CLPS711X
223                 help
224                   Say Y here if you want the debug print routines to direct
225                   their output to the first serial port on these devices.
226
227         config DEBUG_CLPS711X_UART2
228                 bool "Kernel low-level debugging messages via UART2"
229                 depends on ARCH_CLPS711X
230                 help
231                   Say Y here if you want the debug print routines to direct
232                   their output to the second serial port on these devices.
233
234         config DEBUG_CNS3XXX
235                 bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
236                 depends on ARCH_CNS3XXX
237                 select DEBUG_UART_8250
238                 help
239                   Say Y here if you want the debug print routines to direct
240                   their output to the CNS3xxx UART0.
241
242         config DEBUG_DAVINCI_DA8XX_UART1
243                 bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
244                 depends on ARCH_DAVINCI_DA8XX
245                 select DEBUG_UART_8250
246                 help
247                   Say Y here if you want the debug print routines to direct
248                   their output to UART1 serial port on DaVinci DA8XX devices.
249
250         config DEBUG_DAVINCI_DA8XX_UART2
251                 bool "Kernel low-level debugging on DaVinci DA8XX using UART2"
252                 depends on ARCH_DAVINCI_DA8XX
253                 select DEBUG_UART_8250
254                 help
255                   Say Y here if you want the debug print routines to direct
256                   their output to UART2 serial port on DaVinci DA8XX devices.
257
258         config DEBUG_DAVINCI_DMx_UART0
259                 bool "Kernel low-level debugging on DaVinci DMx using UART0"
260                 depends on ARCH_DAVINCI_DMx
261                 select DEBUG_UART_8250
262                 help
263                   Say Y here if you want the debug print routines to direct
264                   their output to UART0 serial port on DaVinci DMx devices.
265
266         config DEBUG_DC21285_PORT
267                 bool "Kernel low-level debugging messages via footbridge serial port"
268                 depends on FOOTBRIDGE
269                 help
270                   Say Y here if you want the debug print routines to direct
271                   their output to the serial port in the DC21285 (Footbridge).
272
273         config DEBUG_DIGICOLOR_UA0
274                 bool "Kernel low-level debugging messages via Digicolor UA0"
275                 depends on ARCH_DIGICOLOR
276                 help
277                   Say Y here if you want the debug print routines to direct
278                   their output to the UA0 serial port in the CX92755.
279
280         config DEBUG_EP93XX
281                 bool "Kernel low-level debugging messages via ep93xx UART"
282                 depends on ARCH_EP93XX
283                 select DEBUG_UART_PL01X
284                 help
285                   Say Y here if you want kernel low-level debugging support
286                   on Cirrus Logic EP93xx based platforms.
287
288         config DEBUG_FOOTBRIDGE_COM1
289                 bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
290                 depends on FOOTBRIDGE
291                 select DEBUG_UART_8250
292                 help
293                   Say Y here if you want the debug print routines to direct
294                   their output to the 8250 at PCI COM1.
295
296         config DEBUG_GEMINI
297                 bool "Kernel low-level debugging messages via Cortina Systems Gemini UART"
298                 depends on ARCH_GEMINI
299                 select DEBUG_UART_8250
300                 help
301                   Say Y here if you want kernel low-level debugging support
302                   on Cortina Gemini based platforms.
303
304         config DEBUG_HI3620_UART
305                 bool "Hisilicon HI3620 Debug UART"
306                 depends on ARCH_HI3xxx
307                 select DEBUG_UART_PL01X
308                 help
309                   Say Y here if you want kernel low-level debugging support
310                   on HI3620 UART.
311
312         config DEBUG_HIGHBANK_UART
313                 bool "Kernel low-level debugging messages via Highbank UART"
314                 depends on ARCH_HIGHBANK
315                 select DEBUG_UART_PL01X
316                 help
317                   Say Y here if you want the debug print routines to direct
318                   their output to the UART on Highbank based devices.
319
320         config DEBUG_HIP01_UART
321                 bool "Hisilicon Hip01 Debug UART"
322                 depends on ARCH_HIP01
323                 select DEBUG_UART_8250
324                 help
325                   Say Y here if you want kernel low-level debugging support
326                   on HIP01 UART.
327
328         config DEBUG_HIP04_UART
329                 bool "Hisilicon HiP04 Debug UART"
330                 depends on ARCH_HIP04
331                 select DEBUG_UART_8250
332                 help
333                   Say Y here if you want kernel low-level debugging support
334                   on HIP04 UART.
335
336         config DEBUG_HIX5HD2_UART
337                 bool "Hisilicon Hix5hd2 Debug UART"
338                 depends on ARCH_HIX5HD2
339                 select DEBUG_UART_PL01X
340                 help
341                   Say Y here if you want kernel low-level debugging support
342                   on Hix5hd2 UART.
343
344         config DEBUG_IMX1_UART
345                 bool "i.MX1 Debug UART"
346                 depends on SOC_IMX1
347                 help
348                   Say Y here if you want kernel low-level debugging support
349                   on i.MX1.
350
351         config DEBUG_IMX23_UART
352                 bool "i.MX23 Debug UART"
353                 depends on SOC_IMX23
354                 select DEBUG_UART_PL01X
355                 help
356                   Say Y here if you want kernel low-level debugging support
357                   on i.MX23.
358
359         config DEBUG_IMX25_UART
360                 bool "i.MX25 Debug UART"
361                 depends on SOC_IMX25
362                 help
363                   Say Y here if you want kernel low-level debugging support
364                   on i.MX25.
365
366         config DEBUG_IMX21_IMX27_UART
367                 bool "i.MX21 and i.MX27 Debug UART"
368                 depends on SOC_IMX21 || SOC_IMX27
369                 help
370                   Say Y here if you want kernel low-level debugging support
371                   on i.MX21 or i.MX27.
372
373         config DEBUG_IMX28_UART
374                 bool "i.MX28 Debug UART"
375                 depends on SOC_IMX28
376                 select DEBUG_UART_PL01X
377                 help
378                   Say Y here if you want kernel low-level debugging support
379                   on i.MX28.
380
381         config DEBUG_IMX31_UART
382                 bool "i.MX31 Debug UART"
383                 depends on SOC_IMX31
384                 help
385                   Say Y here if you want kernel low-level debugging support
386                   on i.MX31.
387
388         config DEBUG_IMX35_UART
389                 bool "i.MX35 Debug UART"
390                 depends on SOC_IMX35
391                 help
392                   Say Y here if you want kernel low-level debugging support
393                   on i.MX35.
394
395         config DEBUG_IMX50_UART
396                 bool "i.MX50 Debug UART"
397                 depends on SOC_IMX50
398                 help
399                   Say Y here if you want kernel low-level debugging support
400                   on i.MX50.
401
402         config DEBUG_IMX51_UART
403                 bool "i.MX51 Debug UART"
404                 depends on SOC_IMX51
405                 help
406                   Say Y here if you want kernel low-level debugging support
407                   on i.MX51.
408
409         config DEBUG_IMX53_UART
410                 bool "i.MX53 Debug UART"
411                 depends on SOC_IMX53
412                 help
413                   Say Y here if you want kernel low-level debugging support
414                   on i.MX53.
415
416         config DEBUG_IMX6Q_UART
417                 bool "i.MX6Q/DL Debug UART"
418                 depends on SOC_IMX6Q
419                 help
420                   Say Y here if you want kernel low-level debugging support
421                   on i.MX6Q/DL.
422
423         config DEBUG_IMX6SL_UART
424                 bool "i.MX6SL Debug UART"
425                 depends on SOC_IMX6SL
426                 help
427                   Say Y here if you want kernel low-level debugging support
428                   on i.MX6SL.
429
430         config DEBUG_IMX6SX_UART
431                 bool "i.MX6SX Debug UART"
432                 depends on SOC_IMX6SX
433                 help
434                   Say Y here if you want kernel low-level debugging support
435                   on i.MX6SX.
436
437         config DEBUG_IMX6UL_UART
438                 bool "i.MX6UL Debug UART"
439                 depends on SOC_IMX6UL
440                 help
441                   Say Y here if you want kernel low-level debugging support
442                   on i.MX6UL.
443
444         config DEBUG_IMX7D_UART
445                 bool "i.MX7D Debug UART"
446                 depends on SOC_IMX7D
447                 help
448                   Say Y here if you want kernel low-level debugging support
449                   on i.MX7D.
450
451         config DEBUG_INTEGRATOR
452                 bool "Kernel low-level debugging messages via ARM Integrator UART"
453                 depends on ARCH_INTEGRATOR
454                 select DEBUG_UART_PL01X
455                 help
456                   Say Y here if you want kernel low-level debugging support
457                   on ARM Integrator platforms.
458
459         config DEBUG_KEYSTONE_UART0
460                 bool "Kernel low-level debugging on KEYSTONE2 using UART0"
461                 depends on ARCH_KEYSTONE
462                 select DEBUG_UART_8250
463                 help
464                   Say Y here if you want the debug print routines to direct
465                   their output to UART0 serial port on KEYSTONE2 devices.
466
467         config DEBUG_KEYSTONE_UART1
468                 bool "Kernel low-level debugging on KEYSTONE2 using UART1"
469                 depends on ARCH_KEYSTONE
470                 select DEBUG_UART_8250
471                 help
472                   Say Y here if you want the debug print routines to direct
473                   their output to UART1 serial port on KEYSTONE2 devices.
474
475         config DEBUG_KS8695_UART
476                 bool "KS8695 Debug UART"
477                 depends on ARCH_KS8695
478                 help
479                   Say Y here if you want kernel low-level debugging support
480                   on KS8695.
481
482         config DEBUG_LPC18XX_UART0
483                 bool "Kernel low-level debugging via LPC18xx/43xx UART0"
484                 depends on ARCH_LPC18XX
485                 select DEBUG_UART_8250
486                 help
487                   Say Y here if you want kernel low-level debugging support
488                   on NXP LPC18xx/43xx UART0.
489
490         config DEBUG_LPC32XX
491                 bool "Kernel low-level debugging messages via NXP LPC32xx UART"
492                 depends on ARCH_LPC32XX
493                 select DEBUG_UART_8250
494                 help
495                   Say Y here if you want kernel low-level debugging support
496                   on NXP LPC32xx based platforms.
497
498         config DEBUG_MESON_UARTAO
499                 bool "Kernel low-level debugging via Meson6 UARTAO"
500                 depends on ARCH_MESON
501                 help
502                   Say Y here if you want kernel low-lever debugging support
503                   on Amlogic Meson6 based platforms on the UARTAO.
504
505         config DEBUG_MMP_UART2
506                 bool "Kernel low-level debugging message via MMP UART2"
507                 depends on ARCH_MMP
508                 select DEBUG_UART_8250
509                 help
510                   Say Y here if you want kernel low-level debugging support
511                   on MMP UART2.
512
513         config DEBUG_MMP_UART3
514                 bool "Kernel low-level debugging message via MMP UART3"
515                 depends on ARCH_MMP
516                 select DEBUG_UART_8250
517                 help
518                   Say Y here if you want kernel low-level debugging support
519                   on MMP UART3.
520
521         config DEBUG_MVEBU_UART0
522                 bool "Kernel low-level debugging messages via MVEBU UART0 (old bootloaders)"
523                 depends on ARCH_MVEBU
524                 depends on ARCH_MVEBU && CPU_V7
525                 select DEBUG_UART_8250
526                 help
527                   Say Y here if you want kernel low-level debugging support
528                   on MVEBU based platforms on UART0.
529
530                   This option should be used with the old bootloaders
531                   that left the internal registers mapped at
532                   0xd0000000. As of today, this is the case on
533                   platforms such as the Globalscale Mirabox or the
534                   Plathome OpenBlocks AX3, when using the original
535                   bootloader.
536
537                   This option will not work on older Marvell platforms
538                   (Kirkwood, Dove, MV78xx0, Orion5x), which should pick
539                   the "new bootloader" variant.
540
541                   If the wrong DEBUG_MVEBU_UART* option is selected,
542                   when u-boot hands over to the kernel, the system
543                   silently crashes, with no serial output at all.
544
545         config DEBUG_MVEBU_UART0_ALTERNATE
546                 bool "Kernel low-level debugging messages via MVEBU UART0 (new bootloaders)"
547                 depends on ARCH_MVEBU || ARCH_DOVE || ARCH_MV78XX0 || ARCH_ORION5X
548                 select DEBUG_UART_8250
549                 help
550                   Say Y here if you want kernel low-level debugging support
551                   on MVEBU based platforms on UART0. (Armada XP, Armada 3xx,
552                   Kirkwood, Dove, MV78xx0, Orion5x).
553
554
555                   This option should be used with the new bootloaders
556                   that remap the internal registers at 0xf1000000.
557
558                   If the wrong DEBUG_MVEBU_UART* option is selected,
559                   when u-boot hands over to the kernel, the system
560                   silently crashes, with no serial output at all.
561
562         config DEBUG_MVEBU_UART1_ALTERNATE
563                 bool "Kernel low-level debugging messages via MVEBU UART1 (new bootloaders)"
564                 depends on ARCH_MVEBU
565                 select DEBUG_UART_8250
566                 help
567                   Say Y here if you want kernel low-level debugging support
568                   on MVEBU based platforms on UART1. (Armada XP, Armada 3xx,
569                   Kirkwood, Dove, MV78xx0, Orion5x).
570
571                   This option should be used with the new bootloaders
572                   that remap the internal registers at 0xf1000000.
573                   All of the older (pre Armada XP/370) platforms also use
574                   this address, regardless of the boot loader version.
575
576                   If the wrong DEBUG_MVEBU_UART* option is selected,
577                   when u-boot hands over to the kernel, the system
578                   silently crashes, with no serial output at all.
579
580         config DEBUG_MT6589_UART0
581                 bool "Mediatek mt6589 UART0"
582                 depends on ARCH_MEDIATEK
583                 select DEBUG_UART_8250
584                 help
585                   Say Y here if you want kernel low-level debugging support
586                   for Mediatek mt6589 based platforms on UART0.
587
588         config DEBUG_MT8127_UART0
589                 bool "Mediatek mt8127/mt6592 UART0"
590                 depends on ARCH_MEDIATEK
591                 select DEBUG_UART_8250
592                 help
593                   Say Y here if you want kernel low-level debugging support
594                   for Mediatek mt8127 based platforms on UART0.
595
596         config DEBUG_MT8135_UART3
597                 bool "Mediatek mt8135 UART3"
598                 depends on ARCH_MEDIATEK
599                 select DEBUG_UART_8250
600                 help
601                   Say Y here if you want kernel low-level debugging support
602                   for Mediatek mt8135 based platforms on UART3.
603
604         config DEBUG_NETX_UART
605                 bool "Kernel low-level debugging messages via NetX UART"
606                 depends on ARCH_NETX
607                 help
608                   Say Y here if you want kernel low-level debugging support
609                   on Hilscher NetX based platforms.
610
611         config DEBUG_NOMADIK_UART
612                 bool "Kernel low-level debugging messages via NOMADIK UART"
613                 depends on ARCH_NOMADIK
614                 select DEBUG_UART_PL01X
615                 help
616                   Say Y here if you want kernel low-level debugging support
617                   on NOMADIK based platforms.
618
619         config DEBUG_NSPIRE_CLASSIC_UART
620                 bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
621                 depends on ARCH_NSPIRE
622                 select DEBUG_UART_8250
623                 help
624                   Say Y here if you want kernel low-level debugging support
625                   on TI-NSPIRE classic models.
626
627         config DEBUG_NSPIRE_CX_UART
628                 bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
629                 depends on ARCH_NSPIRE
630                 select DEBUG_UART_PL01X
631                 help
632                   Say Y here if you want kernel low-level debugging support
633                   on TI-NSPIRE CX models.
634
635         config DEBUG_OMAP1UART1
636                 bool "Kernel low-level debugging via OMAP1 UART1"
637                 depends on ARCH_OMAP1
638                 select DEBUG_UART_8250
639                 help
640                   Say Y here if you want kernel low-level debugging support
641                   on OMAP1 based platforms (except OMAP730) on the UART1.
642
643         config DEBUG_OMAP1UART2
644                 bool "Kernel low-level debugging via OMAP1 UART2"
645                 depends on ARCH_OMAP1
646                 select DEBUG_UART_8250
647                 help
648                   Say Y here if you want kernel low-level debugging support
649                   on OMAP1 based platforms (except OMAP730) on the UART2.
650
651         config DEBUG_OMAP1UART3
652                 bool "Kernel low-level debugging via OMAP1 UART3"
653                 depends on ARCH_OMAP1
654                 select DEBUG_UART_8250
655                 help
656                   Say Y here if you want kernel low-level debugging support
657                   on OMAP1 based platforms (except OMAP730) on the UART3.
658
659         config DEBUG_OMAP2UART1
660                 bool "OMAP2/3/4 UART1 (omap2/3 sdp boards and some omap3 boards)"
661                 depends on ARCH_OMAP2PLUS
662                 select DEBUG_UART_8250
663                 help
664                   This covers at least h4, 2430sdp, 3430sdp, 3630sdp,
665                   omap3 torpedo and 3530 lv som.
666
667         config DEBUG_OMAP2UART2
668                 bool "Kernel low-level debugging messages via OMAP2/3/4 UART2"
669                 depends on ARCH_OMAP2PLUS
670                 select DEBUG_UART_8250
671
672         config DEBUG_OMAP2UART3
673                 bool "Kernel low-level debugging messages via OMAP2 UART3 (n8x0)"
674                 depends on ARCH_OMAP2PLUS
675                 select DEBUG_UART_8250
676
677         config DEBUG_OMAP3UART3
678                 bool "Kernel low-level debugging messages via OMAP3 UART3 (most omap3 boards)"
679                 depends on ARCH_OMAP2PLUS
680                 select DEBUG_UART_8250
681                 help
682                   This covers at least cm_t3x, beagle, crane, devkit8000,
683                   igep00x0, ldp, n900, n9(50), pandora, overo, touchbook,
684                   and 3517evm.
685
686         config DEBUG_OMAP4UART3
687                 bool "Kernel low-level debugging messages via OMAP4/5 UART3 (omap4 blaze, panda, omap5 sevm)"
688                 depends on ARCH_OMAP2PLUS
689                 select DEBUG_UART_8250
690
691         config DEBUG_OMAP3UART4
692                 bool "Kernel low-level debugging messages via OMAP36XX UART4"
693                 depends on ARCH_OMAP2PLUS
694                 select DEBUG_UART_8250
695
696         config DEBUG_OMAP4UART4
697                 bool "Kernel low-level debugging messages via OMAP4/5 UART4"
698                 depends on ARCH_OMAP2PLUS
699                 select DEBUG_UART_8250
700
701         config DEBUG_OMAP7XXUART1
702                 bool "Kernel low-level debugging via OMAP730 UART1"
703                 depends on ARCH_OMAP730
704                 select DEBUG_UART_8250
705                 help
706                   Say Y here if you want kernel low-level debugging support
707                   on OMAP730 based platforms on the UART1.
708
709         config DEBUG_OMAP7XXUART2
710                 bool "Kernel low-level debugging via OMAP730 UART2"
711                 depends on ARCH_OMAP730
712                 select DEBUG_UART_8250
713                 help
714                   Say Y here if you want kernel low-level debugging support
715                   on OMAP730 based platforms on the UART2.
716
717         config DEBUG_OMAP7XXUART3
718                 bool "Kernel low-level debugging via OMAP730 UART3"
719                 depends on ARCH_OMAP730
720                 select DEBUG_UART_8250
721                 help
722                   Say Y here if you want kernel low-level debugging support
723                   on OMAP730 based platforms on the UART3.
724
725         config DEBUG_TI81XXUART1
726                 bool "Kernel low-level debugging messages via TI81XX UART1 (ti8148evm)"
727                 depends on ARCH_OMAP2PLUS
728                 select DEBUG_UART_8250
729
730         config DEBUG_TI81XXUART2
731                 bool "Kernel low-level debugging messages via TI81XX UART2"
732                 depends on ARCH_OMAP2PLUS
733                 select DEBUG_UART_8250
734
735         config DEBUG_TI81XXUART3
736                 bool "Kernel low-level debugging messages via TI81XX UART3 (ti8168evm)"
737                 depends on ARCH_OMAP2PLUS
738                 select DEBUG_UART_8250
739
740         config DEBUG_AM33XXUART1
741                 bool "Kernel low-level debugging messages via AM33XX UART1"
742                 depends on ARCH_OMAP2PLUS
743                 select DEBUG_UART_8250
744
745         config DEBUG_ZOOM_UART
746                 bool "Kernel low-level debugging messages via Zoom2/3 UART"
747                 depends on ARCH_OMAP2PLUS
748                 select DEBUG_OMAP2PLUS_UART
749
750         config DEBUG_PICOXCELL_UART
751                 depends on ARCH_PICOXCELL
752                 bool "Use PicoXcell UART for low-level debug"
753                 select DEBUG_UART_8250
754                 help
755                   Say Y here if you want kernel low-level debugging support
756                   on PicoXcell based platforms.
757
758         config DEBUG_PXA_UART1
759                 depends on ARCH_PXA
760                 bool "Use PXA UART1 for low-level debug"
761                 select DEBUG_UART_8250
762                 help
763                   Say Y here if you want kernel low-level debugging support
764                   on PXA UART1.
765
766         config DEBUG_QCOM_UARTDM
767                 bool "Kernel low-level debugging messages via QCOM UARTDM"
768                 depends on ARCH_QCOM
769                 help
770                   Say Y here if you want the debug print routines to direct
771                   their output to the serial port on Qualcomm devices.
772
773                   ARCH      DEBUG_UART_PHYS   DEBUG_UART_VIRT
774                   APQ8064   0x16640000        0xf0040000
775                   APQ8084   0xf995e000        0xfa75e000
776                   IPQ4019   0x078af000        0xf78af000
777                   MSM8X60   0x19c40000        0xf0040000
778                   MSM8960   0x16440000        0xf0040000
779                   MSM8974   0xf991e000        0xfa71e000
780
781                   Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration
782                   options based on your needs.
783
784         config DEBUG_REALVIEW_STD_PORT
785                 bool "RealView Default UART"
786                 depends on ARCH_REALVIEW
787                 select DEBUG_UART_PL01X
788                 help
789                   Say Y here if you want the debug print routines to direct
790                   their output to the serial port on RealView EB, PB11MP, PBA8
791                   and PBX platforms.
792
793         config DEBUG_REALVIEW_PB1176_PORT
794                 bool "RealView PB1176 UART"
795                 depends on MACH_REALVIEW_PB1176
796                 select DEBUG_UART_PL01X
797                 help
798                   Say Y here if you want the debug print routines to direct
799                   their output to the standard serial port on the RealView
800                   PB1176 platform.
801
802         config DEBUG_RV1108_UART0
803                 bool "Kernel low-level debugging messages via Rockchip RV1108 UART0"
804                 depends on ARCH_ROCKCHIP
805                 select DEBUG_UART_8250
806                 help
807                   Say Y here if you want kernel low-level debugging support
808                   on Rockchip RV1108 based platforms.
809
810         config DEBUG_RV1108_UART1
811                 bool "Kernel low-level debugging messages via Rockchip RV1108 UART1"
812                 depends on ARCH_ROCKCHIP
813                 select DEBUG_UART_8250
814                 help
815                   Say Y here if you want kernel low-level debugging support
816                   on Rockchip RV1108 based platforms.
817
818         config DEBUG_RV1108_UART2
819                 bool "Kernel low-level debugging messages via Rockchip RV1108 UART2"
820                 depends on ARCH_ROCKCHIP
821                 select DEBUG_UART_8250
822                 help
823                   Say Y here if you want kernel low-level debugging support
824                   on Rockchip RV1108 based platforms.
825
826         config DEBUG_RK29_UART0
827                 bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
828                 depends on ARCH_ROCKCHIP
829                 select DEBUG_UART_8250
830                 help
831                   Say Y here if you want kernel low-level debugging support
832                   on Rockchip based platforms.
833
834         config DEBUG_RK29_UART1
835                 bool "Kernel low-level debugging messages via Rockchip RK29 UART1"
836                 depends on ARCH_ROCKCHIP
837                 select DEBUG_UART_8250
838                 help
839                   Say Y here if you want kernel low-level debugging support
840                   on Rockchip based platforms.
841
842         config DEBUG_RK29_UART2
843                 bool "Kernel low-level debugging messages via Rockchip RK29 UART2"
844                 depends on ARCH_ROCKCHIP
845                 select DEBUG_UART_8250
846                 help
847                   Say Y here if you want kernel low-level debugging support
848                   on Rockchip based platforms.
849
850         config DEBUG_RK3X_UART0
851                 bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART0"
852                 depends on ARCH_ROCKCHIP
853                 select DEBUG_UART_8250
854                 help
855                   Say Y here if you want kernel low-level debugging support
856                   on Rockchip based platforms.
857
858         config DEBUG_RK3X_UART1
859                 bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART1"
860                 depends on ARCH_ROCKCHIP
861                 select DEBUG_UART_8250
862                 help
863                   Say Y here if you want kernel low-level debugging support
864                   on Rockchip based platforms.
865
866         config DEBUG_RK3X_UART2
867                 bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART2"
868                 depends on ARCH_ROCKCHIP
869                 select DEBUG_UART_8250
870                 help
871                   Say Y here if you want kernel low-level debugging support
872                   on Rockchip based platforms.
873
874         config DEBUG_RK3X_UART3
875                 bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART3"
876                 depends on ARCH_ROCKCHIP
877                 select DEBUG_UART_8250
878                 help
879                   Say Y here if you want kernel low-level debugging support
880                   on Rockchip based platforms.
881
882         config DEBUG_RK32_UART2
883                 bool "Kernel low-level debugging messages via Rockchip RK32 UART2"
884                 depends on ARCH_ROCKCHIP
885                 select DEBUG_UART_8250
886                 help
887                   Say Y here if you want kernel low-level debugging support
888                   on Rockchip RK32xx based platforms.
889
890         config DEBUG_R7S72100_SCIF2
891                 bool "Kernel low-level debugging messages via SCIF2 on R7S72100"
892                 depends on ARCH_R7S72100
893                 help
894                   Say Y here if you want kernel low-level debugging support
895                   via SCIF2 on Renesas RZ/A1H (R7S72100).
896
897         config DEBUG_RCAR_GEN1_SCIF0
898                 bool "Kernel low-level debugging messages via SCIF0 on R8A7778"
899                 depends on ARCH_R8A7778
900                 help
901                   Say Y here if you want kernel low-level debugging support
902                   via SCIF0 on Renesas R-Car M1A (R8A7778).
903
904         config DEBUG_RCAR_GEN1_SCIF2
905                 bool "Kernel low-level debugging messages via SCIF2 on R8A7779"
906                 depends on ARCH_R8A7779
907                 help
908                   Say Y here if you want kernel low-level debugging support
909                   via SCIF2 on Renesas R-Car H1 (R8A7779).
910
911         config DEBUG_RCAR_GEN2_SCIF0
912                 bool "Kernel low-level debugging messages via SCIF0 on R-Car Gen2 and RZ/G1"
913                 depends on ARCH_R8A7743 || ARCH_R8A7790 || ARCH_R8A7791 || \
914                         ARCH_R8A7792 || ARCH_R8A7793
915                 help
916                   Say Y here if you want kernel low-level debugging support
917                   via SCIF0 on Renesas RZ/G1M (R8A7743), R-Car H2 (R8A7790),
918                   M2-W (R8A7791), V2H (R8A7792), or M2-N (R8A7793).
919
920         config DEBUG_RCAR_GEN2_SCIF2
921                 bool "Kernel low-level debugging messages via SCIF2 on R8A7794"
922                 depends on ARCH_R8A7794
923                 help
924                   Say Y here if you want kernel low-level debugging support
925                   via SCIF2 on Renesas R-Car E2 (R8A7794).
926
927         config DEBUG_RMOBILE_SCIFA0
928                 bool "Kernel low-level debugging messages via SCIFA0 on R8A73A4"
929                 depends on ARCH_R8A73A4
930                 help
931                   Say Y here if you want kernel low-level debugging support
932                   via SCIFA0 on Renesas R-Mobile APE6 (R8A73A4).
933
934         config DEBUG_RMOBILE_SCIFA1
935                 bool "Kernel low-level debugging messages via SCIFA1 on R8A7740"
936                 depends on ARCH_R8A7740
937                 help
938                   Say Y here if you want kernel low-level debugging support
939                   via SCIFA1 on Renesas R-Mobile A1 (R8A7740).
940
941         config DEBUG_RMOBILE_SCIFA4
942                 bool "Kernel low-level debugging messages via SCIFA4 on SH73A0"
943                 depends on ARCH_SH73A0
944                 help
945                   Say Y here if you want kernel low-level debugging support
946                   via SCIFA4 on Renesas SH-Mobile AG5 (SH73A0).
947
948         config DEBUG_S3C_UART0
949                 depends on PLAT_SAMSUNG
950                 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
951                 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
952                 select DEBUG_S3C64XX_UART if ARCH_S3C64XX
953                 select DEBUG_S5PV210_UART if ARCH_S5PV210
954                 bool "Use Samsung S3C UART 0 for low-level debug"
955                 help
956                   Say Y here if you want the debug print routines to direct
957                   their output to UART 0. The port must have been initialised
958                   by the boot-loader before use.
959
960         config DEBUG_S3C_UART1
961                 depends on PLAT_SAMSUNG
962                 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
963                 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
964                 select DEBUG_S3C64XX_UART if ARCH_S3C64XX
965                 select DEBUG_S5PV210_UART if ARCH_S5PV210
966                 bool "Use Samsung S3C UART 1 for low-level debug"
967                 help
968                   Say Y here if you want the debug print routines to direct
969                   their output to UART 1. The port must have been initialised
970                   by the boot-loader before use.
971
972         config DEBUG_S3C_UART2
973                 depends on PLAT_SAMSUNG
974                 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
975                 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
976                 select DEBUG_S3C64XX_UART if ARCH_S3C64XX
977                 select DEBUG_S5PV210_UART if ARCH_S5PV210
978                 bool "Use Samsung S3C UART 2 for low-level debug"
979                 help
980                   Say Y here if you want the debug print routines to direct
981                   their output to UART 2. The port must have been initialised
982                   by the boot-loader before use.
983
984         config DEBUG_S3C_UART3
985                 depends on PLAT_SAMSUNG && (ARCH_EXYNOS || ARCH_S5PV210)
986                 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
987                 select DEBUG_S3C64XX_UART if ARCH_S3C64XX
988                 select DEBUG_S5PV210_UART if ARCH_S5PV210
989                 bool "Use Samsung S3C UART 3 for low-level debug"
990                 help
991                   Say Y here if you want the debug print routines to direct
992                   their output to UART 3. The port must have been initialised
993                   by the boot-loader before use.
994
995         config DEBUG_S3C2410_UART0
996                 depends on ARCH_S3C24XX
997                 select DEBUG_S3C2410_UART
998                 bool "Use S3C2410/S3C2412 UART 0 for low-level debug"
999                 help
1000                   Say Y here if you want the debug print routines to direct
1001                   their output to UART 0. The port must have been initialised
1002                   by the boot-loader before use.
1003
1004         config DEBUG_S3C2410_UART1
1005                 depends on ARCH_S3C24XX
1006                 select DEBUG_S3C2410_UART
1007                 bool "Use S3C2410/S3C2412 UART 1 for low-level debug"
1008                 help
1009                   Say Y here if you want the debug print routines to direct
1010                   their output to UART 1. The port must have been initialised
1011                   by the boot-loader before use.
1012
1013         config DEBUG_S3C2410_UART2
1014                 depends on ARCH_S3C24XX
1015                 select DEBUG_S3C2410_UART
1016                 bool "Use S3C2410/S3C2412 UART 2 for low-level debug"
1017                 help
1018                   Say Y here if you want the debug print routines to direct
1019                   their output to UART 2. The port must have been initialised
1020                   by the boot-loader before use.
1021
1022         config DEBUG_SA1100
1023                 depends on ARCH_SA1100
1024                 bool "Use SA1100 UARTs for low-level debug"
1025                 help
1026                   Say Y here if you want kernel low-level debugging support
1027                   on SA-11x0 UART ports. The kernel will check for the first
1028                   enabled UART in a sequence 3-1-2.
1029
1030         config DEBUG_SOCFPGA_UART0
1031                 depends on ARCH_SOCFPGA
1032                 bool "Use SOCFPGA UART0 for low-level debug"
1033                 select DEBUG_UART_8250
1034                 help
1035                   Say Y here if you want kernel low-level debugging support
1036                   on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
1037
1038         config DEBUG_SOCFPGA_ARRIA10_UART1
1039                 depends on ARCH_SOCFPGA
1040                 bool "Use SOCFPGA Arria10 UART1 for low-level debug"
1041                 select DEBUG_UART_8250
1042                 help
1043                   Say Y here if you want kernel low-level debugging support
1044                   on SOCFPGA(Arria 10) based platforms.
1045
1046         config DEBUG_SOCFPGA_CYCLONE5_UART1
1047                 depends on ARCH_SOCFPGA
1048                 bool "Use SOCFPGA Cyclone 5 UART1 for low-level debug"
1049                 select DEBUG_UART_8250
1050                 help
1051                   Say Y here if you want kernel low-level debugging support
1052                   on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
1053
1054         config DEBUG_SUN9I_UART0
1055                 bool "Kernel low-level debugging messages via sun9i UART0"
1056                 depends on MACH_SUN9I
1057                 select DEBUG_UART_8250
1058                 help
1059                   Say Y here if you want kernel low-level debugging support
1060                   on Allwinner A80 based platforms on the UART0.
1061
1062         config DEBUG_SUNXI_UART0
1063                 bool "Kernel low-level debugging messages via sunXi UART0"
1064                 depends on ARCH_SUNXI
1065                 select DEBUG_UART_8250
1066                 help
1067                   Say Y here if you want kernel low-level debugging support
1068                   on Allwinner A1X based platforms on the UART0.
1069
1070         config DEBUG_SUNXI_UART1
1071                 bool "Kernel low-level debugging messages via sunXi UART1"
1072                 depends on ARCH_SUNXI
1073                 select DEBUG_UART_8250
1074                 help
1075                   Say Y here if you want kernel low-level debugging support
1076                   on Allwinner A1X based platforms on the UART1.
1077
1078         config DEBUG_SUNXI_R_UART
1079                 bool "Kernel low-level debugging messages via sunXi R_UART"
1080                 depends on MACH_SUN6I || MACH_SUN8I
1081                 select DEBUG_UART_8250
1082                 help
1083                   Say Y here if you want kernel low-level debugging support
1084                   on Allwinner A31/A23 based platforms on the R_UART.
1085
1086         config DEBUG_SIRFPRIMA2_UART1
1087                 bool "Kernel low-level debugging messages via SiRFprimaII UART1"
1088                 depends on ARCH_PRIMA2
1089                 select DEBUG_SIRFSOC_UART
1090                 help
1091                   Say Y here if you want the debug print routines to direct
1092                   their output to the uart1 port on SiRFprimaII devices.
1093
1094         config DEBUG_SIRFATLAS7_UART0
1095                 bool "Kernel low-level debugging messages via SiRFatlas7 UART0"
1096                 depends on ARCH_ATLAS7
1097                 select DEBUG_SIRFSOC_UART
1098                 help
1099                   Say Y here if you want the debug print routines to direct
1100                   their output to the uart0 port on SiRFATLAS7 devices.The uart0
1101                   is used on SiRFATLAS7 as a extra debug port.sometimes an extra
1102                   debug port can be very useful.
1103
1104         config DEBUG_SIRFATLAS7_UART1
1105                 bool "Kernel low-level debugging messages via SiRFatlas7 UART1"
1106                 depends on ARCH_ATLAS7
1107                 select DEBUG_SIRFSOC_UART
1108                 help
1109                   Say Y here if you want the debug print routines to direct
1110                   their output to the uart1 port on SiRFATLAS7 devices.
1111
1112         config DEBUG_SPEAR3XX
1113                 bool "Kernel low-level debugging messages via ST SPEAr 3xx/6xx UART"
1114                 depends on ARCH_SPEAR3XX || ARCH_SPEAR6XX
1115                 select DEBUG_UART_PL01X
1116                 help
1117                   Say Y here if you want kernel low-level debugging support
1118                   on ST SPEAr based platforms.
1119
1120         config DEBUG_SPEAR13XX
1121                 bool "Kernel low-level debugging messages via ST SPEAr 13xx UART"
1122                 depends on ARCH_SPEAR13XX
1123                 select DEBUG_UART_PL01X
1124                 help
1125                   Say Y here if you want kernel low-level debugging support
1126                   on ST SPEAr13xx based platforms.
1127
1128         config STIH41X_DEBUG_ASC2
1129                 bool "Use StiH415/416 ASC2 UART for low-level debug"
1130                 depends on ARCH_STI
1131                 select DEBUG_STI_UART
1132                 help
1133                   Say Y here if you want kernel low-level debugging support
1134                   on STiH415/416 based platforms like b2000, which has
1135                   default UART wired up to ASC2.
1136
1137                   If unsure, say N.
1138
1139         config STIH41X_DEBUG_SBC_ASC1
1140                 bool "Use StiH415/416 SBC ASC1 UART for low-level debug"
1141                 depends on ARCH_STI
1142                 select DEBUG_STI_UART
1143                 help
1144                   Say Y here if you want kernel low-level debugging support
1145                   on STiH415/416 based platforms like b2020. which has
1146                   default UART wired up to SBC ASC1.
1147
1148                   If unsure, say N.
1149
1150         config TEGRA_DEBUG_UART_AUTO_ODMDATA
1151                 bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
1152                 depends on ARCH_TEGRA
1153                 select DEBUG_TEGRA_UART
1154                 help
1155                   Automatically determines which UART to use for low-level
1156                   debug based on the ODMDATA value. This value is part of
1157                   the BCT, and is written to the boot memory device using
1158                   nvflash, or other flashing tool.  When bits 19:18 are 3,
1159                   then bits 17:15 indicate which UART to use; 0/1/2/3/4
1160                   are UART A/B/C/D/E.
1161
1162         config TEGRA_DEBUG_UARTA
1163                 bool "Kernel low-level debugging messages via Tegra UART A"
1164                 depends on ARCH_TEGRA
1165                 select DEBUG_TEGRA_UART
1166                 help
1167                   Say Y here if you want kernel low-level debugging support
1168                   on Tegra based platforms.
1169
1170         config TEGRA_DEBUG_UARTB
1171                 bool "Kernel low-level debugging messages via Tegra UART B"
1172                 depends on ARCH_TEGRA
1173                 select DEBUG_TEGRA_UART
1174                 help
1175                   Say Y here if you want kernel low-level debugging support
1176                   on Tegra based platforms.
1177
1178         config TEGRA_DEBUG_UARTC
1179                 bool "Kernel low-level debugging messages via Tegra UART C"
1180                 depends on ARCH_TEGRA
1181                 select DEBUG_TEGRA_UART
1182                 help
1183                   Say Y here if you want kernel low-level debugging support
1184                   on Tegra based platforms.
1185
1186         config TEGRA_DEBUG_UARTD
1187                 bool "Kernel low-level debugging messages via Tegra UART D"
1188                 depends on ARCH_TEGRA
1189                 select DEBUG_TEGRA_UART
1190                 help
1191                   Say Y here if you want kernel low-level debugging support
1192                   on Tegra based platforms.
1193
1194         config TEGRA_DEBUG_UARTE
1195                 bool "Kernel low-level debugging messages via Tegra UART E"
1196                 depends on ARCH_TEGRA
1197                 select DEBUG_TEGRA_UART
1198                 help
1199                   Say Y here if you want kernel low-level debugging support
1200                   on Tegra based platforms.
1201
1202         config DEBUG_U300_UART
1203                 bool "Kernel low-level debugging messages via U300 UART0"
1204                 depends on ARCH_U300
1205                 select DEBUG_UART_PL01X
1206                 help
1207                   Say Y here if you want the debug print routines to direct
1208                   their output to the uart port on U300 devices.
1209
1210         config DEBUG_UX500_UART
1211                 depends on ARCH_U8500
1212                 bool "Use Ux500 UART for low-level debug"
1213                 help
1214                   Say Y here if you want kernel low-level debugging support
1215                   on Ux500 based platforms.
1216
1217         config DEBUG_VERSATILE
1218                 bool "Kernel low-level debugging messages via ARM Versatile UART"
1219                 depends on ARCH_VERSATILE
1220                 select DEBUG_UART_PL01X
1221                 help
1222                   Say Y here if you want kernel low-level debugging support
1223                   on ARM Versatile platforms.
1224
1225         config DEBUG_VEXPRESS_UART0_DETECT
1226                 bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
1227                 depends on ARCH_VEXPRESS && CPU_CP15_MMU
1228                 help
1229                   This option enables a simple heuristic which tries to determine
1230                   the motherboard's memory map variant (original or RS1) and then
1231                   choose the relevant UART0 base address.
1232
1233                   Note that this will only work with standard A-class core tiles,
1234                   and may fail with non-standard SMM or custom software models.
1235
1236         config DEBUG_VEXPRESS_UART0_CA9
1237                 bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
1238                 depends on ARCH_VEXPRESS
1239                 select DEBUG_UART_PL01X
1240                 help
1241                   This option selects UART0 at 0x10009000. Except for custom models,
1242                   this applies only to the V2P-CA9 tile.
1243
1244         config DEBUG_VEXPRESS_UART0_RS1
1245                 bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
1246                 depends on ARCH_VEXPRESS
1247                 select DEBUG_UART_PL01X
1248                 help
1249                   This option selects UART0 at 0x1c090000. This applies to most
1250                   of the tiles using the RS1 memory map, including all new A-class
1251                   core tiles, FPGA-based SMMs and software models.
1252
1253         config DEBUG_VEXPRESS_UART0_CRX
1254                 bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
1255                 depends on ARCH_VEXPRESS && !MMU
1256                 select DEBUG_UART_PL01X
1257                 help
1258                   This option selects UART0 at 0xb0090000. This is appropriate for
1259                   Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
1260
1261         config DEBUG_VF_UART
1262                 bool "Vybrid UART"
1263                 depends on SOC_VF610
1264                 help
1265                   Say Y here if you want kernel low-level debugging support
1266                   on Vybrid based platforms.
1267
1268         config DEBUG_VT8500_UART0
1269                 bool "Use UART0 on VIA/Wondermedia SoCs"
1270                 depends on ARCH_VT8500
1271                 help
1272                   This option selects UART0 on VIA/Wondermedia System-on-a-chip
1273                   devices, including VT8500, WM8505, WM8650 and WM8850.
1274
1275         config DEBUG_ZTE_ZX
1276                 bool "Use ZTE ZX UART"
1277                 select DEBUG_UART_PL01X
1278                 depends on ARCH_ZX
1279                 help
1280                   Say Y here if you are enabling ZTE ZX296702 SOC and need
1281                   debug uart support.
1282
1283                   This option is preferred over the platform specific
1284                   options; the platform specific options are deprecated
1285                   and will be soon removed.
1286
1287         config DEBUG_ZYNQ_UART0
1288                 bool "Kernel low-level debugging on Xilinx Zynq using UART0"
1289                 depends on ARCH_ZYNQ
1290                 help
1291                   Say Y here if you want the debug print routines to direct
1292                   their output to UART0 on the Zynq platform.
1293
1294         config DEBUG_ZYNQ_UART1
1295                 bool "Kernel low-level debugging on Xilinx Zynq using UART1"
1296                 depends on ARCH_ZYNQ
1297                 help
1298                   Say Y here if you want the debug print routines to direct
1299                   their output to UART1 on the Zynq platform.
1300
1301                   If you have a ZC702 board and want early boot messages to
1302                   appear on the USB serial adaptor, select this option.
1303
1304         config DEBUG_ICEDCC
1305                 bool "Kernel low-level debugging via EmbeddedICE DCC channel"
1306                 help
1307                   Say Y here if you want the debug print routines to direct
1308                   their output to the EmbeddedICE macrocell's DCC channel using
1309                   co-processor 14. This is known to work on the ARM9 style ICE
1310                   channel and on the XScale with the PEEDI.
1311
1312                   Note that the system will appear to hang during boot if there
1313                   is nothing connected to read from the DCC.
1314
1315         config DEBUG_SEMIHOSTING
1316                 bool "Kernel low-level debug output via semihosting I/O"
1317                 help
1318                   Semihosting enables code running on an ARM target to use
1319                   the I/O facilities on a host debugger/emulator through a
1320                   simple SVC call. The host debugger or emulator must have
1321                   semihosting enabled for the special svc call to be trapped
1322                   otherwise the kernel will crash.
1323
1324                   This is known to work with OpenOCD, as well as
1325                   ARM's Fast Models, or any other controlling environment
1326                   that implements semihosting.
1327
1328                   For more details about semihosting, please see
1329                   chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
1330
1331         config DEBUG_LL_UART_8250
1332                 bool "Kernel low-level debugging via 8250 UART"
1333                 help
1334                   Say Y here if you wish the debug print routes to direct
1335                   their output to an 8250 UART.  You can use this option
1336                   to provide the parameters for the 8250 UART rather than
1337                   selecting one of the platform specific options above if
1338                   you know the parameters for the port.
1339
1340                   This option is preferred over the platform specific
1341                   options; the platform specific options are deprecated
1342                   and will be soon removed.
1343
1344         config DEBUG_LL_UART_EFM32
1345                 bool "Kernel low-level debugging via efm32 UART"
1346                 depends on ARCH_EFM32
1347                 help
1348                   Say Y here if you want the debug print routines to direct
1349                   their output to an UART or USART port on efm32 based
1350                   machines. Use the following addresses for DEBUG_UART_PHYS:
1351
1352                     0x4000c000 | USART0
1353                     0x4000c400 | USART1
1354                     0x4000c800 | USART2
1355                     0x4000e000 | UART0
1356                     0x4000e400 | UART1
1357
1358         config DEBUG_LL_UART_PL01X
1359                 bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
1360                 help
1361                   Say Y here if you wish the debug print routes to direct
1362                   their output to a PL01x Primecell UART.  You can use
1363                   this option to provide the parameters for the UART
1364                   rather than selecting one of the platform specific
1365                   options above if you know the parameters for the port.
1366
1367                   This option is preferred over the platform specific
1368                   options; the platform specific options are deprecated
1369                   and will be soon removed.
1370
1371 endchoice
1372
1373 config DEBUG_AT91_UART
1374         bool
1375         depends on ARCH_AT91
1376
1377 config DEBUG_EXYNOS_UART
1378         bool
1379
1380 config DEBUG_S3C2410_UART
1381         bool
1382         select DEBUG_S3C24XX_UART
1383
1384 config DEBUG_S3C24XX_UART
1385         bool
1386
1387 config DEBUG_S3C64XX_UART
1388         bool
1389
1390 config DEBUG_S5PV210_UART
1391         bool
1392
1393 config DEBUG_OMAP2PLUS_UART
1394         bool
1395         depends on ARCH_OMAP2PLUS
1396
1397 config DEBUG_IMX_UART_PORT
1398         int "i.MX Debug UART Port Selection"
1399         depends on DEBUG_IMX1_UART || \
1400                    DEBUG_IMX25_UART || \
1401                    DEBUG_IMX21_IMX27_UART || \
1402                    DEBUG_IMX31_UART || \
1403                    DEBUG_IMX35_UART || \
1404                    DEBUG_IMX50_UART || \
1405                    DEBUG_IMX51_UART || \
1406                    DEBUG_IMX53_UART || \
1407                    DEBUG_IMX6Q_UART || \
1408                    DEBUG_IMX6SL_UART || \
1409                    DEBUG_IMX6SX_UART || \
1410                    DEBUG_IMX6UL_UART || \
1411                    DEBUG_IMX7D_UART
1412         default 1
1413         help
1414           Choose UART port on which kernel low-level debug messages
1415           should be output.
1416
1417 config DEBUG_VF_UART_PORT
1418         int "Vybrid Debug UART Port Selection" if DEBUG_VF_UART
1419         default 1
1420         range 0 3
1421         depends on SOC_VF610
1422         help
1423           Choose UART port on which kernel low-level debug messages
1424           should be output.
1425
1426 config DEBUG_TEGRA_UART
1427         bool
1428         depends on ARCH_TEGRA
1429
1430 config DEBUG_STI_UART
1431         bool
1432         depends on ARCH_STI
1433
1434 config DEBUG_SIRFSOC_UART
1435         bool
1436         depends on ARCH_SIRF
1437
1438 config DEBUG_LL_INCLUDE
1439         string
1440         default "debug/sa1100.S" if DEBUG_SA1100
1441         default "debug/palmchip.S" if DEBUG_UART_8250_PALMCHIP
1442         default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
1443         default "debug/at91.S" if DEBUG_AT91_UART
1444         default "debug/asm9260.S" if DEBUG_ASM9260_UART
1445         default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2
1446         default "debug/dc21285.S" if DEBUG_DC21285_PORT
1447         default "debug/meson.S" if DEBUG_MESON_UARTAO
1448         default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
1449         default "debug/exynos.S" if DEBUG_EXYNOS_UART
1450         default "debug/efm32.S" if DEBUG_LL_UART_EFM32
1451         default "debug/icedcc.S" if DEBUG_ICEDCC
1452         default "debug/imx.S" if DEBUG_IMX1_UART || \
1453                                  DEBUG_IMX25_UART || \
1454                                  DEBUG_IMX21_IMX27_UART || \
1455                                  DEBUG_IMX31_UART || \
1456                                  DEBUG_IMX35_UART || \
1457                                  DEBUG_IMX50_UART || \
1458                                  DEBUG_IMX51_UART || \
1459                                  DEBUG_IMX53_UART ||\
1460                                  DEBUG_IMX6Q_UART || \
1461                                  DEBUG_IMX6SL_UART || \
1462                                  DEBUG_IMX6SX_UART || \
1463                                  DEBUG_IMX6UL_UART || \
1464                                  DEBUG_IMX7D_UART
1465         default "debug/ks8695.S" if DEBUG_KS8695_UART
1466         default "debug/msm.S" if DEBUG_QCOM_UARTDM
1467         default "debug/netx.S" if DEBUG_NETX_UART
1468         default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
1469         default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2
1470         default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0
1471         default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2
1472         default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0
1473         default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF2
1474         default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA0
1475         default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA1
1476         default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA4
1477         default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART || DEBUG_S3C64XX_UART
1478         default "debug/s5pv210.S" if DEBUG_S5PV210_UART
1479         default "debug/sirf.S" if DEBUG_SIRFSOC_UART
1480         default "debug/sti.S" if DEBUG_STI_UART
1481         default "debug/tegra.S" if DEBUG_TEGRA_UART
1482         default "debug/ux500.S" if DEBUG_UX500_UART
1483         default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT
1484         default "debug/vf.S" if DEBUG_VF_UART
1485         default "debug/vt8500.S" if DEBUG_VT8500_UART0
1486         default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
1487         default "debug/bcm63xx.S" if DEBUG_BCM63XX_UART
1488         default "debug/digicolor.S" if DEBUG_DIGICOLOR_UA0
1489         default "debug/brcmstb.S" if DEBUG_BRCMSTB_UART
1490         default "mach/debug-macro.S"
1491
1492 # Compatibility options for PL01x
1493 config DEBUG_UART_PL01X
1494         bool
1495
1496 # Compatibility options for 8250
1497 config DEBUG_UART_8250
1498         def_bool ARCH_EBSA110 || \
1499                 ARCH_IOP13XX || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || \
1500                 ARCH_RPC
1501
1502 config DEBUG_UART_PHYS
1503         hex "Physical base address of debug UART"
1504         default 0x00100a00 if DEBUG_NETX_UART
1505         default 0x01c20000 if DEBUG_DAVINCI_DMx_UART0
1506         default 0x01c28000 if DEBUG_SUNXI_UART0
1507         default 0x01c28400 if DEBUG_SUNXI_UART1
1508         default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
1509         default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
1510         default 0x01f02800 if DEBUG_SUNXI_R_UART
1511         default 0x02530c00 if DEBUG_KEYSTONE_UART0
1512         default 0x02531000 if DEBUG_KEYSTONE_UART1
1513         default 0x03010fe0 if ARCH_RPC
1514         default 0x07000000 if DEBUG_SUN9I_UART0
1515         default 0x09405000 if DEBUG_ZTE_ZX
1516         default 0x10009000 if DEBUG_REALVIEW_STD_PORT || \
1517                                 DEBUG_VEXPRESS_UART0_CA9
1518         default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
1519         default 0x10124000 if DEBUG_RK3X_UART0
1520         default 0x10126000 if DEBUG_RK3X_UART1
1521         default 0x101f1000 if DEBUG_VERSATILE
1522         default 0x101fb000 if DEBUG_NOMADIK_UART
1523         default 0x10210000 if DEBUG_RV1108_UART2
1524         default 0x10220000 if DEBUG_RV1108_UART1
1525         default 0x10230000 if DEBUG_RV1108_UART0
1526         default 0x11002000 if DEBUG_MT8127_UART0
1527         default 0x11006000 if DEBUG_MT6589_UART0
1528         default 0x11009000 if DEBUG_MT8135_UART3
1529         default 0x16000000 if DEBUG_INTEGRATOR
1530         default 0x18000300 if DEBUG_BCM_5301X
1531         default 0x18010000 if DEBUG_SIRFATLAS7_UART0
1532         default 0x18020000 if DEBUG_SIRFATLAS7_UART1
1533         default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
1534         default 0x20001000 if DEBUG_HIP01_UART
1535         default 0x20060000 if DEBUG_RK29_UART0
1536         default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1537         default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1538         default 0x20201000 if DEBUG_BCM2835
1539         default 0x3f201000 if DEBUG_BCM2836
1540         default 0x3e000000 if DEBUG_BCM_KONA_UART
1541         default 0x4000e400 if DEBUG_LL_UART_EFM32
1542         default 0x40028000 if DEBUG_AT91_SAMV7_USART1
1543         default 0x40081000 if DEBUG_LPC18XX_UART0
1544         default 0x40090000 if DEBUG_LPC32XX
1545         default 0x40100000 if DEBUG_PXA_UART1
1546         default 0x42000000 if DEBUG_GEMINI
1547         default 0x44e09000 if DEBUG_AM33XXUART1
1548         default 0x48020000 if DEBUG_OMAP4UART3 || DEBUG_TI81XXUART1
1549         default 0x48022000 if DEBUG_TI81XXUART2
1550         default 0x48024000 if DEBUG_TI81XXUART3
1551         default 0x4806a000 if DEBUG_OMAP2UART1 || DEBUG_OMAP3UART1 || \
1552                                 DEBUG_OMAP4UART1 || DEBUG_OMAP5UART1
1553         default 0x4806c000 if DEBUG_OMAP2UART2 || DEBUG_OMAP3UART2 || \
1554                                 DEBUG_OMAP4UART2 || DEBUG_OMAP5UART2
1555         default 0x4806e000 if DEBUG_OMAP2UART3 || DEBUG_OMAP4UART4
1556         default 0x49020000 if DEBUG_OMAP3UART3
1557         default 0x49042000 if DEBUG_OMAP3UART4
1558         default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
1559                                 DEBUG_S3C2410_UART0)
1560         default 0x50004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
1561                                 DEBUG_S3C2410_UART1)
1562         default 0x50008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
1563                                 DEBUG_S3C2410_UART2)
1564         default 0x78000000 if DEBUG_CNS3XXX
1565         default 0x7c0003f8 if DEBUG_FOOTBRIDGE_COM1
1566         default 0x7f005000 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART0
1567         default 0x7f005400 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART1
1568         default 0x7f005800 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART2
1569         default 0x7f005c00 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART3
1570         default 0x80010000 if DEBUG_ASM9260_UART
1571         default 0x80070000 if DEBUG_IMX23_UART
1572         default 0x80074000 if DEBUG_IMX28_UART
1573         default 0x80230000 if DEBUG_PICOXCELL_UART
1574         default 0x808c0000 if DEBUG_EP93XX || ARCH_EP93XX
1575         default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1576         default 0xb0060000 if DEBUG_SIRFPRIMA2_UART1
1577         default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
1578         default 0xc0013000 if DEBUG_U300_UART
1579         default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1580         default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1581         default 0xd0000000 if DEBUG_SPEAR3XX
1582         default 0xd0012000 if DEBUG_MVEBU_UART0
1583         default 0xc81004c0 if DEBUG_MESON_UARTAO
1584         default 0xd4017000 if DEBUG_MMP_UART2
1585         default 0xd4018000 if DEBUG_MMP_UART3
1586         default 0xe0000000 if DEBUG_SPEAR13XX
1587         default 0xe4007000 if DEBUG_HIP04_UART
1588         default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
1589         default 0xe6c50000 if DEBUG_RMOBILE_SCIFA1
1590         default 0xe6c80000 if DEBUG_RMOBILE_SCIFA4
1591         default 0xe6e58000 if DEBUG_RCAR_GEN2_SCIF2
1592         default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0
1593         default 0xe8008000 if DEBUG_R7S72100_SCIF2
1594         default 0xf0000be0 if ARCH_EBSA110
1595         default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
1596         default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE
1597         default 0xf7fc9000 if DEBUG_BERLIN_UART
1598         default 0xf8020000 if DEBUG_AT91_SAMA5D2_UART1
1599         default 0xf8b00000 if DEBUG_HIX5HD2_UART
1600         default 0xf991e000 if DEBUG_QCOM_UARTDM
1601         default 0xfc00c000 if DEBUG_AT91_SAMA5D4_USART3
1602         default 0xfcb00000 if DEBUG_HI3620_UART
1603         default 0xfd883000 if DEBUG_ALPINE_UART0
1604         default 0xfe800000 if ARCH_IOP32X
1605         default 0xff690000 if DEBUG_RK32_UART2
1606         default 0xffc02000 if DEBUG_SOCFPGA_UART0
1607         default 0xffc02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1608         default 0xffc03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
1609         default 0xffd82340 if ARCH_IOP13XX
1610         default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
1611         default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
1612         default 0xfff36000 if DEBUG_HIGHBANK_UART
1613         default 0xfffb0000 if DEBUG_OMAP1UART1 || DEBUG_OMAP7XXUART1
1614         default 0xfffb0800 if DEBUG_OMAP1UART2 || DEBUG_OMAP7XXUART2
1615         default 0xfffb9800 if DEBUG_OMAP1UART3 || DEBUG_OMAP7XXUART3
1616         default 0xfffe8600 if DEBUG_BCM63XX_UART
1617         default 0xffffee00 if DEBUG_AT91_SAM9263_DBGU
1618         default 0xfffff200 if DEBUG_AT91_RM9200_DBGU
1619         default 0xfffff700 if ARCH_IOP33X
1620         depends on ARCH_EP93XX || \
1621                 DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1622                 DEBUG_LL_UART_EFM32 || \
1623                 DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
1624                 DEBUG_NETX_UART || \
1625                 DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \
1626                 DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \
1627                 DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF2 || \
1628                 DEBUG_RMOBILE_SCIFA0 || DEBUG_RMOBILE_SCIFA1 || \
1629                 DEBUG_RMOBILE_SCIFA4 || DEBUG_S3C24XX_UART || \
1630                 DEBUG_S3C64XX_UART || \
1631                 DEBUG_BCM63XX_UART || DEBUG_ASM9260_UART || \
1632                 DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \
1633                 DEBUG_AT91_UART
1634
1635 config DEBUG_UART_VIRT
1636         hex "Virtual base address of debug UART"
1637         default 0xc881f000 if DEBUG_RV1108_UART2
1638         default 0xc8821000 if DEBUG_RV1108_UART1
1639         default 0xc8912000 if DEBUG_RV1108_UART0
1640         default 0xe0000a00 if DEBUG_NETX_UART
1641         default 0xe0010fe0 if ARCH_RPC
1642         default 0xf0000be0 if ARCH_EBSA110
1643         default 0xf0010000 if DEBUG_ASM9260_UART
1644         default 0xf01fb000 if DEBUG_NOMADIK_UART
1645         default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836
1646         default 0xf1000300 if DEBUG_BCM_5301X
1647         default 0xf1002000 if DEBUG_MT8127_UART0
1648         default 0xf1006000 if DEBUG_MT6589_UART0
1649         default 0xf1009000 if DEBUG_MT8135_UART3
1650         default 0xf11f1000 if DEBUG_VERSATILE
1651         default 0xf1600000 if DEBUG_INTEGRATOR
1652         default 0xf1c28000 if DEBUG_SUNXI_UART0
1653         default 0xf1c28400 if DEBUG_SUNXI_UART1
1654         default 0xf1f02800 if DEBUG_SUNXI_R_UART
1655         default 0xf31004c0 if DEBUG_MESON_UARTAO
1656         default 0xf4090000 if DEBUG_LPC32XX
1657         default 0xf4200000 if DEBUG_GEMINI
1658         default 0xf6200000 if DEBUG_PXA_UART1
1659         default 0xf7000000 if DEBUG_SUN9I_UART0
1660         default 0xf7000000 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART0
1661         default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
1662                                 DEBUG_S3C2410_UART0)
1663         default 0xf7000400 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART1
1664         default 0xf7000800 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART2
1665         default 0xf7000c00 if DEBUG_S3C64XX_UART && DEBUG_S3C_UART3
1666         default 0xf7004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
1667                                 DEBUG_S3C2410_UART1)
1668         default 0xf7008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
1669                                 DEBUG_S3C2410_UART2)
1670         default 0xf7020000 if DEBUG_AT91_SAMA5D2_UART1
1671         default 0xf7fc9000 if DEBUG_BERLIN_UART
1672         default 0xf8007000 if DEBUG_HIP04_UART
1673         default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
1674         default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
1675         default 0xf8ffee00 if DEBUG_AT91_SAM9263_DBGU
1676         default 0xf8fff200 if DEBUG_AT91_RM9200_DBGU
1677         default 0xf9e09000 if DEBUG_AM33XXUART1
1678         default 0xfa020000 if DEBUG_OMAP4UART3 || DEBUG_TI81XXUART1
1679         default 0xfa022000 if DEBUG_TI81XXUART2
1680         default 0xfa024000 if DEBUG_TI81XXUART3
1681         default 0xfa06a000 if DEBUG_OMAP2UART1 || DEBUG_OMAP3UART1 || \
1682                                 DEBUG_OMAP4UART1 || DEBUG_OMAP5UART1
1683         default 0xfa06c000 if DEBUG_OMAP2UART2 || DEBUG_OMAP3UART2 || \
1684                                 DEBUG_OMAP4UART2 || DEBUG_OMAP5UART2
1685         default 0xfa06e000 if DEBUG_OMAP2UART3 || DEBUG_OMAP4UART4
1686         default 0xfa71e000 if DEBUG_QCOM_UARTDM
1687         default 0xfb002000 if DEBUG_CNS3XXX
1688         default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
1689         default 0xfb00c000 if DEBUG_AT91_SAMA5D4_USART3
1690         default 0xfb020000 if DEBUG_OMAP3UART3
1691         default 0xfb042000 if DEBUG_OMAP3UART4
1692         default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
1693         default 0xfc705000 if DEBUG_ZTE_ZX
1694         default 0xfcfe8600 if DEBUG_BCM63XX_UART
1695         default 0xfd000000 if DEBUG_SPEAR3XX || DEBUG_SPEAR13XX
1696         default 0xfd012000 if DEBUG_MVEBU_UART0_ALTERNATE && ARCH_MV78XX0
1697         default 0xfd883000 if DEBUG_ALPINE_UART0
1698         default 0xfde12000 if DEBUG_MVEBU_UART0_ALTERNATE && ARCH_DOVE
1699         default 0xfe012000 if DEBUG_MVEBU_UART0_ALTERNATE && ARCH_ORION5X
1700         default 0xfe017000 if DEBUG_MMP_UART2
1701         default 0xfe018000 if DEBUG_MMP_UART3
1702         default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
1703         default 0xfe230000 if DEBUG_PICOXCELL_UART
1704         default 0xfe300000 if DEBUG_BCM_KONA_UART
1705         default 0xfe800000 if ARCH_IOP32X
1706         default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
1707         default 0xfeb24000 if DEBUG_RK3X_UART0
1708         default 0xfeb26000 if DEBUG_RK3X_UART1
1709         default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
1710         default 0xfeb31000 if DEBUG_KEYSTONE_UART1
1711         default 0xfec02000 if DEBUG_SOCFPGA_UART0
1712         default 0xfec02100 if DEBUG_SOCFPGA_ARRIA10_UART1
1713         default 0xfec03000 if DEBUG_SOCFPGA_CYCLONE5_UART1
1714         default 0xfec12000 if (DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE) && ARCH_MVEBU
1715         default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
1716         default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
1717         default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
1718         default 0xfec20000 if DEBUG_SIRFATLAS7_UART1
1719         default 0xfec60000 if DEBUG_SIRFPRIMA2_UART1
1720         default 0xfec90000 if DEBUG_RK32_UART2
1721         default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
1722         default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
1723         default 0xfed60000 if DEBUG_RK29_UART0
1724         default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1725         default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1726         default 0xfedc0000 if DEBUG_EP93XX
1727         default 0xfee003f8 if DEBUG_FOOTBRIDGE_COM1
1728         default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1729         default 0xfee82340 if ARCH_IOP13XX
1730         default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1731         default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1732         default 0xfef36000 if DEBUG_HIGHBANK_UART
1733         default 0xfefb0000 if DEBUG_OMAP1UART1 || DEBUG_OMAP7XXUART1
1734         default 0xfefb0800 if DEBUG_OMAP1UART2 || DEBUG_OMAP7XXUART2
1735         default 0xfefb9800 if DEBUG_OMAP1UART3 || DEBUG_OMAP7XXUART3
1736         default 0xfefff700 if ARCH_IOP33X
1737         default 0xff003000 if DEBUG_U300_UART
1738         default 0xffd01000 if DEBUG_HIP01_UART
1739         default DEBUG_UART_PHYS if !MMU
1740         depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1741                 DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
1742                 DEBUG_NETX_UART || \
1743                 DEBUG_QCOM_UARTDM || DEBUG_S3C24XX_UART || \
1744                 DEBUG_S3C64XX_UART || \
1745                 DEBUG_BCM63XX_UART || DEBUG_ASM9260_UART || \
1746                 DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \
1747                 DEBUG_AT91_UART
1748
1749 config DEBUG_UART_8250_SHIFT
1750         int "Register offset shift for the 8250 debug UART"
1751         depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1752         default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \
1753                 DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || DEBUG_OMAP7XXUART3
1754         default 2
1755
1756 config DEBUG_UART_8250_WORD
1757         bool "Use 32-bit accesses for 8250 UART"
1758         depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1759         depends on DEBUG_UART_8250_SHIFT >= 2
1760         default y if DEBUG_PICOXCELL_UART || \
1761                 DEBUG_SOCFPGA_UART0 || DEBUG_SOCFPGA_ARRIA10_UART1 || \
1762                 DEBUG_SOCFPGA_CYCLONE5_UART1 || DEBUG_KEYSTONE_UART0 || \
1763                 DEBUG_KEYSTONE_UART1 || DEBUG_ALPINE_UART0 || \
1764                 DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
1765                 DEBUG_DAVINCI_DA8XX_UART2 || \
1766                 DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
1767
1768 config DEBUG_UART_8250_PALMCHIP
1769         bool "8250 UART is Palmchip BK-310x"
1770         depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1771         help
1772           Palmchip provides a UART implementation compatible with 16550
1773           except for having a different register layout.  Say Y here if
1774           the debug UART is of this type.
1775
1776 config DEBUG_UART_8250_FLOW_CONTROL
1777         bool "Enable flow control for 8250 UART"
1778         depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1779         default y if ARCH_EBSA110 || DEBUG_FOOTBRIDGE_COM1 || DEBUG_GEMINI || ARCH_RPC
1780
1781 config DEBUG_UNCOMPRESS
1782         bool
1783         depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
1784         default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
1785                      (!DEBUG_TEGRA_UART || !ZBOOT_ROM) && \
1786                      !DEBUG_BRCMSTB_UART
1787         help
1788           This option influences the normal decompressor output for
1789           multiplatform kernels.  Normally, multiplatform kernels disable
1790           decompressor output because it is not possible to know where to
1791           send the decompressor output.
1792
1793           When this option is set, the selected DEBUG_LL output method
1794           will be re-used for normal decompressor output on multiplatform
1795           kernels.
1796           
1797
1798 config UNCOMPRESS_INCLUDE
1799         string
1800         default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
1801                                         PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
1802         default "mach/uncompress.h"
1803
1804 config EARLY_PRINTK
1805         bool "Early printk"
1806         depends on DEBUG_LL
1807         help
1808           Say Y here if you want to have an early console using the
1809           kernel low-level debugging functions. Add earlyprintk to your
1810           kernel parameters to enable this console.
1811
1812 config ARM_KPROBES_TEST
1813         tristate "Kprobes test module"
1814         depends on KPROBES && MODULES
1815         help
1816           Perform tests of kprobes API and instruction set simulation.
1817
1818 config PID_IN_CONTEXTIDR
1819         bool "Write the current PID to the CONTEXTIDR register"
1820         depends on CPU_COPY_V6
1821         help
1822           Enabling this option causes the kernel to write the current PID to
1823           the PROCID field of the CONTEXTIDR register, at the expense of some
1824           additional instructions during context switch. Say Y here only if you
1825           are planning to use hardware trace tools with this kernel.
1826
1827 source "drivers/hwtracing/coresight/Kconfig"
1828
1829 endmenu