xref: /linux/arch/arm/Kconfig.debug (revision 6f112a08c1ed717a015dae190e289d53085c1bc4)
11da177e4SLinus Torvaldsmenu "Kernel hacking"
21da177e4SLinus Torvalds
31da177e4SLinus Torvaldssource "lib/Kconfig.debug"
41da177e4SLinus Torvalds
51fd15b87SRussell Kingconfig ARM_PTDUMP
61fd15b87SRussell King	bool "Export kernel pagetable layout to userspace via debugfs"
71fd15b87SRussell King	depends on DEBUG_KERNEL
865ba508dSArnd Bergmann	depends on MMU
91fd15b87SRussell King	select DEBUG_FS
101fd15b87SRussell King	---help---
111fd15b87SRussell King	  Say Y here if you want to show the kernel pagetable layout in a
121fd15b87SRussell King	  debugfs file. This information is only useful for kernel developers
131fd15b87SRussell King	  who are working in architecture specific areas of the kernel.
141fd15b87SRussell King	  It is probably not a good idea to enable this feature in a production
151fd15b87SRussell King	  kernel.
161fd15b87SRussell King	  If in doubt, say "N"
171fd15b87SRussell King
18087aaffcSNicolas Pitreconfig STRICT_DEVMEM
19087aaffcSNicolas Pitre	bool "Filter access to /dev/mem"
20087aaffcSNicolas Pitre	depends on MMU
21087aaffcSNicolas Pitre	---help---
22087aaffcSNicolas Pitre	  If this option is disabled, you allow userspace (root) access to all
23087aaffcSNicolas Pitre	  of memory, including kernel and userspace memory. Accidental
24087aaffcSNicolas Pitre	  access to this is obviously disastrous, but specific access can
25087aaffcSNicolas Pitre	  be used by people debugging the kernel.
26087aaffcSNicolas Pitre
27087aaffcSNicolas Pitre	  If this option is switched on, the /dev/mem file only allows
28087aaffcSNicolas Pitre	  userspace access to memory mapped peripherals.
29087aaffcSNicolas Pitre
30087aaffcSNicolas Pitre          If in doubt, say Y.
31087aaffcSNicolas Pitre
32adf8b37bSCatalin Marinas# RMK wants arm kernels compiled with frame pointers or stack unwinding.
331da177e4SLinus Torvalds# If you know what you are doing and are willing to live without stack
341da177e4SLinus Torvalds# traces, you can get a slightly smaller kernel by setting this option to
351da177e4SLinus Torvalds# n, but then RMK will have to kill you ;).
361da177e4SLinus Torvaldsconfig FRAME_POINTER
371da177e4SLinus Torvalds	bool
3816c79651SCatalin Marinas	depends on !THUMB2_KERNEL
390e341af8SRabin Vincent	default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER
401da177e4SLinus Torvalds	help
411da177e4SLinus Torvalds	  If you say N here, the resulting kernel will be slightly smaller and
42adf8b37bSCatalin Marinas	  faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled,
43adf8b37bSCatalin Marinas	  when a problem occurs with the kernel, the information that is
44adf8b37bSCatalin Marinas	  reported is severely limited.
45adf8b37bSCatalin Marinas
46adf8b37bSCatalin Marinasconfig ARM_UNWIND
474a50bfe3SRussell King	bool "Enable stack unwinding support (EXPERIMENTAL)"
48d6f94fa0SKees Cook	depends on AEABI
49adf8b37bSCatalin Marinas	default y
50adf8b37bSCatalin Marinas	help
51adf8b37bSCatalin Marinas	  This option enables stack unwinding support in the kernel
52adf8b37bSCatalin Marinas	  using the information automatically generated by the
53adf8b37bSCatalin Marinas	  compiler. The resulting kernel image is slightly bigger but
54adf8b37bSCatalin Marinas	  the performance is not affected. Currently, this feature
55adf8b37bSCatalin Marinas	  only works with EABI compilers. If unsure say Y.
561da177e4SLinus Torvalds
5709bfafacSRabin Vincentconfig OLD_MCOUNT
5809bfafacSRabin Vincent	bool
5909bfafacSRabin Vincent	depends on FUNCTION_TRACER && FRAME_POINTER
6009bfafacSRabin Vincent	default y
6109bfafacSRabin Vincent
621da177e4SLinus Torvaldsconfig DEBUG_USER
631da177e4SLinus Torvalds	bool "Verbose user fault messages"
641da177e4SLinus Torvalds	help
651da177e4SLinus Torvalds	  When a user program crashes due to an exception, the kernel can
661da177e4SLinus Torvalds	  print a brief message explaining what the problem was. This is
671da177e4SLinus Torvalds	  sometimes helpful for debugging but serves no purpose on a
681da177e4SLinus Torvalds	  production system. Most people should say N here.
691da177e4SLinus Torvalds
701da177e4SLinus Torvalds	  In addition, you need to pass user_debug=N on the kernel command
711da177e4SLinus Torvalds	  line to enable this feature.  N consists of the sum of:
721da177e4SLinus Torvalds
731da177e4SLinus Torvalds	      1 - undefined instruction events
741da177e4SLinus Torvalds	      2 - system calls
751da177e4SLinus Torvalds	      4 - invalid data aborts
761da177e4SLinus Torvalds	      8 - SIGSEGV faults
771da177e4SLinus Torvalds	     16 - SIGBUS faults
781da177e4SLinus Torvalds
791da177e4SLinus Torvalds# These options are only for real kernel hackers who want to get their hands dirty.
801da177e4SLinus Torvaldsconfig DEBUG_LL
814f5ef922SWill Deacon	bool "Kernel low-level debugging functions (read help!)"
821da177e4SLinus Torvalds	depends on DEBUG_KERNEL
831da177e4SLinus Torvalds	help
8435efb606SRussell King	  Say Y here to include definitions of printascii, printch, printhex
851da177e4SLinus Torvalds	  in the kernel.  This is helpful if you are debugging code that
861da177e4SLinus Torvalds	  executes before the console is initialized.
871da177e4SLinus Torvalds
884f5ef922SWill Deacon	  Note that selecting this option will limit the kernel to a single
894f5ef922SWill Deacon	  UART definition, as specified below. Attempting to boot the kernel
904f5ef922SWill Deacon	  image on a different platform *will not work*, so this option should
914f5ef922SWill Deacon	  not be enabled for kernels that are intended to be portable.
924f5ef922SWill Deacon
9317916b28SWill Deaconchoice
9417916b28SWill Deacon	prompt "Kernel low-level debugging port"
9517916b28SWill Deacon	depends on DEBUG_LL
9617916b28SWill Deacon
973c215e64STsahee Zidenberg	config DEBUG_ALPINE_UART0
983c215e64STsahee Zidenberg		bool "Kernel low-level debugging messages via Alpine UART0"
993c215e64STsahee Zidenberg		depends on ARCH_ALPINE
1003c215e64STsahee Zidenberg		select DEBUG_UART_8250
1013c215e64STsahee Zidenberg		help
1023c215e64STsahee Zidenberg		  Say Y here if you want kernel low-level debugging support
1033c215e64STsahee Zidenberg		  on Alpine based platforms.
1043c215e64STsahee Zidenberg
105d5bd4e8dSOleksij Rempel	config DEBUG_ASM9260_UART
106d5bd4e8dSOleksij Rempel		bool "Kernel low-level debugging via asm9260 UART"
107d5bd4e8dSOleksij Rempel		depends on MACH_ASM9260
108d5bd4e8dSOleksij Rempel		help
109d5bd4e8dSOleksij Rempel		  Say Y here if you want the debug print routines to direct
110d5bd4e8dSOleksij Rempel		  their output to an UART or USART port on asm9260 based
111d5bd4e8dSOleksij Rempel		  machines.
112d5bd4e8dSOleksij Rempel
113d5bd4e8dSOleksij Rempel		    DEBUG_UART_PHYS | DEBUG_UART_VIRT
114d5bd4e8dSOleksij Rempel
115d5bd4e8dSOleksij Rempel		    0x80000000      | 0xf0000000     | UART0
116d5bd4e8dSOleksij Rempel		    0x80004000      | 0xf0004000     | UART1
117d5bd4e8dSOleksij Rempel		    0x80008000      | 0xf0008000     | UART2
118d5bd4e8dSOleksij Rempel		    0x8000c000      | 0xf000c000     | UART3
119d5bd4e8dSOleksij Rempel		    0x80010000      | 0xf0010000     | UART4
120d5bd4e8dSOleksij Rempel		    0x80014000      | 0xf0014000     | UART5
121d5bd4e8dSOleksij Rempel		    0x80018000      | 0xf0018000     | UART6
122d5bd4e8dSOleksij Rempel		    0x8001c000      | 0xf001c000     | UART7
123d5bd4e8dSOleksij Rempel		    0x80020000      | 0xf0020000     | UART8
124d5bd4e8dSOleksij Rempel		    0x80024000      | 0xf0024000     | UART9
125d5bd4e8dSOleksij Rempel
126*6f112a08SAlexandre Belloni	config DEBUG_AT91_UART
127*6f112a08SAlexandre Belloni		bool "Kernel low-level debugging on Atmel SoCs"
12842dfd1e1SNicolas Ferre		depends on ARCH_AT91
129*6f112a08SAlexandre Belloni		help
130*6f112a08SAlexandre Belloni		  Say Y here if you want the debug print routines to direct
131*6f112a08SAlexandre Belloni		  their output to the serial port on atmel devices.
13213079a73SJean-Christophe PLAGNIOL-VILLARD
133*6f112a08SAlexandre Belloni		  SOC                  DEBUG_UART_PHYS   DEBUG_UART_VIRT  PORT
134*6f112a08SAlexandre Belloni		  rm9200, 9260/9g20,   0xfffff200        0xfefff200       DBGU
135*6f112a08SAlexandre Belloni		  9261/9g10, 9rl
136*6f112a08SAlexandre Belloni		  9263, 9g45, sama5d3  0xffffee00        0xfeffee00       DBGU
137*6f112a08SAlexandre Belloni		  sama5d4              0xfc00c000        0xfb00c000       USART3
138*6f112a08SAlexandre Belloni		  sama5d4              0xfc069000        0xfb069000       DBGU
139*6f112a08SAlexandre Belloni		  sama5d2              0xf8020000        0xf7020000       UART1
14013079a73SJean-Christophe PLAGNIOL-VILLARD
141*6f112a08SAlexandre Belloni		  Please adjust DEBUG_UART_PHYS configuration options based on
142*6f112a08SAlexandre Belloni		  your needs.
143c268a743SNicolas Ferre
144f1ac922dSStephen Warren	config DEBUG_BCM2835
145f1ac922dSStephen Warren		bool "Kernel low-level debugging on BCM2835 PL011 UART"
146f1ac922dSStephen Warren		depends on ARCH_BCM2835
1475c972af4SRussell King		select DEBUG_UART_PL01X
148f1ac922dSStephen Warren
14906580275SHauke Mehrtens	config DEBUG_BCM_5301X
15006580275SHauke Mehrtens		bool "Kernel low-level debugging on BCM5301X UART1"
15106580275SHauke Mehrtens		depends on ARCH_BCM_5301X
152140bd603SHauke Mehrtens		select DEBUG_UART_8250
15306580275SHauke Mehrtens
154753d1243SChristian Daudt	config DEBUG_BCM_KONA_UART
155753d1243SChristian Daudt		bool "Kernel low-level debugging messages via BCM KONA UART"
1567aa2077bSFlorian Fainelli		depends on ARCH_BCM_MOBILE
157753d1243SChristian Daudt		select DEBUG_UART_8250
158753d1243SChristian Daudt		help
159753d1243SChristian Daudt		  Say Y here if you want kernel low-level debugging support
160753d1243SChristian Daudt		  on Broadcom SoC platforms.
161753d1243SChristian Daudt		  This low level debug works for Broadcom
162753d1243SChristian Daudt		  mobile SoCs in the Kona family of chips (e.g. bcm28155,
163753d1243SChristian Daudt		  bcm11351, etc...)
164753d1243SChristian Daudt
165b51312beSFlorian Fainelli	config DEBUG_BCM63XX
166b51312beSFlorian Fainelli		bool "Kernel low-level debugging on BCM63XX UART"
167b51312beSFlorian Fainelli		depends on ARCH_BCM_63XX
168b51312beSFlorian Fainelli		select DEBUG_UART_BCM63XX
169b51312beSFlorian Fainelli
170caad0b41SSebastian Hesselbarth	config DEBUG_BERLIN_UART
171caad0b41SSebastian Hesselbarth		bool "Marvell Berlin SoC Debug UART"
172caad0b41SSebastian Hesselbarth		depends on ARCH_BERLIN
173caad0b41SSebastian Hesselbarth		select DEBUG_UART_8250
174caad0b41SSebastian Hesselbarth		help
175caad0b41SSebastian Hesselbarth		  Say Y here if you want kernel low-level debugging support
176caad0b41SSebastian Hesselbarth		  on Marvell Berlin SoC based platforms.
177caad0b41SSebastian Hesselbarth
17881b43a6eSMarc Carino	config DEBUG_BRCMSTB_UART
17981b43a6eSMarc Carino		bool "Use BRCMSTB UART for low-level debug"
18081b43a6eSMarc Carino		depends on ARCH_BRCMSTB
18181b43a6eSMarc Carino		select DEBUG_UART_8250
18281b43a6eSMarc Carino		help
18381b43a6eSMarc Carino		  Say Y here if you want the debug print routines to direct
18481b43a6eSMarc Carino		  their output to the first serial port on these devices.
18581b43a6eSMarc Carino
18681b43a6eSMarc Carino		  If you have a Broadcom STB chip and would like early print
18781b43a6eSMarc Carino		  messages to appear over the UART, select this option.
18881b43a6eSMarc Carino
189164acf96SStephen Boyd	config DEBUG_CLPS711X_UART1
190164acf96SStephen Boyd		bool "Kernel low-level debugging messages via UART1"
191164acf96SStephen Boyd		depends on ARCH_CLPS711X
192164acf96SStephen Boyd		help
193164acf96SStephen Boyd		  Say Y here if you want the debug print routines to direct
194164acf96SStephen Boyd		  their output to the first serial port on these devices.
19517916b28SWill Deacon
19617916b28SWill Deacon	config DEBUG_CLPS711X_UART2
19717916b28SWill Deacon		bool "Kernel low-level debugging messages via UART2"
19817916b28SWill Deacon		depends on ARCH_CLPS711X
19917916b28SWill Deacon		help
20017916b28SWill Deacon		  Say Y here if you want the debug print routines to direct
20117916b28SWill Deacon		  their output to the second serial port on these devices.
20217916b28SWill Deacon
20329c9b7beSArnd Bergmann	config DEBUG_CNS3XXX
20429c9b7beSArnd Bergmann		bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
20529c9b7beSArnd Bergmann		depends on ARCH_CNS3XXX
206b125170aSKrzysztof Hałasa		select DEBUG_UART_8250
20729c9b7beSArnd Bergmann		help
20829c9b7beSArnd Bergmann		  Say Y here if you want the debug print routines to direct
20929c9b7beSArnd Bergmann                  their output to the CNS3xxx UART0.
21029c9b7beSArnd Bergmann
211477099f1SUwe Kleine-König	config DEBUG_DAVINCI_DA8XX_UART1
212477099f1SUwe Kleine-König		bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
213477099f1SUwe Kleine-König		depends on ARCH_DAVINCI_DA8XX
21497bd1a48SRussell King		select DEBUG_UART_8250
215477099f1SUwe Kleine-König		help
216477099f1SUwe Kleine-König		  Say Y here if you want the debug print routines to direct
217477099f1SUwe Kleine-König		  their output to UART1 serial port on DaVinci DA8XX devices.
218477099f1SUwe Kleine-König
219477099f1SUwe Kleine-König	config DEBUG_DAVINCI_DA8XX_UART2
220477099f1SUwe Kleine-König		bool "Kernel low-level debugging on DaVinci DA8XX using UART2"
221477099f1SUwe Kleine-König		depends on ARCH_DAVINCI_DA8XX
22297bd1a48SRussell King		select DEBUG_UART_8250
223477099f1SUwe Kleine-König		help
224477099f1SUwe Kleine-König		  Say Y here if you want the debug print routines to direct
225477099f1SUwe Kleine-König		  their output to UART2 serial port on DaVinci DA8XX devices.
226477099f1SUwe Kleine-König
227477099f1SUwe Kleine-König	config DEBUG_DAVINCI_DMx_UART0
228477099f1SUwe Kleine-König		bool "Kernel low-level debugging on DaVinci DMx using UART0"
229477099f1SUwe Kleine-König		depends on ARCH_DAVINCI_DMx
23097bd1a48SRussell King		select DEBUG_UART_8250
231477099f1SUwe Kleine-König		help
232477099f1SUwe Kleine-König		  Say Y here if you want the debug print routines to direct
233477099f1SUwe Kleine-König		  their output to UART0 serial port on DaVinci DMx devices.
234477099f1SUwe Kleine-König
235aaf5e0beSNick Bowler	config DEBUG_ZYNQ_UART0
236aaf5e0beSNick Bowler		bool "Kernel low-level debugging on Xilinx Zynq using UART0"
237aaf5e0beSNick Bowler		depends on ARCH_ZYNQ
238aaf5e0beSNick Bowler		help
239aaf5e0beSNick Bowler		  Say Y here if you want the debug print routines to direct
240aaf5e0beSNick Bowler		  their output to UART0 on the Zynq platform.
241aaf5e0beSNick Bowler
242aaf5e0beSNick Bowler	config DEBUG_ZYNQ_UART1
243aaf5e0beSNick Bowler		bool "Kernel low-level debugging on Xilinx Zynq using UART1"
244aaf5e0beSNick Bowler		depends on ARCH_ZYNQ
245aaf5e0beSNick Bowler		help
246aaf5e0beSNick Bowler		  Say Y here if you want the debug print routines to direct
247aaf5e0beSNick Bowler		  their output to UART1 on the Zynq platform.
248aaf5e0beSNick Bowler
249aaf5e0beSNick Bowler		  If you have a ZC702 board and want early boot messages to
250aaf5e0beSNick Bowler		  appear on the USB serial adaptor, select this option.
251aaf5e0beSNick Bowler
252e76f4750SRussell King	config DEBUG_DC21285_PORT
253e76f4750SRussell King		bool "Kernel low-level debugging messages via footbridge serial port"
254e76f4750SRussell King		depends on FOOTBRIDGE
255e76f4750SRussell King		help
256e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
257e76f4750SRussell King		  their output to the serial port in the DC21285 (Footbridge).
258e76f4750SRussell King
259e23814daSBaruch Siach	config DEBUG_DIGICOLOR_UA0
260e23814daSBaruch Siach		bool "Kernel low-level debugging messages via Digicolor UA0"
261e23814daSBaruch Siach		depends on ARCH_DIGICOLOR
262e23814daSBaruch Siach		help
263e23814daSBaruch Siach		  Say Y here if you want the debug print routines to direct
264e23814daSBaruch Siach		  their output to the UA0 serial port in the CX92755.
265e23814daSBaruch Siach
266e76f4750SRussell King	config DEBUG_FOOTBRIDGE_COM1
267e76f4750SRussell King		bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
268e76f4750SRussell King		depends on FOOTBRIDGE
269e76f4750SRussell King		help
270e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
271e76f4750SRussell King		  their output to the 8250 at PCI COM1.
272e76f4750SRussell King
2738d258bebSHaojian Zhuang	config DEBUG_HI3620_UART
2748d258bebSHaojian Zhuang		bool "Hisilicon HI3620 Debug UART"
2758d258bebSHaojian Zhuang		depends on ARCH_HI3xxx
2768d258bebSHaojian Zhuang		select DEBUG_UART_PL01X
2778d258bebSHaojian Zhuang		help
2788d258bebSHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
2798d258bebSHaojian Zhuang		  on HI3620 UART.
2808d258bebSHaojian Zhuang
2818d258bebSHaojian Zhuang	config DEBUG_HI3716_UART
2828d258bebSHaojian Zhuang		bool "Hisilicon Hi3716 Debug UART"
2838d258bebSHaojian Zhuang		depends on ARCH_HI3xxx
2848d258bebSHaojian Zhuang		select DEBUG_UART_PL01X
2858d258bebSHaojian Zhuang		help
2868d258bebSHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
2878d258bebSHaojian Zhuang		  on HI3716 UART.
2888d258bebSHaojian Zhuang
289220e6cf7SRob Herring	config DEBUG_HIGHBANK_UART
290220e6cf7SRob Herring		bool "Kernel low-level debugging messages via Highbank UART"
291220e6cf7SRob Herring		depends on ARCH_HIGHBANK
2925c972af4SRussell King		select DEBUG_UART_PL01X
293220e6cf7SRob Herring		help
294220e6cf7SRob Herring		  Say Y here if you want the debug print routines to direct
295220e6cf7SRob Herring		  their output to the UART on Highbank based devices.
296220e6cf7SRob Herring
29727dafaa8SWang Long	config DEBUG_HIP01_UART
29827dafaa8SWang Long		bool "Hisilicon Hip01 Debug UART"
29927dafaa8SWang Long		depends on ARCH_HIP01
30027dafaa8SWang Long		select DEBUG_UART_8250
30127dafaa8SWang Long		help
30227dafaa8SWang Long		  Say Y here if you want kernel low-level debugging support
30327dafaa8SWang Long		  on HIP01 UART.
30427dafaa8SWang Long
305c9a1df48SHaojian Zhuang	config DEBUG_HIP04_UART
306c9a1df48SHaojian Zhuang		bool "Hisilicon HiP04 Debug UART"
307c9a1df48SHaojian Zhuang		depends on ARCH_HIP04
308c9a1df48SHaojian Zhuang		select DEBUG_UART_8250
309c9a1df48SHaojian Zhuang		help
310c9a1df48SHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
311c9a1df48SHaojian Zhuang		  on HIP04 UART.
312c9a1df48SHaojian Zhuang
31337bdaf82SOlof Johansson	config DEBUG_HIX5HD2_UART
31437bdaf82SOlof Johansson		bool "Hisilicon Hix5hd2 Debug UART"
31537bdaf82SOlof Johansson		depends on ARCH_HIX5HD2
31693fd03a8SCatalin Marinas		select DEBUG_UART_PL01X
31793fd03a8SCatalin Marinas		help
31837bdaf82SOlof Johansson		  Say Y here if you want kernel low-level debugging support
31937bdaf82SOlof Johansson		  on Hix5hd2 UART.
3201da177e4SLinus Torvalds
321f350b861SShawn Guo	config DEBUG_IMX1_UART
322f350b861SShawn Guo		bool "i.MX1 Debug UART"
323f350b861SShawn Guo		depends on SOC_IMX1
324f350b861SShawn Guo		help
325f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
326f350b861SShawn Guo		  on i.MX1.
327f350b861SShawn Guo
328f350b861SShawn Guo	config DEBUG_IMX23_UART
329f350b861SShawn Guo		bool "i.MX23 Debug UART"
330f350b861SShawn Guo		depends on SOC_IMX23
3315c972af4SRussell King		select DEBUG_UART_PL01X
332f350b861SShawn Guo		help
333f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
334f350b861SShawn Guo		  on i.MX23.
335f350b861SShawn Guo
336f350b861SShawn Guo	config DEBUG_IMX25_UART
337f350b861SShawn Guo		bool "i.MX25 Debug UART"
338f350b861SShawn Guo		depends on SOC_IMX25
339f350b861SShawn Guo		help
340f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
341f350b861SShawn Guo		  on i.MX25.
342f350b861SShawn Guo
343f350b861SShawn Guo	config DEBUG_IMX21_IMX27_UART
344f350b861SShawn Guo		bool "i.MX21 and i.MX27 Debug UART"
345f350b861SShawn Guo		depends on SOC_IMX21 || SOC_IMX27
346f350b861SShawn Guo		help
347f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
348f350b861SShawn Guo		  on i.MX21 or i.MX27.
349f350b861SShawn Guo
350f350b861SShawn Guo	config DEBUG_IMX28_UART
351f350b861SShawn Guo		bool "i.MX28 Debug UART"
352f350b861SShawn Guo		depends on SOC_IMX28
3535c972af4SRussell King		select DEBUG_UART_PL01X
354f350b861SShawn Guo		help
355f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
356f350b861SShawn Guo		  on i.MX28.
357f350b861SShawn Guo
3584ad625d4SShawn Guo	config DEBUG_IMX31_UART
3594ad625d4SShawn Guo		bool "i.MX31 Debug UART"
3604ad625d4SShawn Guo		depends on SOC_IMX31
361f350b861SShawn Guo		help
362f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
3634ad625d4SShawn Guo		  on i.MX31.
3644ad625d4SShawn Guo
3654ad625d4SShawn Guo	config DEBUG_IMX35_UART
3664ad625d4SShawn Guo		bool "i.MX35 Debug UART"
3674ad625d4SShawn Guo		depends on SOC_IMX35
3684ad625d4SShawn Guo		help
3694ad625d4SShawn Guo		  Say Y here if you want kernel low-level debugging support
3704ad625d4SShawn Guo		  on i.MX35.
371f350b861SShawn Guo
372ad364a70SGreg Ungerer	config DEBUG_IMX50_UART
373ad364a70SGreg Ungerer		bool "i.MX50 Debug UART"
374ad364a70SGreg Ungerer		depends on SOC_IMX50
375ad364a70SGreg Ungerer		help
376ad364a70SGreg Ungerer		  Say Y here if you want kernel low-level debugging support
377ad364a70SGreg Ungerer		  on i.MX50.
378ad364a70SGreg Ungerer
379f350b861SShawn Guo	config DEBUG_IMX51_UART
380f350b861SShawn Guo		bool "i.MX51 Debug UART"
381f350b861SShawn Guo		depends on SOC_IMX51
382f350b861SShawn Guo		help
383f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
384f350b861SShawn Guo		  on i.MX51.
385f350b861SShawn Guo
3867356420cSFabio Estevam	config DEBUG_IMX53_UART
3877356420cSFabio Estevam		bool "i.MX53 Debug UART"
3887356420cSFabio Estevam		depends on SOC_IMX53
389f350b861SShawn Guo		help
390f350b861SShawn Guo		  Say Y here if you want kernel low-level debugging support
3917356420cSFabio Estevam		  on i.MX53.
392f350b861SShawn Guo
39349c9e60eSShawn Guo	config DEBUG_IMX6Q_UART
3943c03a2feSShawn Guo		bool "i.MX6Q/DL Debug UART"
395785d7fabSDirk Behme		depends on SOC_IMX6Q
396785d7fabSDirk Behme		help
397785d7fabSDirk Behme		  Say Y here if you want kernel low-level debugging support
3983c03a2feSShawn Guo		  on i.MX6Q/DL.
399bac89d75SShawn Guo
40034e8a16bSShawn Guo	config DEBUG_IMX6SL_UART
40134e8a16bSShawn Guo		bool "i.MX6SL Debug UART"
40234e8a16bSShawn Guo		depends on SOC_IMX6SL
40334e8a16bSShawn Guo		help
40434e8a16bSShawn Guo		  Say Y here if you want kernel low-level debugging support
40534e8a16bSShawn Guo		  on i.MX6SL.
40634e8a16bSShawn Guo
40774368e81SShawn Guo	config DEBUG_IMX6SX_UART
40874368e81SShawn Guo		bool "i.MX6SX Debug UART"
40974368e81SShawn Guo		depends on SOC_IMX6SX
41074368e81SShawn Guo		help
41174368e81SShawn Guo		  Say Y here if you want kernel low-level debugging support
41274368e81SShawn Guo		  on i.MX6SX.
41374368e81SShawn Guo
41420c305f6SAnson Huang	config DEBUG_IMX6UL_UART
41520c305f6SAnson Huang		bool "i.MX6UL Debug UART"
41620c305f6SAnson Huang		depends on SOC_IMX6UL
41720c305f6SAnson Huang		help
41820c305f6SAnson Huang		  Say Y here if you want kernel low-level debugging support
41920c305f6SAnson Huang		  on i.MX6UL.
42020c305f6SAnson Huang
42152d7aec2SAnson Huang	config DEBUG_IMX7D_UART
42252d7aec2SAnson Huang		bool "i.MX7D Debug UART"
42352d7aec2SAnson Huang		depends on SOC_IMX7D
42452d7aec2SAnson Huang		help
42552d7aec2SAnson Huang		  Say Y here if you want kernel low-level debugging support
42652d7aec2SAnson Huang		  on i.MX7D.
42752d7aec2SAnson Huang
428828989adSSantosh Shilimkar	config DEBUG_KEYSTONE_UART0
429828989adSSantosh Shilimkar		bool "Kernel low-level debugging on KEYSTONE2 using UART0"
430828989adSSantosh Shilimkar		depends on ARCH_KEYSTONE
431f2acf003SRussell King		select DEBUG_UART_8250
432828989adSSantosh Shilimkar		help
433828989adSSantosh Shilimkar		  Say Y here if you want the debug print routines to direct
434828989adSSantosh Shilimkar		  their output to UART0 serial port on KEYSTONE2 devices.
435828989adSSantosh Shilimkar
436828989adSSantosh Shilimkar	config DEBUG_KEYSTONE_UART1
437828989adSSantosh Shilimkar		bool "Kernel low-level debugging on KEYSTONE2 using UART1"
438828989adSSantosh Shilimkar		depends on ARCH_KEYSTONE
439f2acf003SRussell King		select DEBUG_UART_8250
440828989adSSantosh Shilimkar		help
441828989adSSantosh Shilimkar		  Say Y here if you want the debug print routines to direct
442828989adSSantosh Shilimkar		  their output to UART1 serial port on KEYSTONE2 devices.
443828989adSSantosh Shilimkar
444abbfb21eSDaniel Thompson	config DEBUG_KS8695_UART
445abbfb21eSDaniel Thompson		bool "KS8695 Debug UART"
446abbfb21eSDaniel Thompson		depends on ARCH_KS8695
447abbfb21eSDaniel Thompson		help
448abbfb21eSDaniel Thompson		  Say Y here if you want kernel low-level debugging support
449abbfb21eSDaniel Thompson		  on KS8695.
450abbfb21eSDaniel Thompson
4510aed6a37SJoachim Eastwood	config DEBUG_LPC18XX_UART0
4520aed6a37SJoachim Eastwood		bool "Kernel low-level debugging via LPC18xx/43xx UART0"
4530aed6a37SJoachim Eastwood		depends on ARCH_LPC18XX
4540aed6a37SJoachim Eastwood		select DEBUG_UART_8250
4550aed6a37SJoachim Eastwood		help
4560aed6a37SJoachim Eastwood		  Say Y here if you want kernel low-level debugging support
4570aed6a37SJoachim Eastwood		  on NXP LPC18xx/43xx UART0.
4580aed6a37SJoachim Eastwood
459d8a00916SCarlo Caione	config DEBUG_MESON_UARTAO
460d8a00916SCarlo Caione		bool "Kernel low-level debugging via Meson6 UARTAO"
461d8a00916SCarlo Caione		depends on ARCH_MESON
462d8a00916SCarlo Caione		help
463d8a00916SCarlo Caione		  Say Y here if you want kernel low-lever debugging support
464d8a00916SCarlo Caione		  on Amlogic Meson6 based platforms on the UARTAO.
465d8a00916SCarlo Caione
466fa4cd2a8SHaojian Zhuang	config DEBUG_MMP_UART2
467fa4cd2a8SHaojian Zhuang		bool "Kernel low-level debugging message via MMP UART2"
468fa4cd2a8SHaojian Zhuang		depends on ARCH_MMP
4694a003647SRussell King		select DEBUG_UART_8250
470fa4cd2a8SHaojian Zhuang		help
471fa4cd2a8SHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
472fa4cd2a8SHaojian Zhuang		  on MMP UART2.
473fa4cd2a8SHaojian Zhuang
474fa4cd2a8SHaojian Zhuang	config DEBUG_MMP_UART3
475fa4cd2a8SHaojian Zhuang		bool "Kernel low-level debugging message via MMP UART3"
476fa4cd2a8SHaojian Zhuang		depends on ARCH_MMP
4774a003647SRussell King		select DEBUG_UART_8250
478fa4cd2a8SHaojian Zhuang		help
479fa4cd2a8SHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
480fa4cd2a8SHaojian Zhuang		  on MMP UART3.
481fa4cd2a8SHaojian Zhuang
4827098cff2SIvan T. Ivanov	config DEBUG_QCOM_UARTDM
4837098cff2SIvan T. Ivanov		bool "Kernel low-level debugging messages via QCOM UARTDM"
4847098cff2SIvan T. Ivanov		depends on ARCH_QCOM
485a3d3ef9dSStephen Boyd		help
486a3d3ef9dSStephen Boyd		  Say Y here if you want the debug print routines to direct
4877098cff2SIvan T. Ivanov		  their output to the serial port on Qualcomm devices.
488a3d3ef9dSStephen Boyd
48930cd6552SStephen Boyd		  ARCH      DEBUG_UART_PHYS   DEBUG_UART_VIRT
49030cd6552SStephen Boyd		  APQ8064   0x16640000        0xf0040000
4912f528dd3SGeorgi Djakov		  APQ8084   0xf995e000        0xfa75e000
4927098cff2SIvan T. Ivanov		  MSM8X60   0x19c40000        0xf0040000
4937098cff2SIvan T. Ivanov		  MSM8960   0x16440000        0xf0040000
4947098cff2SIvan T. Ivanov		  MSM8974   0xf991e000        0xfa71e000
4957098cff2SIvan T. Ivanov
4967098cff2SIvan T. Ivanov		  Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration
4977098cff2SIvan T. Ivanov		  options based on your needs.
4983c8828f6SRohit Vaswani
499d91125ddSMaxime Ripard	config DEBUG_MVEBU_UART0
500d91125ddSMaxime Ripard		bool "Kernel low-level debugging messages via MVEBU UART0 (old bootloaders)"
501bfd5af99SRob Herring		depends on ARCH_MVEBU
5024a003647SRussell King		select DEBUG_UART_8250
503bfd5af99SRob Herring		help
504bfd5af99SRob Herring		  Say Y here if you want kernel low-level debugging support
505d91125ddSMaxime Ripard		  on MVEBU based platforms on UART0.
506bfd5af99SRob Herring
507c2804cd6SThomas Petazzoni		  This option should be used with the old bootloaders
508c2804cd6SThomas Petazzoni		  that left the internal registers mapped at
509c2804cd6SThomas Petazzoni		  0xd0000000. As of today, this is the case on
510c2804cd6SThomas Petazzoni		  platforms such as the Globalscale Mirabox or the
511c2804cd6SThomas Petazzoni		  Plathome OpenBlocks AX3, when using the original
512c2804cd6SThomas Petazzoni		  bootloader.
513c2804cd6SThomas Petazzoni
514c2804cd6SThomas Petazzoni		  If the wrong DEBUG_MVEBU_UART* option is selected,
515c2804cd6SThomas Petazzoni		  when u-boot hands over to the kernel, the system
516c2804cd6SThomas Petazzoni		  silently crashes, with no serial output at all.
517c2804cd6SThomas Petazzoni
518d91125ddSMaxime Ripard	config DEBUG_MVEBU_UART0_ALTERNATE
519d91125ddSMaxime Ripard		bool "Kernel low-level debugging messages via MVEBU UART0 (new bootloaders)"
520c2804cd6SThomas Petazzoni		depends on ARCH_MVEBU
5214a003647SRussell King		select DEBUG_UART_8250
522c2804cd6SThomas Petazzoni		help
523c2804cd6SThomas Petazzoni		  Say Y here if you want kernel low-level debugging support
524d91125ddSMaxime Ripard		  on MVEBU based platforms on UART0.
525c2804cd6SThomas Petazzoni
526c2804cd6SThomas Petazzoni		  This option should be used with the new bootloaders
527c2804cd6SThomas Petazzoni		  that remap the internal registers at 0xf1000000.
528c2804cd6SThomas Petazzoni
529c2804cd6SThomas Petazzoni		  If the wrong DEBUG_MVEBU_UART* option is selected,
530c2804cd6SThomas Petazzoni		  when u-boot hands over to the kernel, the system
531c2804cd6SThomas Petazzoni		  silently crashes, with no serial output at all.
532c2804cd6SThomas Petazzoni
533bd920490SMaxime Ripard	config DEBUG_MVEBU_UART1_ALTERNATE
534bd920490SMaxime Ripard		bool "Kernel low-level debugging messages via MVEBU UART1 (new bootloaders)"
535bd920490SMaxime Ripard		depends on ARCH_MVEBU
536bd920490SMaxime Ripard		select DEBUG_UART_8250
537bd920490SMaxime Ripard		help
538bd920490SMaxime Ripard		  Say Y here if you want kernel low-level debugging support
539bd920490SMaxime Ripard		  on MVEBU based platforms on UART1.
5401da177e4SLinus Torvalds
5411da177e4SLinus Torvalds		  This option should be used with the new bootloaders
5421da177e4SLinus Torvalds		  that remap the internal registers at 0xf1000000.
5431da177e4SLinus Torvalds
5441da177e4SLinus Torvalds		  If the wrong DEBUG_MVEBU_UART* option is selected,
5451da177e4SLinus Torvalds		  when u-boot hands over to the kernel, the system
5461da177e4SLinus Torvalds		  silently crashes, with no serial output at all.
5471da177e4SLinus Torvalds
548c7c3eac6SShawn Guo	config DEBUG_VF_UART
549c7c3eac6SShawn Guo		bool "Vybrid UART"
550c7c3eac6SShawn Guo		depends on SOC_VF610
551c7c3eac6SShawn Guo		help
552c7c3eac6SShawn Guo		  Say Y here if you want kernel low-level debugging support
553c7c3eac6SShawn Guo		  on Vybrid based platforms.
554c7c3eac6SShawn Guo
5554d31e664SDaniel Thompson	config DEBUG_NETX_UART
5564d31e664SDaniel Thompson		bool "Kernel low-level debugging messages via NetX UART"
5574d31e664SDaniel Thompson		depends on ARCH_NETX
5584d31e664SDaniel Thompson		help
5594d31e664SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
5604d31e664SDaniel Thompson		  on Hilscher NetX based platforms.
5614d31e664SDaniel Thompson
562266c3479SLinus Walleij	config DEBUG_NOMADIK_UART
563266c3479SLinus Walleij		bool "Kernel low-level debugging messages via NOMADIK UART"
564266c3479SLinus Walleij		depends on ARCH_NOMADIK
5655c972af4SRussell King		select DEBUG_UART_PL01X
566266c3479SLinus Walleij		help
567266c3479SLinus Walleij		  Say Y here if you want kernel low-level debugging support
568266c3479SLinus Walleij		  on NOMADIK based platforms.
569266c3479SLinus Walleij
5709851ca57SDaniel Tang	config DEBUG_NSPIRE_CLASSIC_UART
5719851ca57SDaniel Tang		bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
5729851ca57SDaniel Tang		depends on ARCH_NSPIRE
5734a003647SRussell King		select DEBUG_UART_8250
5749851ca57SDaniel Tang		help
5759851ca57SDaniel Tang		  Say Y here if you want kernel low-level debugging support
5769851ca57SDaniel Tang		  on TI-NSPIRE classic models.
5779851ca57SDaniel Tang
5789851ca57SDaniel Tang	config DEBUG_NSPIRE_CX_UART
5799851ca57SDaniel Tang		bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
5809851ca57SDaniel Tang		depends on ARCH_NSPIRE
5815c972af4SRussell King		select DEBUG_UART_PL01X
5829851ca57SDaniel Tang		help
5839851ca57SDaniel Tang		  Say Y here if you want kernel low-level debugging support
5849851ca57SDaniel Tang		  on TI-NSPIRE CX models.
5859851ca57SDaniel Tang
586c26b9993SDaniel Thompson	config DEBUG_OMAP1UART1
587c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP1 UART1"
588c26b9993SDaniel Thompson		depends on ARCH_OMAP1
589c26b9993SDaniel Thompson		select DEBUG_UART_8250
590c26b9993SDaniel Thompson		help
591c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
592c26b9993SDaniel Thompson		  on OMAP1 based platforms (except OMAP730) on the UART1.
593c26b9993SDaniel Thompson
594c26b9993SDaniel Thompson	config DEBUG_OMAP1UART2
595c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP1 UART2"
596c26b9993SDaniel Thompson		depends on ARCH_OMAP1
597c26b9993SDaniel Thompson		select DEBUG_UART_8250
598c26b9993SDaniel Thompson		help
599c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
600c26b9993SDaniel Thompson		  on OMAP1 based platforms (except OMAP730) on the UART2.
601c26b9993SDaniel Thompson
602c26b9993SDaniel Thompson	config DEBUG_OMAP1UART3
603c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP1 UART3"
604c26b9993SDaniel Thompson		depends on ARCH_OMAP1
605c26b9993SDaniel Thompson		select DEBUG_UART_8250
606c26b9993SDaniel Thompson		help
607c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
608c26b9993SDaniel Thompson		  on OMAP1 based platforms (except OMAP730) on the UART3.
609c26b9993SDaniel Thompson
610cce278d2SRussell King	config DEBUG_OMAP2UART1
611cce278d2SRussell King		bool "OMAP2/3/4 UART1 (omap2/3 sdp boards and some omap3 boards)"
612808b7e07STony Lindgren		depends on ARCH_OMAP2PLUS
613cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
614808b7e07STony Lindgren		help
615cce278d2SRussell King		  This covers at least h4, 2430sdp, 3430sdp, 3630sdp,
616cce278d2SRussell King		  omap3 torpedo and 3530 lv som.
617cce278d2SRussell King
618cce278d2SRussell King	config DEBUG_OMAP2UART2
619cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP2/3/4 UART2"
620cce278d2SRussell King		depends on ARCH_OMAP2PLUS
621cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
622cce278d2SRussell King
623cce278d2SRussell King	config DEBUG_OMAP2UART3
624cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP2 UART3 (n8x0)"
625cce278d2SRussell King		depends on ARCH_OMAP2PLUS
626cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
627cce278d2SRussell King
628cce278d2SRussell King	config DEBUG_OMAP3UART3
629cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP3 UART3 (most omap3 boards)"
630cce278d2SRussell King		depends on ARCH_OMAP2PLUS
631cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
632cce278d2SRussell King		help
633cce278d2SRussell King		  This covers at least cm_t3x, beagle, crane, devkit8000,
634cce278d2SRussell King		  igep00x0, ldp, n900, n9(50), pandora, overo, touchbook,
635cce278d2SRussell King		  and 3517evm.
636cce278d2SRussell King
637cce278d2SRussell King	config DEBUG_OMAP4UART3
638cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP4/5 UART3 (omap4 blaze, panda, omap5 sevm)"
639cce278d2SRussell King		depends on ARCH_OMAP2PLUS
640cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
641cce278d2SRussell King
642cce278d2SRussell King	config DEBUG_OMAP3UART4
643cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP36XX UART4"
644cce278d2SRussell King		depends on ARCH_OMAP2PLUS
645cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
646cce278d2SRussell King
647cce278d2SRussell King	config DEBUG_OMAP4UART4
648cce278d2SRussell King		bool "Kernel low-level debugging messages via OMAP4/5 UART4"
649cce278d2SRussell King		depends on ARCH_OMAP2PLUS
650cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
651cce278d2SRussell King
652c26b9993SDaniel Thompson	config DEBUG_OMAP7XXUART1
653c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP730 UART1"
654c26b9993SDaniel Thompson		depends on ARCH_OMAP730
655c26b9993SDaniel Thompson		select DEBUG_UART_8250
656c26b9993SDaniel Thompson		help
657c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
658c26b9993SDaniel Thompson		  on OMAP730 based platforms on the UART1.
659c26b9993SDaniel Thompson
660c26b9993SDaniel Thompson	config DEBUG_OMAP7XXUART2
661c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP730 UART2"
662c26b9993SDaniel Thompson		depends on ARCH_OMAP730
663c26b9993SDaniel Thompson		select DEBUG_UART_8250
664c26b9993SDaniel Thompson		help
665c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
666c26b9993SDaniel Thompson		  on OMAP730 based platforms on the UART2.
667c26b9993SDaniel Thompson
668c26b9993SDaniel Thompson	config DEBUG_OMAP7XXUART3
669c26b9993SDaniel Thompson		bool "Kernel low-level debugging via OMAP730 UART3"
670c26b9993SDaniel Thompson		depends on ARCH_OMAP730
671c26b9993SDaniel Thompson		select DEBUG_UART_8250
672c26b9993SDaniel Thompson		help
673c26b9993SDaniel Thompson		  Say Y here if you want kernel low-level debugging support
674c26b9993SDaniel Thompson		  on OMAP730 based platforms on the UART3.
675c26b9993SDaniel Thompson
676cce278d2SRussell King	config DEBUG_TI81XXUART1
677cce278d2SRussell King		bool "Kernel low-level debugging messages via TI81XX UART1 (ti8148evm)"
678cce278d2SRussell King		depends on ARCH_OMAP2PLUS
679cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
680cce278d2SRussell King
681cce278d2SRussell King	config DEBUG_TI81XXUART2
682cce278d2SRussell King		bool "Kernel low-level debugging messages via TI81XX UART2"
683cce278d2SRussell King		depends on ARCH_OMAP2PLUS
684cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
685cce278d2SRussell King
686cce278d2SRussell King	config DEBUG_TI81XXUART3
687cce278d2SRussell King		bool "Kernel low-level debugging messages via TI81XX UART3 (ti8168evm)"
688cce278d2SRussell King		depends on ARCH_OMAP2PLUS
689cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
690cce278d2SRussell King
691cce278d2SRussell King	config DEBUG_AM33XXUART1
692cce278d2SRussell King		bool "Kernel low-level debugging messages via AM33XX UART1"
693cce278d2SRussell King		depends on ARCH_OMAP2PLUS
694cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
695cce278d2SRussell King
696cce278d2SRussell King	config DEBUG_ZOOM_UART
697cce278d2SRussell King		bool "Kernel low-level debugging messages via Zoom2/3 UART"
698cce278d2SRussell King		depends on ARCH_OMAP2PLUS
699cce278d2SRussell King		select DEBUG_OMAP2PLUS_UART
700808b7e07STony Lindgren
70159bba2a9SRob Herring	config DEBUG_PICOXCELL_UART
70259bba2a9SRob Herring		depends on ARCH_PICOXCELL
70359bba2a9SRob Herring		bool "Use PicoXcell UART for low-level debug"
7040b4cccbeSRussell King		select DEBUG_UART_8250
70559bba2a9SRob Herring		help
70659bba2a9SRob Herring		  Say Y here if you want kernel low-level debugging support
70759bba2a9SRob Herring		  on PicoXcell based platforms.
70859bba2a9SRob Herring
7090a43cd3bSHaojian Zhuang	config DEBUG_PXA_UART1
7100a43cd3bSHaojian Zhuang		depends on ARCH_PXA
7110a43cd3bSHaojian Zhuang		bool "Use PXA UART1 for low-level debug"
7124a003647SRussell King		select DEBUG_UART_8250
7130a43cd3bSHaojian Zhuang		help
7140a43cd3bSHaojian Zhuang		  Say Y here if you want kernel low-level debugging support
7150a43cd3bSHaojian Zhuang		  on PXA UART1.
7160a43cd3bSHaojian Zhuang
717e76f4750SRussell King	config DEBUG_REALVIEW_STD_PORT
718e76f4750SRussell King		bool "RealView Default UART"
719e76f4750SRussell King		depends on ARCH_REALVIEW
7205c972af4SRussell King		select DEBUG_UART_PL01X
721e76f4750SRussell King		help
722e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
723e76f4750SRussell King		  their output to the serial port on RealView EB, PB11MP, PBA8
724e76f4750SRussell King		  and PBX platforms.
725e76f4750SRussell King
726e76f4750SRussell King	config DEBUG_REALVIEW_PB1176_PORT
727e76f4750SRussell King		bool "RealView PB1176 UART"
728e76f4750SRussell King		depends on MACH_REALVIEW_PB1176
7295c972af4SRussell King		select DEBUG_UART_PL01X
730e76f4750SRussell King		help
731e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
732e76f4750SRussell King		  their output to the standard serial port on the RealView
733e76f4750SRussell King		  PB1176 platform.
734e76f4750SRussell King
735cce278d2SRussell King	config DEBUG_RK29_UART0
736cce278d2SRussell King		bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
73738bd6892SHeiko Stuebner		depends on ARCH_ROCKCHIP
7384a003647SRussell King		select DEBUG_UART_8250
739cce278d2SRussell King		help
740cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
741cce278d2SRussell King		  on Rockchip based platforms.
742cce278d2SRussell King
743cce278d2SRussell King	config DEBUG_RK29_UART1
744cce278d2SRussell King		bool "Kernel low-level debugging messages via Rockchip RK29 UART1"
745cce278d2SRussell King		depends on ARCH_ROCKCHIP
7464a003647SRussell King		select DEBUG_UART_8250
747cce278d2SRussell King		help
748cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
749cce278d2SRussell King		  on Rockchip based platforms.
750cce278d2SRussell King
751cce278d2SRussell King	config DEBUG_RK29_UART2
752cce278d2SRussell King		bool "Kernel low-level debugging messages via Rockchip RK29 UART2"
753cce278d2SRussell King		depends on ARCH_ROCKCHIP
7544a003647SRussell King		select DEBUG_UART_8250
755cce278d2SRussell King		help
756cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
757cce278d2SRussell King		  on Rockchip based platforms.
758cce278d2SRussell King
759cce278d2SRussell King	config DEBUG_RK3X_UART0
760aa9c4f74SHeiko Stuebner		bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART0"
761cce278d2SRussell King		depends on ARCH_ROCKCHIP
7624a003647SRussell King		select DEBUG_UART_8250
763cce278d2SRussell King		help
764cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
765cce278d2SRussell King		  on Rockchip based platforms.
766cce278d2SRussell King
767cce278d2SRussell King	config DEBUG_RK3X_UART1
768aa9c4f74SHeiko Stuebner		bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART1"
769cce278d2SRussell King		depends on ARCH_ROCKCHIP
7704a003647SRussell King		select DEBUG_UART_8250
771cce278d2SRussell King		help
772cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
773cce278d2SRussell King		  on Rockchip based platforms.
774cce278d2SRussell King
775cce278d2SRussell King	config DEBUG_RK3X_UART2
776aa9c4f74SHeiko Stuebner		bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART2"
777cce278d2SRussell King		depends on ARCH_ROCKCHIP
7784a003647SRussell King		select DEBUG_UART_8250
779cce278d2SRussell King		help
780cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
781cce278d2SRussell King		  on Rockchip based platforms.
782cce278d2SRussell King
783cce278d2SRussell King	config DEBUG_RK3X_UART3
784aa9c4f74SHeiko Stuebner		bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART3"
785cce278d2SRussell King		depends on ARCH_ROCKCHIP
7864a003647SRussell King		select DEBUG_UART_8250
78738bd6892SHeiko Stuebner		help
78838bd6892SHeiko Stuebner		  Say Y here if you want kernel low-level debugging support
78938bd6892SHeiko Stuebner		  on Rockchip based platforms.
79038bd6892SHeiko Stuebner
791efd02ee9SHeiko Stuebner	config DEBUG_RK32_UART2
792efd02ee9SHeiko Stuebner		bool "Kernel low-level debugging messages via Rockchip RK32 UART2"
793efd02ee9SHeiko Stuebner		depends on ARCH_ROCKCHIP
794efd02ee9SHeiko Stuebner		select DEBUG_UART_8250
795efd02ee9SHeiko Stuebner		help
796efd02ee9SHeiko Stuebner		  Say Y here if you want kernel low-level debugging support
797efd02ee9SHeiko Stuebner		  on Rockchip RK32xx based platforms.
798efd02ee9SHeiko Stuebner
7997a2071c5SGeert Uytterhoeven	config DEBUG_R7S72100_SCIF2
8007a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIF2 on R7S72100"
8017a2071c5SGeert Uytterhoeven		depends on ARCH_R7S72100
8027a2071c5SGeert Uytterhoeven		help
8037a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8047a2071c5SGeert Uytterhoeven		  via SCIF2 on Renesas RZ/A1H (R7S72100).
8057a2071c5SGeert Uytterhoeven
8067a2071c5SGeert Uytterhoeven	config DEBUG_RCAR_GEN1_SCIF0
8077a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIF0 on R8A7778"
8087a2071c5SGeert Uytterhoeven		depends on ARCH_R8A7778
8097a2071c5SGeert Uytterhoeven		help
8107a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8117a2071c5SGeert Uytterhoeven		  via SCIF0 on Renesas R-Car M1A (R8A7778).
8127a2071c5SGeert Uytterhoeven
8137a2071c5SGeert Uytterhoeven	config DEBUG_RCAR_GEN1_SCIF2
8147a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIF2 on R8A7779"
8157a2071c5SGeert Uytterhoeven		depends on ARCH_R8A7779
8167a2071c5SGeert Uytterhoeven		help
8177a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8187a2071c5SGeert Uytterhoeven		  via SCIF2 on Renesas R-Car H1 (R8A7779).
8197a2071c5SGeert Uytterhoeven
8207a2071c5SGeert Uytterhoeven	config DEBUG_RCAR_GEN2_SCIF0
821e2fd51b7SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793"
8227a2071c5SGeert Uytterhoeven		depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7793
8237a2071c5SGeert Uytterhoeven		help
8247a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8257a2071c5SGeert Uytterhoeven		  via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), or
8267a2071c5SGeert Uytterhoeven		  M2-N (R8A7793).
8277a2071c5SGeert Uytterhoeven
8287a2071c5SGeert Uytterhoeven	config DEBUG_RCAR_GEN2_SCIF2
8297a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIF2 on R8A7794"
8307a2071c5SGeert Uytterhoeven		depends on ARCH_R8A7794
8317a2071c5SGeert Uytterhoeven		help
8327a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8337a2071c5SGeert Uytterhoeven		  via SCIF2 on Renesas R-Car E2 (R8A7794).
8347a2071c5SGeert Uytterhoeven
8357a2071c5SGeert Uytterhoeven	config DEBUG_RMOBILE_SCIFA0
83659b89af1SMagnus Damm		bool "Kernel low-level debugging messages via SCIFA0 on R8A73A4"
83759b89af1SMagnus Damm		depends on ARCH_R8A73A4
8387a2071c5SGeert Uytterhoeven		help
8397a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
84059b89af1SMagnus Damm		  via SCIFA0 on Renesas R-Mobile APE6 (R8A73A4).
8417a2071c5SGeert Uytterhoeven
8427a2071c5SGeert Uytterhoeven	config DEBUG_RMOBILE_SCIFA1
8437a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIFA1 on R8A7740"
8447a2071c5SGeert Uytterhoeven		depends on ARCH_R8A7740
8457a2071c5SGeert Uytterhoeven		help
8467a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8477a2071c5SGeert Uytterhoeven		  via SCIFA1 on Renesas R-Mobile A1 (R8A7740).
8487a2071c5SGeert Uytterhoeven
8497a2071c5SGeert Uytterhoeven	config DEBUG_RMOBILE_SCIFA4
8507a2071c5SGeert Uytterhoeven		bool "Kernel low-level debugging messages via SCIFA4 on SH73A0"
8517a2071c5SGeert Uytterhoeven		depends on ARCH_SH73A0
8527a2071c5SGeert Uytterhoeven		help
8537a2071c5SGeert Uytterhoeven		  Say Y here if you want kernel low-level debugging support
8547a2071c5SGeert Uytterhoeven		  via SCIFA4 on Renesas SH-Mobile AG5 (SH73A0).
8557a2071c5SGeert Uytterhoeven
856e76f4750SRussell King	config DEBUG_S3C_UART0
857e76f4750SRussell King		depends on PLAT_SAMSUNG
858a2e40710SArnd Bergmann		select DEBUG_EXYNOS_UART if ARCH_EXYNOS
8591899de28SHeiko Stuebner		select DEBUG_S3C24XX_UART if ARCH_S3C24XX
8607bab7d9eSTomasz Figa		select DEBUG_S5PV210_UART if ARCH_S5PV210
8615cc8a016SSachin Kamat		bool "Use Samsung S3C UART 0 for low-level debug"
862e76f4750SRussell King		help
863e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
864e76f4750SRussell King		  their output to UART 0. The port must have been initialised
865e76f4750SRussell King		  by the boot-loader before use.
866e76f4750SRussell King
867e76f4750SRussell King	config DEBUG_S3C_UART1
868e76f4750SRussell King		depends on PLAT_SAMSUNG
869a2e40710SArnd Bergmann		select DEBUG_EXYNOS_UART if ARCH_EXYNOS
8701899de28SHeiko Stuebner		select DEBUG_S3C24XX_UART if ARCH_S3C24XX
8717bab7d9eSTomasz Figa		select DEBUG_S5PV210_UART if ARCH_S5PV210
8725cc8a016SSachin Kamat		bool "Use Samsung S3C UART 1 for low-level debug"
873e76f4750SRussell King		help
874e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
875e76f4750SRussell King		  their output to UART 1. The port must have been initialised
876e76f4750SRussell King		  by the boot-loader before use.
877e76f4750SRussell King
878e76f4750SRussell King	config DEBUG_S3C_UART2
879e76f4750SRussell King		depends on PLAT_SAMSUNG
880a2e40710SArnd Bergmann		select DEBUG_EXYNOS_UART if ARCH_EXYNOS
8811899de28SHeiko Stuebner		select DEBUG_S3C24XX_UART if ARCH_S3C24XX
8827bab7d9eSTomasz Figa		select DEBUG_S5PV210_UART if ARCH_S5PV210
8835cc8a016SSachin Kamat		bool "Use Samsung S3C UART 2 for low-level debug"
884e76f4750SRussell King		help
885e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
886e76f4750SRussell King		  their output to UART 2. The port must have been initialised
887e76f4750SRussell King		  by the boot-loader before use.
888e76f4750SRussell King
8895fa23ddeSOlof Johansson	config DEBUG_S3C_UART3
8907bab7d9eSTomasz Figa		depends on PLAT_SAMSUNG && (ARCH_EXYNOS || ARCH_S5PV210)
8917bab7d9eSTomasz Figa		select DEBUG_EXYNOS_UART if ARCH_EXYNOS
8927bab7d9eSTomasz Figa		select DEBUG_S5PV210_UART if ARCH_S5PV210
8935cc8a016SSachin Kamat		bool "Use Samsung S3C UART 3 for low-level debug"
8945fa23ddeSOlof Johansson		help
8955fa23ddeSOlof Johansson		  Say Y here if you want the debug print routines to direct
8965fa23ddeSOlof Johansson		  their output to UART 3. The port must have been initialised
8975fa23ddeSOlof Johansson		  by the boot-loader before use.
8985fa23ddeSOlof Johansson
899daf67dfcSHeiko Stuebner	config DEBUG_S3C2410_UART0
900daf67dfcSHeiko Stuebner		depends on ARCH_S3C24XX
901daf67dfcSHeiko Stuebner		select DEBUG_S3C2410_UART
902daf67dfcSHeiko Stuebner		bool "Use S3C2410/S3C2412 UART 0 for low-level debug"
903daf67dfcSHeiko Stuebner		help
904daf67dfcSHeiko Stuebner		  Say Y here if you want the debug print routines to direct
905daf67dfcSHeiko Stuebner		  their output to UART 0. The port must have been initialised
906daf67dfcSHeiko Stuebner		  by the boot-loader before use.
907daf67dfcSHeiko Stuebner
908daf67dfcSHeiko Stuebner	config DEBUG_S3C2410_UART1
909daf67dfcSHeiko Stuebner		depends on ARCH_S3C24XX
910daf67dfcSHeiko Stuebner		select DEBUG_S3C2410_UART
911daf67dfcSHeiko Stuebner		bool "Use S3C2410/S3C2412 UART 1 for low-level debug"
912daf67dfcSHeiko Stuebner		help
913daf67dfcSHeiko Stuebner		  Say Y here if you want the debug print routines to direct
914daf67dfcSHeiko Stuebner		  their output to UART 1. The port must have been initialised
915daf67dfcSHeiko Stuebner		  by the boot-loader before use.
916daf67dfcSHeiko Stuebner
917daf67dfcSHeiko Stuebner	config DEBUG_S3C2410_UART2
918daf67dfcSHeiko Stuebner		depends on ARCH_S3C24XX
919daf67dfcSHeiko Stuebner		select DEBUG_S3C2410_UART
920daf67dfcSHeiko Stuebner		bool "Use S3C2410/S3C2412 UART 2 for low-level debug"
921daf67dfcSHeiko Stuebner		help
922daf67dfcSHeiko Stuebner		  Say Y here if you want the debug print routines to direct
923daf67dfcSHeiko Stuebner		  their output to UART 2. The port must have been initialised
924daf67dfcSHeiko Stuebner		  by the boot-loader before use.
925daf67dfcSHeiko Stuebner
926e6131fa3SDmitry Eremin-Solenikov	config DEBUG_SA1100
927e6131fa3SDmitry Eremin-Solenikov		depends on ARCH_SA1100
928e6131fa3SDmitry Eremin-Solenikov		bool "Use SA1100 UARTs for low-level debug"
929e6131fa3SDmitry Eremin-Solenikov		help
930e6131fa3SDmitry Eremin-Solenikov		  Say Y here if you want kernel low-level debugging support
931e6131fa3SDmitry Eremin-Solenikov		  on SA-11x0 UART ports. The kernel will check for the first
932e6131fa3SDmitry Eremin-Solenikov		  enabled UART in a sequence 3-1-2.
933e6131fa3SDmitry Eremin-Solenikov
934de73c162SDinh Nguyen	config DEBUG_SOCFPGA_UART0
9356111bf7cSRob Herring		depends on ARCH_SOCFPGA
936de73c162SDinh Nguyen		bool "Use SOCFPGA UART0 for low-level debug"
9370b4cccbeSRussell King		select DEBUG_UART_8250
9386111bf7cSRob Herring		help
9396111bf7cSRob Herring		  Say Y here if you want kernel low-level debugging support
940de73c162SDinh Nguyen		  on SOCFPGA(Cyclone 5 and Arria 5) based platforms.
941de73c162SDinh Nguyen
942de73c162SDinh Nguyen	config DEBUG_SOCFPGA_UART1
943de73c162SDinh Nguyen		depends on ARCH_SOCFPGA
944de73c162SDinh Nguyen		bool "Use SOCFPGA UART1 for low-level debug"
945de73c162SDinh Nguyen		select DEBUG_UART_8250
946de73c162SDinh Nguyen		help
947de73c162SDinh Nguyen		  Say Y here if you want kernel low-level debugging support
948de73c162SDinh Nguyen		  on SOCFPGA(Arria 10) based platforms.
949de73c162SDinh Nguyen
9506111bf7cSRob Herring
951d4da889aSChen-Yu Tsai	config DEBUG_SUN9I_UART0
952d4da889aSChen-Yu Tsai		bool "Kernel low-level debugging messages via sun9i UART0"
953d4da889aSChen-Yu Tsai		depends on MACH_SUN9I
954d4da889aSChen-Yu Tsai		select DEBUG_UART_8250
955d4da889aSChen-Yu Tsai		help
956d4da889aSChen-Yu Tsai		  Say Y here if you want kernel low-level debugging support
957d4da889aSChen-Yu Tsai		  on Allwinner A80 based platforms on the UART0.
958d4da889aSChen-Yu Tsai
959aa25115aSStefan Roese	config DEBUG_SUNXI_UART0
960aa25115aSStefan Roese		bool "Kernel low-level debugging messages via sunXi UART0"
961aa25115aSStefan Roese		depends on ARCH_SUNXI
9624a003647SRussell King		select DEBUG_UART_8250
963aa25115aSStefan Roese		help
964aa25115aSStefan Roese		  Say Y here if you want kernel low-level debugging support
965aa25115aSStefan Roese		  on Allwinner A1X based platforms on the UART0.
966aa25115aSStefan Roese
967cb84fa18SMaxime Ripard	config DEBUG_SUNXI_UART1
968cb84fa18SMaxime Ripard		bool "Kernel low-level debugging messages via sunXi UART1"
969cb84fa18SMaxime Ripard		depends on ARCH_SUNXI
9704a003647SRussell King		select DEBUG_UART_8250
971cb84fa18SMaxime Ripard		help
972cb84fa18SMaxime Ripard		  Say Y here if you want kernel low-level debugging support
973cb84fa18SMaxime Ripard		  on Allwinner A1X based platforms on the UART1.
974cb84fa18SMaxime Ripard
975c4718543SChen-Yu Tsai	config DEBUG_SUNXI_R_UART
976c4718543SChen-Yu Tsai		bool "Kernel low-level debugging messages via sunXi R_UART"
977c4718543SChen-Yu Tsai		depends on MACH_SUN6I || MACH_SUN8I
978c4718543SChen-Yu Tsai		select DEBUG_UART_8250
979c4718543SChen-Yu Tsai		help
980c4718543SChen-Yu Tsai		  Say Y here if you want kernel low-level debugging support
981c4718543SChen-Yu Tsai		  on Allwinner A31/A23 based platforms on the R_UART.
982c4718543SChen-Yu Tsai
983cce278d2SRussell King	config TEGRA_DEBUG_UART_AUTO_ODMDATA
984cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
98546067803SStephen Warren		depends on ARCH_TEGRA
986cce278d2SRussell King		select DEBUG_TEGRA_UART
987cce278d2SRussell King		help
988cce278d2SRussell King		  Automatically determines which UART to use for low-level
989cce278d2SRussell King		  debug based on the ODMDATA value. This value is part of
990cce278d2SRussell King		  the BCT, and is written to the boot memory device using
991cce278d2SRussell King		  nvflash, or other flashing tool.  When bits 19:18 are 3,
992cce278d2SRussell King		  then bits 17:15 indicate which UART to use; 0/1/2/3/4
993cce278d2SRussell King		  are UART A/B/C/D/E.
994cce278d2SRussell King
995cce278d2SRussell King	config TEGRA_DEBUG_UARTA
996cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART A"
997cce278d2SRussell King		depends on ARCH_TEGRA
998cce278d2SRussell King		select DEBUG_TEGRA_UART
999cce278d2SRussell King		help
1000cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
1001cce278d2SRussell King		  on Tegra based platforms.
1002cce278d2SRussell King
1003cce278d2SRussell King	config TEGRA_DEBUG_UARTB
1004cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART B"
1005cce278d2SRussell King		depends on ARCH_TEGRA
1006cce278d2SRussell King		select DEBUG_TEGRA_UART
1007cce278d2SRussell King		help
1008cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
1009cce278d2SRussell King		  on Tegra based platforms.
1010cce278d2SRussell King
1011cce278d2SRussell King	config TEGRA_DEBUG_UARTC
1012cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART C"
1013cce278d2SRussell King		depends on ARCH_TEGRA
1014cce278d2SRussell King		select DEBUG_TEGRA_UART
1015cce278d2SRussell King		help
1016cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
1017cce278d2SRussell King		  on Tegra based platforms.
1018cce278d2SRussell King
1019cce278d2SRussell King	config TEGRA_DEBUG_UARTD
1020cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART D"
1021cce278d2SRussell King		depends on ARCH_TEGRA
1022cce278d2SRussell King		select DEBUG_TEGRA_UART
1023cce278d2SRussell King		help
1024cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
1025cce278d2SRussell King		  on Tegra based platforms.
1026cce278d2SRussell King
1027cce278d2SRussell King	config TEGRA_DEBUG_UARTE
1028cce278d2SRussell King		bool "Kernel low-level debugging messages via Tegra UART E"
1029cce278d2SRussell King		depends on ARCH_TEGRA
1030cce278d2SRussell King		select DEBUG_TEGRA_UART
103146067803SStephen Warren		help
103246067803SStephen Warren		  Say Y here if you want kernel low-level debugging support
103346067803SStephen Warren		  on Tegra based platforms.
103446067803SStephen Warren
10357f46a107SBarry Song	config DEBUG_SIRFPRIMA2_UART1
10367f46a107SBarry Song		bool "Kernel low-level debugging messages via SiRFprimaII UART1"
10377f46a107SBarry Song		depends on ARCH_PRIMA2
103801ea63d9SGuo Zeng		select DEBUG_SIRFSOC_UART
10397f46a107SBarry Song		help
10407f46a107SBarry Song		  Say Y here if you want the debug print routines to direct
10417f46a107SBarry Song		  their output to the uart1 port on SiRFprimaII devices.
10427f46a107SBarry Song
104301ea63d9SGuo Zeng	config DEBUG_SIRFATLAS7_UART0
104401ea63d9SGuo Zeng		bool "Kernel low-level debugging messages via SiRFatlas7 UART0"
104501ea63d9SGuo Zeng		depends on ARCH_ATLAS7
104601ea63d9SGuo Zeng		select DEBUG_SIRFSOC_UART
10477f46a107SBarry Song		help
10487f46a107SBarry Song		  Say Y here if you want the debug print routines to direct
104901ea63d9SGuo Zeng		  their output to the uart0 port on SiRFATLAS7 devices.The uart0
105001ea63d9SGuo Zeng		  is used on SiRFATLAS7 as a extra debug port.sometimes an extra
105101ea63d9SGuo Zeng		  debug port can be very useful.
105201ea63d9SGuo Zeng
105301ea63d9SGuo Zeng	config DEBUG_SIRFATLAS7_UART1
105401ea63d9SGuo Zeng		bool "Kernel low-level debugging messages via SiRFatlas7 UART1"
105501ea63d9SGuo Zeng		depends on ARCH_ATLAS7
105601ea63d9SGuo Zeng		select DEBUG_SIRFSOC_UART
105701ea63d9SGuo Zeng		help
105801ea63d9SGuo Zeng		  Say Y here if you want the debug print routines to direct
105901ea63d9SGuo Zeng		  their output to the uart1 port on SiRFATLAS7 devices.
10607f46a107SBarry Song
1061cce278d2SRussell King	config STIH41X_DEBUG_ASC2
1062cce278d2SRussell King		bool "Use StiH415/416 ASC2 UART for low-level debug"
10635562b800SArnd Bergmann		depends on ARCH_STI
1064cce278d2SRussell King		select DEBUG_STI_UART
10655562b800SArnd Bergmann		help
10665562b800SArnd Bergmann		  Say Y here if you want kernel low-level debugging support
1067cce278d2SRussell King		  on STiH415/416 based platforms like b2000, which has
1068cce278d2SRussell King		  default UART wired up to ASC2.
1069cce278d2SRussell King
1070cce278d2SRussell King		  If unsure, say N.
1071cce278d2SRussell King
1072cce278d2SRussell King	config STIH41X_DEBUG_SBC_ASC1
1073cce278d2SRussell King		bool "Use StiH415/416 SBC ASC1 UART for low-level debug"
1074cce278d2SRussell King		depends on ARCH_STI
1075cce278d2SRussell King		select DEBUG_STI_UART
1076cce278d2SRussell King		help
1077cce278d2SRussell King		  Say Y here if you want kernel low-level debugging support
1078cce278d2SRussell King		  on STiH415/416 based platforms like b2020. which has
1079cce278d2SRussell King		  default UART wired up to SBC ASC1.
10805562b800SArnd Bergmann
10815562b800SArnd Bergmann		  If unsure, say N.
10825562b800SArnd Bergmann
1083dd324da7SLinus Walleij	config DEBUG_U300_UART
1084dd324da7SLinus Walleij		bool "Kernel low-level debugging messages via U300 UART0"
1085dd324da7SLinus Walleij		depends on ARCH_U300
10865c972af4SRussell King		select DEBUG_UART_PL01X
1087dd324da7SLinus Walleij		help
1088dd324da7SLinus Walleij		  Say Y here if you want the debug print routines to direct
1089dd324da7SLinus Walleij		  their output to the uart port on U300 devices.
1090dd324da7SLinus Walleij
1091f87b95ddSLinus Walleij	config DEBUG_UX500_UART
1092f87b95ddSLinus Walleij		depends on ARCH_U8500
1093f87b95ddSLinus Walleij		bool "Use Ux500 UART for low-level debug"
1094f87b95ddSLinus Walleij		help
1095f87b95ddSLinus Walleij		  Say Y here if you want kernel low-level debugging support
1096f87b95ddSLinus Walleij		  on Ux500 based platforms.
1097f87b95ddSLinus Walleij
1098d6682085SMatthias Brugger	config DEBUG_MT6589_UART0
1099d6682085SMatthias Brugger		bool "Mediatek mt6589 UART0"
1100d6682085SMatthias Brugger		depends on ARCH_MEDIATEK
1101d6682085SMatthias Brugger		select DEBUG_UART_8250
1102d6682085SMatthias Brugger		help
1103d6682085SMatthias Brugger		  Say Y here if you want kernel low-level debugging support
1104d6682085SMatthias Brugger		  for Mediatek mt6589 based platforms on UART0.
1105d6682085SMatthias Brugger
110665ec48c0SJoe.C	config DEBUG_MT8127_UART0
110760851d7aSMatthias Brugger		bool "Mediatek mt8127/mt6592 UART0"
110865ec48c0SJoe.C		depends on ARCH_MEDIATEK
110965ec48c0SJoe.C		select DEBUG_UART_8250
111065ec48c0SJoe.C		help
111165ec48c0SJoe.C		  Say Y here if you want kernel low-level debugging support
111265ec48c0SJoe.C		  for Mediatek mt8127 based platforms on UART0.
111365ec48c0SJoe.C
111465ec48c0SJoe.C	config DEBUG_MT8135_UART3
111565ec48c0SJoe.C		bool "Mediatek mt8135 UART3"
111665ec48c0SJoe.C		depends on ARCH_MEDIATEK
111765ec48c0SJoe.C		select DEBUG_UART_8250
111865ec48c0SJoe.C		help
111965ec48c0SJoe.C		  Say Y here if you want kernel low-level debugging support
112065ec48c0SJoe.C		  for Mediatek mt8135 based platforms on UART3.
112165ec48c0SJoe.C
11221b820eafSPawel Moll	config DEBUG_VEXPRESS_UART0_DETECT
11231b820eafSPawel Moll		bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
11241b820eafSPawel Moll		depends on ARCH_VEXPRESS && CPU_CP15_MMU
11251b820eafSPawel Moll		help
11261b820eafSPawel Moll		  This option enables a simple heuristic which tries to determine
11271b820eafSPawel Moll		  the motherboard's memory map variant (original or RS1) and then
11281b820eafSPawel Moll		  choose the relevant UART0 base address.
11291b820eafSPawel Moll
11301b820eafSPawel Moll		  Note that this will only work with standard A-class core tiles,
11311b820eafSPawel Moll		  and may fail with non-standard SMM or custom software models.
11321b820eafSPawel Moll
11331b820eafSPawel Moll	config DEBUG_VEXPRESS_UART0_CA9
11341b820eafSPawel Moll		bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
11351b820eafSPawel Moll		depends on ARCH_VEXPRESS
11365c972af4SRussell King		select DEBUG_UART_PL01X
11371b820eafSPawel Moll		help
11381b820eafSPawel Moll		  This option selects UART0 at 0x10009000. Except for custom models,
11391b820eafSPawel Moll		  this applies only to the V2P-CA9 tile.
11401b820eafSPawel Moll
11411b820eafSPawel Moll	config DEBUG_VEXPRESS_UART0_RS1
11421b820eafSPawel Moll		bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
11431b820eafSPawel Moll		depends on ARCH_VEXPRESS
11445c972af4SRussell King		select DEBUG_UART_PL01X
11451b820eafSPawel Moll		help
11461b820eafSPawel Moll		  This option selects UART0 at 0x1c090000. This applies to most
11471b820eafSPawel Moll		  of the tiles using the RS1 memory map, including all new A-class
11481b820eafSPawel Moll		  core tiles, FPGA-based SMMs and software models.
11491b820eafSPawel Moll
1150ed18bdc8SJonathan Austin	config DEBUG_VEXPRESS_UART0_CRX
1151ed18bdc8SJonathan Austin		bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
1152ed18bdc8SJonathan Austin		depends on ARCH_VEXPRESS && !MMU
11535c972af4SRussell King		select DEBUG_UART_PL01X
1154ed18bdc8SJonathan Austin		help
1155ed18bdc8SJonathan Austin		  This option selects UART0 at 0xb0090000. This is appropriate for
1156ed18bdc8SJonathan Austin		  Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
1157ed18bdc8SJonathan Austin
1158b61a2722STony Prisk	config DEBUG_VT8500_UART0
1159b61a2722STony Prisk		bool "Use UART0 on VIA/Wondermedia SoCs"
1160b61a2722STony Prisk		depends on ARCH_VT8500
1161b61a2722STony Prisk		help
1162b61a2722STony Prisk		  This option selects UART0 on VIA/Wondermedia System-on-a-chip
1163b61a2722STony Prisk		  devices, including VT8500, WM8505, WM8650 and WM8850.
1164b61a2722STony Prisk
1165e76f4750SRussell King	config DEBUG_ICEDCC
1166e76f4750SRussell King		bool "Kernel low-level debugging via EmbeddedICE DCC channel"
1167e76f4750SRussell King		help
1168e76f4750SRussell King		  Say Y here if you want the debug print routines to direct
1169e76f4750SRussell King		  their output to the EmbeddedICE macrocell's DCC channel using
1170e76f4750SRussell King		  co-processor 14. This is known to work on the ARM9 style ICE
1171e76f4750SRussell King		  channel and on the XScale with the PEEDI.
1172e76f4750SRussell King
1173e76f4750SRussell King		  Note that the system will appear to hang during boot if there
1174e76f4750SRussell King		  is nothing connected to read from the DCC.
1175e76f4750SRussell King
1176b0df8986SRussell King	config DEBUG_SEMIHOSTING
117762194bdaSStephen Boyd		bool "Kernel low-level debug output via semihosting I/O"
1178b0df8986SRussell King		help
1179b0df8986SRussell King		  Semihosting enables code running on an ARM target to use
1180b0df8986SRussell King		  the I/O facilities on a host debugger/emulator through a
118162194bdaSStephen Boyd		  simple SVC call. The host debugger or emulator must have
1182b0df8986SRussell King		  semihosting enabled for the special svc call to be trapped
1183b0df8986SRussell King		  otherwise the kernel will crash.
1184b0df8986SRussell King
1185b0df8986SRussell King		  This is known to work with OpenOCD, as well as
1186b0df8986SRussell King		  ARM's Fast Models, or any other controlling environment
1187b0df8986SRussell King		  that implements semihosting.
1188b0df8986SRussell King
1189b0df8986SRussell King		  For more details about semihosting, please see
1190b0df8986SRussell King		  chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
1191b0df8986SRussell King
119258d03985SJun Nie	config DEBUG_ZTE_ZX
119358d03985SJun Nie		bool "Use ZTE ZX UART"
119458d03985SJun Nie		select DEBUG_UART_PL01X
119558d03985SJun Nie		depends on ARCH_ZX
119658d03985SJun Nie		help
119758d03985SJun Nie		  Say Y here if you are enabling ZTE ZX296702 SOC and need
119858d03985SJun Nie		  debug uart support.
119958d03985SJun Nie
120058d03985SJun Nie		  This option is preferred over the platform specific
120158d03985SJun Nie		  options; the platform specific options are deprecated
120258d03985SJun Nie		  and will be soon removed.
120358d03985SJun Nie
1204f8f1279cSRussell King	config DEBUG_LL_UART_8250
1205f8f1279cSRussell King		bool "Kernel low-level debugging via 8250 UART"
1206f8f1279cSRussell King		help
1207f8f1279cSRussell King		  Say Y here if you wish the debug print routes to direct
1208f8f1279cSRussell King		  their output to an 8250 UART.  You can use this option
1209f8f1279cSRussell King		  to provide the parameters for the 8250 UART rather than
1210f8f1279cSRussell King		  selecting one of the platform specific options above if
1211f8f1279cSRussell King		  you know the parameters for the port.
1212f8f1279cSRussell King
1213f8f1279cSRussell King		  This option is preferred over the platform specific
1214f8f1279cSRussell King		  options; the platform specific options are deprecated
1215f8f1279cSRussell King		  and will be soon removed.
1216f8f1279cSRussell King
1217494e492dSUwe Kleine-König	config DEBUG_LL_UART_EFM32
1218494e492dSUwe Kleine-König		bool "Kernel low-level debugging via efm32 UART"
1219494e492dSUwe Kleine-König		depends on ARCH_EFM32
1220494e492dSUwe Kleine-König		help
1221494e492dSUwe Kleine-König		  Say Y here if you want the debug print routines to direct
1222494e492dSUwe Kleine-König		  their output to an UART or USART port on efm32 based
1223494e492dSUwe Kleine-König		  machines. Use the following addresses for DEBUG_UART_PHYS:
1224494e492dSUwe Kleine-König
1225494e492dSUwe Kleine-König		    0x4000c000 | USART0
1226494e492dSUwe Kleine-König		    0x4000c400 | USART1
1227494e492dSUwe Kleine-König		    0x4000c800 | USART2
1228494e492dSUwe Kleine-König		    0x4000e000 | UART0
1229494e492dSUwe Kleine-König		    0x4000e400 | UART1
1230494e492dSUwe Kleine-König
1231f8f1279cSRussell King	config DEBUG_LL_UART_PL01X
1232f8f1279cSRussell King		bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
1233f8f1279cSRussell King		help
1234f8f1279cSRussell King		  Say Y here if you wish the debug print routes to direct
1235f8f1279cSRussell King		  their output to a PL01x Primecell UART.  You can use
1236f8f1279cSRussell King		  this option to provide the parameters for the UART
1237f8f1279cSRussell King		  rather than selecting one of the platform specific
1238f8f1279cSRussell King		  options above if you know the parameters for the port.
1239f8f1279cSRussell King
1240f8f1279cSRussell King		  This option is preferred over the platform specific
1241f8f1279cSRussell King		  options; the platform specific options are deprecated
1242f8f1279cSRussell King		  and will be soon removed.
1243f8f1279cSRussell King
12441da177e4SLinus Torvaldsendchoice
12451da177e4SLinus Torvalds
1246a2e40710SArnd Bergmannconfig DEBUG_EXYNOS_UART
1247a2e40710SArnd Bergmann	bool
1248a2e40710SArnd Bergmann
1249daf67dfcSHeiko Stuebnerconfig DEBUG_S3C2410_UART
1250daf67dfcSHeiko Stuebner	bool
12511899de28SHeiko Stuebner	select DEBUG_S3C24XX_UART
12521899de28SHeiko Stuebner
12531899de28SHeiko Stuebnerconfig DEBUG_S3C24XX_UART
12541899de28SHeiko Stuebner	bool
1255daf67dfcSHeiko Stuebner
12567bab7d9eSTomasz Figaconfig DEBUG_S5PV210_UART
12577bab7d9eSTomasz Figa	bool
12587bab7d9eSTomasz Figa
1259cce278d2SRussell Kingconfig DEBUG_OMAP2PLUS_UART
1260cce278d2SRussell King	bool
1261cce278d2SRussell King	depends on ARCH_OMAP2PLUS
1262cce278d2SRussell King
1263f8c95fe6SShawn Guoconfig DEBUG_IMX_UART_PORT
1264f8c95fe6SShawn Guo	int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
1265f8c95fe6SShawn Guo						DEBUG_IMX25_UART || \
1266f8c95fe6SShawn Guo						DEBUG_IMX21_IMX27_UART || \
1267f8c95fe6SShawn Guo						DEBUG_IMX31_UART || \
1268f8c95fe6SShawn Guo						DEBUG_IMX35_UART || \
1269ad364a70SGreg Ungerer						DEBUG_IMX50_UART || \
1270f8c95fe6SShawn Guo						DEBUG_IMX51_UART || \
12710c52db7eSPaul Bolle						DEBUG_IMX53_UART || \
127234e8a16bSShawn Guo						DEBUG_IMX6Q_UART || \
127374368e81SShawn Guo						DEBUG_IMX6SL_UART || \
127452d7aec2SAnson Huang						DEBUG_IMX6SX_UART || \
127520c305f6SAnson Huang						DEBUG_IMX6UL_UART || \
127652d7aec2SAnson Huang						DEBUG_IMX7D_UART
127749c9e60eSShawn Guo	default 1
1278287939a3SShawn Guo	depends on ARCH_MXC
127949c9e60eSShawn Guo	help
128049c9e60eSShawn Guo	  Choose UART port on which kernel low-level debug messages
128149c9e60eSShawn Guo	  should be output.
128249c9e60eSShawn Guo
1283cfdb7d56SStefan Agnerconfig DEBUG_VF_UART_PORT
1284cfdb7d56SStefan Agner	int "Vybrid Debug UART Port Selection" if DEBUG_VF_UART
1285cfdb7d56SStefan Agner	default 1
1286cfdb7d56SStefan Agner	range 0 3
1287cfdb7d56SStefan Agner	depends on SOC_VF610
1288cfdb7d56SStefan Agner	help
1289cfdb7d56SStefan Agner	  Choose UART port on which kernel low-level debug messages
1290cfdb7d56SStefan Agner	  should be output.
1291cfdb7d56SStefan Agner
1292cce278d2SRussell Kingconfig DEBUG_TEGRA_UART
1293cce278d2SRussell King	bool
1294cce278d2SRussell King	depends on ARCH_TEGRA
1295808b7e07STony Lindgren
1296cce278d2SRussell Kingconfig DEBUG_STI_UART
1297cce278d2SRussell King	bool
1298cce278d2SRussell King	depends on ARCH_STI
12995026aecfSSrinivas Kandagatla
130001ea63d9SGuo Zengconfig DEBUG_SIRFSOC_UART
130101ea63d9SGuo Zeng	bool
130201ea63d9SGuo Zeng	depends on ARCH_SIRF
130301ea63d9SGuo Zeng
130491a9fec0SRob Herringconfig DEBUG_LL_INCLUDE
130591a9fec0SRob Herring	string
1306e6131fa3SDmitry Eremin-Solenikov	default "debug/sa1100.S" if DEBUG_SA1100
1307f8f1279cSRussell King	default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
130842dfd1e1SNicolas Ferre	default "debug/at91.S" if DEBUG_AT91_UART
1309d5bd4e8dSOleksij Rempel	default "debug/asm9260.S" if DEBUG_ASM9260_UART
1310dd99eef5SAlexander Shiyan	default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2
1311d8a00916SCarlo Caione	default "debug/meson.S" if DEBUG_MESON_UARTAO
1312f8f1279cSRussell King	default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
1313a2e40710SArnd Bergmann	default "debug/exynos.S" if DEBUG_EXYNOS_UART
1314494e492dSUwe Kleine-König	default "debug/efm32.S" if DEBUG_LL_UART_EFM32
131591a9fec0SRob Herring	default "debug/icedcc.S" if DEBUG_ICEDCC
13166dde5ac5SShawn Guo	default "debug/imx.S" if DEBUG_IMX1_UART || \
13176dde5ac5SShawn Guo				 DEBUG_IMX25_UART || \
13186dde5ac5SShawn Guo				 DEBUG_IMX21_IMX27_UART || \
13194ad625d4SShawn Guo				 DEBUG_IMX31_UART || \
13204ad625d4SShawn Guo				 DEBUG_IMX35_UART || \
1321ad364a70SGreg Ungerer				 DEBUG_IMX50_UART || \
13226dde5ac5SShawn Guo				 DEBUG_IMX51_UART || \
13237356420cSFabio Estevam				 DEBUG_IMX53_UART ||\
132434e8a16bSShawn Guo				 DEBUG_IMX6Q_UART || \
132574368e81SShawn Guo				 DEBUG_IMX6SL_UART || \
132652d7aec2SAnson Huang				 DEBUG_IMX6SX_UART || \
132720c305f6SAnson Huang				 DEBUG_IMX6UL_UART || \
132852d7aec2SAnson Huang				 DEBUG_IMX7D_UART
1329abbfb21eSDaniel Thompson	default "debug/ks8695.S" if DEBUG_KS8695_UART
1330c0c89fafSStephen Boyd	default "debug/msm.S" if DEBUG_QCOM_UARTDM
13314d31e664SDaniel Thompson	default "debug/netx.S" if DEBUG_NETX_UART
1332808b7e07STony Lindgren	default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
13337a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2
13347a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0
13357a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2
13367a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0
13377a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF2
13387a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA0
13397a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA1
13407a2071c5SGeert Uytterhoeven	default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA4
13412cd62bd4SHeiko Stuebner	default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART
13427bab7d9eSTomasz Figa	default "debug/s5pv210.S" if DEBUG_S5PV210_UART
134301ea63d9SGuo Zeng	default "debug/sirf.S" if DEBUG_SIRFSOC_UART
13445026aecfSSrinivas Kandagatla	default "debug/sti.S" if DEBUG_STI_UART
1345150a8dcfSLinus Torvalds	default "debug/tegra.S" if DEBUG_TEGRA_UART
1346150a8dcfSLinus Torvalds	default "debug/ux500.S" if DEBUG_UX500_UART
13474e218b99SRussell King	default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT
1348c7c3eac6SShawn Guo	default "debug/vf.S" if DEBUG_VF_UART
1349b61a2722STony Prisk	default "debug/vt8500.S" if DEBUG_VT8500_UART0
1350385f02b1SJosh Cartwright	default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
1351b51312beSFlorian Fainelli	default "debug/bcm63xx.S" if DEBUG_UART_BCM63XX
1352e23814daSBaruch Siach	default "debug/digicolor.S" if DEBUG_DIGICOLOR_UA0
135391a9fec0SRob Herring	default "mach/debug-macro.S"
135491a9fec0SRob Herring
1355f8f1279cSRussell King# Compatibility options for PL01x
13565c972af4SRussell Kingconfig DEBUG_UART_PL01X
1357a61cbf51SDaniel Thompson	bool
13585c972af4SRussell King
1359f8f1279cSRussell King# Compatibility options for 8250
13607610b607SRussell Kingconfig DEBUG_UART_8250
13614a003647SRussell King	def_bool ARCH_DOVE || ARCH_EBSA110 || \
13624a003647SRussell King		(FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
13634a003647SRussell King		ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \
1364ba364fc7SAndrew Lunn		ARCH_IOP33X || ARCH_IXP4XX || \
13654a003647SRussell King		ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC
13664a003647SRussell King
1367b51312beSFlorian Fainelli# Compatibility options for BCM63xx
1368b51312beSFlorian Fainelliconfig DEBUG_UART_BCM63XX
1369b51312beSFlorian Fainelli	def_bool ARCH_BCM_63XX
1370b51312beSFlorian Fainelli
1371c3faa9b7SRussell Kingconfig DEBUG_UART_PHYS
1372c3faa9b7SRussell King	hex "Physical base address of debug UART"
13734d31e664SDaniel Thompson	default 0x00100a00 if DEBUG_NETX_UART
137497bd1a48SRussell King	default 0x01c20000 if DEBUG_DAVINCI_DMx_UART0
1375c3faa9b7SRussell King	default 0x01c28000 if DEBUG_SUNXI_UART0
1376c3faa9b7SRussell King	default 0x01c28400 if DEBUG_SUNXI_UART1
137797bd1a48SRussell King	default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
137897bd1a48SRussell King	default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
1379c4718543SChen-Yu Tsai	default 0x01f02800 if DEBUG_SUNXI_R_UART
1380f2acf003SRussell King	default 0x02530c00 if DEBUG_KEYSTONE_UART0
1381f2acf003SRussell King	default 0x02531000 if DEBUG_KEYSTONE_UART1
1382c3faa9b7SRussell King	default 0x03010fe0 if ARCH_RPC
1383d4da889aSChen-Yu Tsai	default 0x07000000 if DEBUG_SUN9I_UART0
138458d03985SJun Nie	default 0x09405000 if DEBUG_ZTE_ZX
1385b125170aSKrzysztof Hałasa	default 0x10009000 if DEBUG_REALVIEW_STD_PORT || \
13865c972af4SRussell King				DEBUG_VEXPRESS_UART0_CA9
13875c972af4SRussell King	default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
1388c3faa9b7SRussell King	default 0x10124000 if DEBUG_RK3X_UART0
1389c3faa9b7SRussell King	default 0x10126000 if DEBUG_RK3X_UART1
13905c972af4SRussell King	default 0x101f1000 if ARCH_VERSATILE
13915c972af4SRussell King	default 0x101fb000 if DEBUG_NOMADIK_UART
139265ec48c0SJoe.C	default 0x11002000 if DEBUG_MT8127_UART0
1393d6682085SMatthias Brugger	default 0x11006000 if DEBUG_MT6589_UART0
139465ec48c0SJoe.C	default 0x11009000 if DEBUG_MT8135_UART3
13955c972af4SRussell King	default 0x16000000 if ARCH_INTEGRATOR
139606580275SHauke Mehrtens	default 0x18000300 if DEBUG_BCM_5301X
139701ea63d9SGuo Zeng	default 0x18010000 if DEBUG_SIRFATLAS7_UART0
139801ea63d9SGuo Zeng	default 0x18020000 if DEBUG_SIRFATLAS7_UART1
13995c972af4SRussell King	default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
140027dafaa8SWang Long	default 0x20001000 if DEBUG_HIP01_UART
1401c3faa9b7SRussell King	default 0x20060000 if DEBUG_RK29_UART0
1402c3faa9b7SRussell King	default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1403c3faa9b7SRussell King	default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
14045c972af4SRussell King	default 0x20201000 if DEBUG_BCM2835
1405753d1243SChristian Daudt	default 0x3e000000 if DEBUG_BCM_KONA_UART
1406494e492dSUwe Kleine-König	default 0x4000e400 if DEBUG_LL_UART_EFM32
14070aed6a37SJoachim Eastwood	default 0x40081000 if DEBUG_LPC18XX_UART0
1408c3faa9b7SRussell King	default 0x40090000 if ARCH_LPC32XX
1409c3faa9b7SRussell King	default 0x40100000 if DEBUG_PXA_UART1
1410c3faa9b7SRussell King	default 0x42000000 if ARCH_GEMINI
14111899de28SHeiko Stuebner	default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
14121899de28SHeiko Stuebner				DEBUG_S3C2410_UART0)
14131899de28SHeiko Stuebner	default 0x50004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
14141899de28SHeiko Stuebner				DEBUG_S3C2410_UART1)
14151899de28SHeiko Stuebner	default 0x50008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
14161899de28SHeiko Stuebner				DEBUG_S3C2410_UART2)
1417c3ca2130SKrzysztof Hałasa	default 0x78000000 if DEBUG_CNS3XXX
1418c3faa9b7SRussell King	default 0x7c0003f8 if FOOTBRIDGE
1419d5bd4e8dSOleksij Rempel	default 0x80010000 if DEBUG_ASM9260_UART
14205c972af4SRussell King	default 0x80070000 if DEBUG_IMX23_UART
14215c972af4SRussell King	default 0x80074000 if DEBUG_IMX28_UART
1422c39e1ef7SAlexander Shiyan	default 0x80230000 if DEBUG_PICOXCELL_UART
14235c972af4SRussell King	default 0x808c0000 if ARCH_EP93XX
14245c972af4SRussell King	default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
142501ea63d9SGuo Zeng	default 0xb0060000 if DEBUG_SIRFPRIMA2_UART1
14265c972af4SRussell King	default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
14275c972af4SRussell King	default 0xc0013000 if DEBUG_U300_UART
1428c3faa9b7SRussell King	default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1429c3faa9b7SRussell King	default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
14300dc0e475SRussell King	default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1431d91125ddSMaxime Ripard	default 0xd0012000 if DEBUG_MVEBU_UART0
1432d8a00916SCarlo Caione	default 0xc81004c0 if DEBUG_MESON_UARTAO
1433c3faa9b7SRussell King	default 0xd4017000 if DEBUG_MMP_UART2
1434c3faa9b7SRussell King	default 0xd4018000 if DEBUG_MMP_UART3
14350dc0e475SRussell King	default 0xe0000000 if ARCH_SPEAR13XX
1436c9a1df48SHaojian Zhuang	default 0xe4007000 if DEBUG_HIP04_UART
14377a2071c5SGeert Uytterhoeven	default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
14387a2071c5SGeert Uytterhoeven	default 0xe6c50000 if DEBUG_RMOBILE_SCIFA1
14397a2071c5SGeert Uytterhoeven	default 0xe6c80000 if DEBUG_RMOBILE_SCIFA4
14407a2071c5SGeert Uytterhoeven	default 0xe6e58000 if DEBUG_RCAR_GEN2_SCIF2
14417a2071c5SGeert Uytterhoeven	default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0
14427a2071c5SGeert Uytterhoeven	default 0xe8008000 if DEBUG_R7S72100_SCIF2
1443c3faa9b7SRussell King	default 0xf0000be0 if ARCH_EBSA110
144481b43a6eSMarc Carino	default 0xf040ab00 if DEBUG_BRCMSTB_UART
1445d91125ddSMaxime Ripard	default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
1446bd920490SMaxime Ripard	default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE
1447ba364fc7SAndrew Lunn	default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \
1448c3faa9b7SRussell King				ARCH_ORION5X
1449caad0b41SSebastian Hesselbarth	default 0xf7fc9000 if DEBUG_BERLIN_UART
145012aae309SHaifeng Yan	default 0xf8b00000 if DEBUG_HIX5HD2_UART
14517098cff2SIvan T. Ivanov	default 0xf991e000 if DEBUG_QCOM_UARTDM
14528d258bebSHaojian Zhuang	default 0xfcb00000 if DEBUG_HI3620_UART
14533c215e64STsahee Zidenberg	default 0xfd883000 if DEBUG_ALPINE_UART0
1454c3faa9b7SRussell King	default 0xfe800000 if ARCH_IOP32X
1455efd02ee9SHeiko Stuebner	default 0xff690000 if DEBUG_RK32_UART2
1456de73c162SDinh Nguyen	default 0xffc02000 if DEBUG_SOCFPGA_UART0
1457de73c162SDinh Nguyen	default 0xffc02100 if DEBUG_SOCFPGA_UART1
1458c3faa9b7SRussell King	default 0xffd82340 if ARCH_IOP13XX
14597a2071c5SGeert Uytterhoeven	default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
14607a2071c5SGeert Uytterhoeven	default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
14615c972af4SRussell King	default 0xfff36000 if DEBUG_HIGHBANK_UART
1462c26b9993SDaniel Thompson	default 0xfffb0000 if DEBUG_OMAP1UART1 || DEBUG_OMAP7XXUART1
1463c26b9993SDaniel Thompson	default 0xfffb0800 if DEBUG_OMAP1UART2 || DEBUG_OMAP7XXUART2
1464c26b9993SDaniel Thompson	default 0xfffb9800 if DEBUG_OMAP1UART3 || DEBUG_OMAP7XXUART3
1465b51312beSFlorian Fainelli	default 0xfffe8600 if DEBUG_UART_BCM63XX
1466c3faa9b7SRussell King	default 0xfffff700 if ARCH_IOP33X
1467d02fde7fSDaniel Thompson	depends on ARCH_EP93XX || \
1468d02fde7fSDaniel Thompson	        DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1469494e492dSUwe Kleine-König		DEBUG_LL_UART_EFM32 || \
1470d8a00916SCarlo Caione		DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
1471c0c89fafSStephen Boyd		DEBUG_NETX_UART || \
14724d31e664SDaniel Thompson		DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \
14737a2071c5SGeert Uytterhoeven		DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \
14747a2071c5SGeert Uytterhoeven		DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF2 || \
14757a2071c5SGeert Uytterhoeven		DEBUG_RMOBILE_SCIFA0 || DEBUG_RMOBILE_SCIFA1 || \
14767a2071c5SGeert Uytterhoeven		DEBUG_RMOBILE_SCIFA4 || DEBUG_S3C24XX_UART || \
147701ea63d9SGuo Zeng		DEBUG_UART_BCM63XX || DEBUG_ASM9260_UART || \
1478*6f112a08SAlexandre Belloni		DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \
1479*6f112a08SAlexandre Belloni		DEBUG_AT91_UART
1480c3faa9b7SRussell King
1481c3faa9b7SRussell Kingconfig DEBUG_UART_VIRT
1482c3faa9b7SRussell King	hex "Virtual base address of debug UART"
14834d31e664SDaniel Thompson	default 0xe0000a00 if DEBUG_NETX_UART
1484c3faa9b7SRussell King	default 0xe0010fe0 if ARCH_RPC
1485c3faa9b7SRussell King	default 0xf0000be0 if ARCH_EBSA110
1486d5bd4e8dSOleksij Rempel	default 0xf0010000 if DEBUG_ASM9260_UART
14875c972af4SRussell King	default 0xf01fb000 if DEBUG_NOMADIK_UART
14885c972af4SRussell King	default 0xf0201000 if DEBUG_BCM2835
148906580275SHauke Mehrtens	default 0xf1000300 if DEBUG_BCM_5301X
149065ec48c0SJoe.C	default 0xf1002000 if DEBUG_MT8127_UART0
1491d6682085SMatthias Brugger	default 0xf1006000 if DEBUG_MT6589_UART0
149265ec48c0SJoe.C	default 0xf1009000 if DEBUG_MT8135_UART3
14935c972af4SRussell King	default 0xf11f1000 if ARCH_VERSATILE
14945c972af4SRussell King	default 0xf1600000 if ARCH_INTEGRATOR
1495c3faa9b7SRussell King	default 0xf1c28000 if DEBUG_SUNXI_UART0
1496c3faa9b7SRussell King	default 0xf1c28400 if DEBUG_SUNXI_UART1
1497c4718543SChen-Yu Tsai	default 0xf1f02800 if DEBUG_SUNXI_R_UART
1498cde7fc87SRobert Jarzmik	default 0xf6200000 if DEBUG_PXA_UART1
1499c3faa9b7SRussell King	default 0xf4090000 if ARCH_LPC32XX
1500c3faa9b7SRussell King	default 0xf4200000 if ARCH_GEMINI
1501d4da889aSChen-Yu Tsai	default 0xf7000000 if DEBUG_SUN9I_UART0
15021899de28SHeiko Stuebner	default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
15031899de28SHeiko Stuebner				DEBUG_S3C2410_UART0)
15041899de28SHeiko Stuebner	default 0xf7004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
15051899de28SHeiko Stuebner				DEBUG_S3C2410_UART1)
15061899de28SHeiko Stuebner	default 0xf7008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
15071899de28SHeiko Stuebner				DEBUG_S3C2410_UART2)
1508caad0b41SSebastian Hesselbarth	default 0xf7fc9000 if DEBUG_BERLIN_UART
1509c9a1df48SHaojian Zhuang	default 0xf8007000 if DEBUG_HIP04_UART
15105c972af4SRussell King	default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
15115c972af4SRussell King	default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
15127098cff2SIvan T. Ivanov	default 0xfa71e000 if DEBUG_QCOM_UARTDM
1513b125170aSKrzysztof Hałasa	default 0xfb002000 if DEBUG_CNS3XXX
15145c972af4SRussell King	default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
15155c972af4SRussell King	default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
151681b43a6eSMarc Carino	default 0xfc40ab00 if DEBUG_BRCMSTB_UART
151758d03985SJun Nie	default 0xfc705000 if DEBUG_ZTE_ZX
1518b51312beSFlorian Fainelli	default 0xfcfe8600 if DEBUG_UART_BCM63XX
15190dc0e475SRussell King	default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
15200dc0e475SRussell King	default 0xfd000000 if ARCH_SPEAR13XX
1521c3faa9b7SRussell King	default 0xfd012000 if ARCH_MV78XX0
15223c215e64STsahee Zidenberg	default 0xfd883000 if DEBUG_ALPINE_UART0
1523c3faa9b7SRussell King	default 0xfde12000 if ARCH_DOVE
1524c3faa9b7SRussell King	default 0xfe012000 if ARCH_ORION5X
1525d8a00916SCarlo Caione	default 0xf31004c0 if DEBUG_MESON_UARTAO
1526c3faa9b7SRussell King	default 0xfe017000 if DEBUG_MMP_UART2
1527c3faa9b7SRussell King	default 0xfe018000 if DEBUG_MMP_UART3
15285c972af4SRussell King	default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
15290b4cccbeSRussell King	default 0xfe230000 if DEBUG_PICOXCELL_UART
1530753d1243SChristian Daudt	default 0xfe300000 if DEBUG_BCM_KONA_UART
1531c3faa9b7SRussell King	default 0xfe800000 if ARCH_IOP32X
153212aae309SHaifeng Yan	default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
1533c3faa9b7SRussell King	default 0xfeb24000 if DEBUG_RK3X_UART0
1534c3faa9b7SRussell King	default 0xfeb26000 if DEBUG_RK3X_UART1
1535f2acf003SRussell King	default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
1536f2acf003SRussell King	default 0xfeb31000 if DEBUG_KEYSTONE_UART1
1537de73c162SDinh Nguyen	default 0xfec02000 if DEBUG_SOCFPGA_UART0
1538de73c162SDinh Nguyen	default 0xfec02100 if DEBUG_SOCFPGA_UART1
1539d91125ddSMaxime Ripard	default 0xfec12000 if DEBUG_MVEBU_UART0 || DEBUG_MVEBU_UART0_ALTERNATE
1540bd920490SMaxime Ripard	default 0xfec12100 if DEBUG_MVEBU_UART1_ALTERNATE
154101ea63d9SGuo Zeng	default 0xfec10000 if DEBUG_SIRFATLAS7_UART0
154297bd1a48SRussell King	default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
154301ea63d9SGuo Zeng	default 0xfec20000 if DEBUG_SIRFATLAS7_UART1
154401ea63d9SGuo Zeng	default 0xfec60000 if DEBUG_SIRFPRIMA2_UART1
1545efd02ee9SHeiko Stuebner	default 0xfec90000 if DEBUG_RK32_UART2
154697bd1a48SRussell King	default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
154797bd1a48SRussell King	default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
1548c39e1ef7SAlexander Shiyan	default 0xfed60000 if DEBUG_RK29_UART0
1549c39e1ef7SAlexander Shiyan	default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1550c39e1ef7SAlexander Shiyan	default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
15515c972af4SRussell King	default 0xfedc0000 if ARCH_EP93XX
1552c3faa9b7SRussell King	default 0xfee003f8 if FOOTBRIDGE
15535c972af4SRussell King	default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1554c3faa9b7SRussell King	default 0xfee82340 if ARCH_IOP13XX
1555c3faa9b7SRussell King	default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1556c3faa9b7SRussell King	default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1557c39e1ef7SAlexander Shiyan	default 0xfef36000 if DEBUG_HIGHBANK_UART
1558c26b9993SDaniel Thompson	default 0xfefb0000 if DEBUG_OMAP1UART1 || DEBUG_OMAP7XXUART1
1559c26b9993SDaniel Thompson	default 0xfefb0800 if DEBUG_OMAP1UART2 || DEBUG_OMAP7XXUART2
1560c26b9993SDaniel Thompson	default 0xfefb9800 if DEBUG_OMAP1UART3 || DEBUG_OMAP7XXUART3
1561c3faa9b7SRussell King	default 0xfefff700 if ARCH_IOP33X
15625c972af4SRussell King	default 0xff003000 if DEBUG_U300_UART
156327dafaa8SWang Long	default 0xffd01000 if DEBUG_HIP01_UART
15645c972af4SRussell King	default DEBUG_UART_PHYS if !MMU
1565f8f1279cSRussell King	depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1566d8a00916SCarlo Caione		DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
1567c0c89fafSStephen Boyd		DEBUG_NETX_UART || \
15684d31e664SDaniel Thompson		DEBUG_QCOM_UARTDM || DEBUG_S3C24XX_UART || \
1569e23814daSBaruch Siach		DEBUG_UART_BCM63XX || DEBUG_ASM9260_UART || \
1570e23814daSBaruch Siach		DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0
1571c3faa9b7SRussell King
15724a003647SRussell Kingconfig DEBUG_UART_8250_SHIFT
15734a003647SRussell King	int "Register offset shift for the 8250 debug UART"
1574f8f1279cSRussell King	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1575c26b9993SDaniel Thompson	default 0 if FOOTBRIDGE || ARCH_IOP32X || DEBUG_BCM_5301X || \
1576c26b9993SDaniel Thompson		DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || DEBUG_OMAP7XXUART3
15774a003647SRussell King	default 2
15787610b607SRussell King
15790b4cccbeSRussell Kingconfig DEBUG_UART_8250_WORD
15800b4cccbeSRussell King	bool "Use 32-bit accesses for 8250 UART"
1581f8f1279cSRussell King	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
15820b4cccbeSRussell King	depends on DEBUG_UART_8250_SHIFT >= 2
1583de73c162SDinh Nguyen	default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART0 || \
1584de73c162SDinh Nguyen		DEBUG_SOCFPGA_UART1 || ARCH_KEYSTONE || \
1585de73c162SDinh Nguyen		DEBUG_ALPINE_UART0 || \
158697bd1a48SRussell King		DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
15879d6eccb9SArnd Bergmann		DEBUG_DAVINCI_DA8XX_UART2 || \
158881b43a6eSMarc Carino		DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2 || \
158981b43a6eSMarc Carino		DEBUG_BRCMSTB_UART
15900b4cccbeSRussell King
15917610b607SRussell Kingconfig DEBUG_UART_8250_FLOW_CONTROL
15927610b607SRussell King	bool "Enable flow control for 8250 UART"
1593f8f1279cSRussell King	depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
15947610b607SRussell King	default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_GEMINI || ARCH_RPC
15957610b607SRussell King
15963b4af9bcSShawn Guoconfig DEBUG_UNCOMPRESS
15973b4af9bcSShawn Guo	bool
15989c77bc43SStefan Agner	depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
1599b6992fa9SRussell King	default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
1600ae3c99a2SStephen Warren		     (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
1601b6992fa9SRussell King	help
1602b6992fa9SRussell King	  This option influences the normal decompressor output for
1603b6992fa9SRussell King	  multiplatform kernels.  Normally, multiplatform kernels disable
1604b6992fa9SRussell King	  decompressor output because it is not possible to know where to
1605b6992fa9SRussell King	  send the decompressor output.
1606b6992fa9SRussell King
1607b6992fa9SRussell King	  When this option is set, the selected DEBUG_LL output method
1608b6992fa9SRussell King	  will be re-used for normal decompressor output on multiplatform
1609b6992fa9SRussell King	  kernels.
1610b6992fa9SRussell King
16113b4af9bcSShawn Guo
1612615967b0SShawn Guoconfig UNCOMPRESS_INCLUDE
1613615967b0SShawn Guo	string
1614ffd80eccSSachin Kamat	default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
1615499f1640SStefan Agner					PLAT_SAMSUNG || ARM_SINGLE_ARMV7M || \
1616bb04883bSMagnus Damm					ARCH_SHMOBILE_LEGACY
1617615967b0SShawn Guo	default "mach/uncompress.h"
1618615967b0SShawn Guo
16191da177e4SLinus Torvaldsconfig EARLY_PRINTK
16201da177e4SLinus Torvalds	bool "Early printk"
16211da177e4SLinus Torvalds	depends on DEBUG_LL
16221da177e4SLinus Torvalds	help
16231da177e4SLinus Torvalds	  Say Y here if you want to have an early console using the
16241da177e4SLinus Torvalds	  kernel low-level debugging functions. Add earlyprintk to your
16251da177e4SLinus Torvalds	  kernel parameters to enable this console.
16261da177e4SLinus Torvalds
16271da177e4SLinus Torvaldsconfig ARM_KPROBES_TEST
16281da177e4SLinus Torvalds	tristate "Kprobes test module"
16291da177e4SLinus Torvalds	depends on KPROBES && MODULES
16301da177e4SLinus Torvalds	help
16311da177e4SLinus Torvalds	  Perform tests of kprobes API and instruction set simulation.
16321da177e4SLinus Torvalds
1633575320d6SWill Deaconconfig PID_IN_CONTEXTIDR
1634575320d6SWill Deacon	bool "Write the current PID to the CONTEXTIDR register"
1635575320d6SWill Deacon	depends on CPU_COPY_V6
1636575320d6SWill Deacon	help
1637575320d6SWill Deacon	  Enabling this option causes the kernel to write the current PID to
1638575320d6SWill Deacon	  the PROCID field of the CONTEXTIDR register, at the expense of some
1639575320d6SWill Deacon	  additional instructions during context switch. Say Y here only if you
1640575320d6SWill Deacon	  are planning to use hardware trace tools with this kernel.
1641575320d6SWill Deacon
1642dca9aa92SLaura Abbottconfig DEBUG_SET_MODULE_RONX
1643dca9aa92SLaura Abbott	bool "Set loadable kernel module data as NX and text as RO"
1644e6ae32c3SRussell King	depends on MODULES && MMU
1645dca9aa92SLaura Abbott	---help---
1646dca9aa92SLaura Abbott	  This option helps catch unintended modifications to loadable
1647dca9aa92SLaura Abbott	  kernel module's text and read-only data. It also prevents execution
1648dca9aa92SLaura Abbott	  of module data. Such protection may interfere with run-time code
1649dca9aa92SLaura Abbott	  patching and dynamic kernel tracing - and they might also protect
1650dca9aa92SLaura Abbott	  against certain classes of kernel exploits.
1651dca9aa92SLaura Abbott	  If in doubt, say "N".
1652dca9aa92SLaura Abbott
165301081f5aSMathieu Poiriersource "drivers/hwtracing/coresight/Kconfig"
1654bc4bf7feSPratik Patel
16551da177e4SLinus Torvaldsendmenu
1656