Kconfig.debug 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config ARM_PTDUMP
  4. bool "Export kernel pagetable layout to userspace via debugfs"
  5. depends on DEBUG_KERNEL
  6. select DEBUG_FS
  7. ---help---
  8. Say Y here if you want to show the kernel pagetable layout in a
  9. debugfs file. This information is only useful for kernel developers
  10. who are working in architecture specific areas of the kernel.
  11. It is probably not a good idea to enable this feature in a production
  12. kernel.
  13. If in doubt, say "N"
  14. config STRICT_DEVMEM
  15. bool "Filter access to /dev/mem"
  16. depends on MMU
  17. ---help---
  18. If this option is disabled, you allow userspace (root) access to all
  19. of memory, including kernel and userspace memory. Accidental
  20. access to this is obviously disastrous, but specific access can
  21. be used by people debugging the kernel.
  22. If this option is switched on, the /dev/mem file only allows
  23. userspace access to memory mapped peripherals.
  24. If in doubt, say Y.
  25. # RMK wants arm kernels compiled with frame pointers or stack unwinding.
  26. # If you know what you are doing and are willing to live without stack
  27. # traces, you can get a slightly smaller kernel by setting this option to
  28. # n, but then RMK will have to kill you ;).
  29. config FRAME_POINTER
  30. bool
  31. depends on !THUMB2_KERNEL
  32. default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER
  33. help
  34. If you say N here, the resulting kernel will be slightly smaller and
  35. faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled,
  36. when a problem occurs with the kernel, the information that is
  37. reported is severely limited.
  38. config ARM_UNWIND
  39. bool "Enable stack unwinding support (EXPERIMENTAL)"
  40. depends on AEABI
  41. default y
  42. help
  43. This option enables stack unwinding support in the kernel
  44. using the information automatically generated by the
  45. compiler. The resulting kernel image is slightly bigger but
  46. the performance is not affected. Currently, this feature
  47. only works with EABI compilers. If unsure say Y.
  48. config OLD_MCOUNT
  49. bool
  50. depends on FUNCTION_TRACER && FRAME_POINTER
  51. default y
  52. config DEBUG_USER
  53. bool "Verbose user fault messages"
  54. help
  55. When a user program crashes due to an exception, the kernel can
  56. print a brief message explaining what the problem was. This is
  57. sometimes helpful for debugging but serves no purpose on a
  58. production system. Most people should say N here.
  59. In addition, you need to pass user_debug=N on the kernel command
  60. line to enable this feature. N consists of the sum of:
  61. 1 - undefined instruction events
  62. 2 - system calls
  63. 4 - invalid data aborts
  64. 8 - SIGSEGV faults
  65. 16 - SIGBUS faults
  66. # These options are only for real kernel hackers who want to get their hands dirty.
  67. config DEBUG_LL
  68. bool "Kernel low-level debugging functions (read help!)"
  69. depends on DEBUG_KERNEL
  70. help
  71. Say Y here to include definitions of printascii, printch, printhex
  72. in the kernel. This is helpful if you are debugging code that
  73. executes before the console is initialized.
  74. Note that selecting this option will limit the kernel to a single
  75. UART definition, as specified below. Attempting to boot the kernel
  76. image on a different platform *will not work*, so this option should
  77. not be enabled for kernels that are intended to be portable.
  78. choice
  79. prompt "Kernel low-level debugging port"
  80. depends on DEBUG_LL
  81. config AT91_DEBUG_LL_DBGU0
  82. bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10 and 9rl"
  83. depends on HAVE_AT91_DBGU0
  84. config AT91_DEBUG_LL_DBGU1
  85. bool "Kernel low-level debugging on 9263 and 9g45"
  86. depends on HAVE_AT91_DBGU1
  87. config DEBUG_BCM2835
  88. bool "Kernel low-level debugging on BCM2835 PL011 UART"
  89. depends on ARCH_BCM2835
  90. select DEBUG_UART_PL01X
  91. config DEBUG_BCM_5301X
  92. bool "Kernel low-level debugging on BCM5301X UART1"
  93. depends on ARCH_BCM_5301X
  94. select DEBUG_UART_PL01X
  95. config DEBUG_BCM_KONA_UART
  96. bool "Kernel low-level debugging messages via BCM KONA UART"
  97. depends on ARCH_BCM_MOBILE
  98. select DEBUG_UART_8250
  99. help
  100. Say Y here if you want kernel low-level debugging support
  101. on Broadcom SoC platforms.
  102. This low level debug works for Broadcom
  103. mobile SoCs in the Kona family of chips (e.g. bcm28155,
  104. bcm11351, etc...)
  105. config DEBUG_BERLIN_UART
  106. bool "Marvell Berlin SoC Debug UART"
  107. depends on ARCH_BERLIN
  108. select DEBUG_UART_8250
  109. help
  110. Say Y here if you want kernel low-level debugging support
  111. on Marvell Berlin SoC based platforms.
  112. config DEBUG_CLPS711X_UART1
  113. bool "Kernel low-level debugging messages via UART1"
  114. depends on ARCH_CLPS711X
  115. help
  116. Say Y here if you want the debug print routines to direct
  117. their output to the first serial port on these devices.
  118. config DEBUG_CLPS711X_UART2
  119. bool "Kernel low-level debugging messages via UART2"
  120. depends on ARCH_CLPS711X
  121. help
  122. Say Y here if you want the debug print routines to direct
  123. their output to the second serial port on these devices.
  124. config DEBUG_CNS3XXX
  125. bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
  126. depends on ARCH_CNS3XXX
  127. select DEBUG_UART_PL01X
  128. help
  129. Say Y here if you want the debug print routines to direct
  130. their output to the CNS3xxx UART0.
  131. config DEBUG_DAVINCI_DA8XX_UART1
  132. bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
  133. depends on ARCH_DAVINCI_DA8XX
  134. select DEBUG_UART_8250
  135. help
  136. Say Y here if you want the debug print routines to direct
  137. their output to UART1 serial port on DaVinci DA8XX devices.
  138. config DEBUG_DAVINCI_DA8XX_UART2
  139. bool "Kernel low-level debugging on DaVinci DA8XX using UART2"
  140. depends on ARCH_DAVINCI_DA8XX
  141. select DEBUG_UART_8250
  142. help
  143. Say Y here if you want the debug print routines to direct
  144. their output to UART2 serial port on DaVinci DA8XX devices.
  145. config DEBUG_DAVINCI_DMx_UART0
  146. bool "Kernel low-level debugging on DaVinci DMx using UART0"
  147. depends on ARCH_DAVINCI_DMx
  148. select DEBUG_UART_8250
  149. help
  150. Say Y here if you want the debug print routines to direct
  151. their output to UART0 serial port on DaVinci DMx devices.
  152. config DEBUG_ZYNQ_UART0
  153. bool "Kernel low-level debugging on Xilinx Zynq using UART0"
  154. depends on ARCH_ZYNQ
  155. help
  156. Say Y here if you want the debug print routines to direct
  157. their output to UART0 on the Zynq platform.
  158. config DEBUG_ZYNQ_UART1
  159. bool "Kernel low-level debugging on Xilinx Zynq using UART1"
  160. depends on ARCH_ZYNQ
  161. help
  162. Say Y here if you want the debug print routines to direct
  163. their output to UART1 on the Zynq platform.
  164. If you have a ZC702 board and want early boot messages to
  165. appear on the USB serial adaptor, select this option.
  166. config DEBUG_DC21285_PORT
  167. bool "Kernel low-level debugging messages via footbridge serial port"
  168. depends on FOOTBRIDGE
  169. help
  170. Say Y here if you want the debug print routines to direct
  171. their output to the serial port in the DC21285 (Footbridge).
  172. config DEBUG_FOOTBRIDGE_COM1
  173. bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
  174. depends on FOOTBRIDGE
  175. help
  176. Say Y here if you want the debug print routines to direct
  177. their output to the 8250 at PCI COM1.
  178. config DEBUG_HI3620_UART
  179. bool "Hisilicon HI3620 Debug UART"
  180. depends on ARCH_HI3xxx
  181. select DEBUG_UART_PL01X
  182. help
  183. Say Y here if you want kernel low-level debugging support
  184. on HI3620 UART.
  185. config DEBUG_HI3716_UART
  186. bool "Hisilicon Hi3716 Debug UART"
  187. depends on ARCH_HI3xxx
  188. select DEBUG_UART_PL01X
  189. help
  190. Say Y here if you want kernel low-level debugging support
  191. on HI3716 UART.
  192. config DEBUG_HIX5HD2_UART
  193. bool "Hisilicon Hix5hd2 Debug UART"
  194. depends on ARCH_HIX5HD2
  195. select DEBUG_UART_PL01X
  196. help
  197. Say Y here if you want kernel low-level debugging support
  198. on Hix5hd2 UART.
  199. config DEBUG_HIGHBANK_UART
  200. bool "Kernel low-level debugging messages via Highbank UART"
  201. depends on ARCH_HIGHBANK
  202. select DEBUG_UART_PL01X
  203. help
  204. Say Y here if you want the debug print routines to direct
  205. their output to the UART on Highbank based devices.
  206. config DEBUG_IMX1_UART
  207. bool "i.MX1 Debug UART"
  208. depends on SOC_IMX1
  209. help
  210. Say Y here if you want kernel low-level debugging support
  211. on i.MX1.
  212. config DEBUG_IMX23_UART
  213. bool "i.MX23 Debug UART"
  214. depends on SOC_IMX23
  215. select DEBUG_UART_PL01X
  216. help
  217. Say Y here if you want kernel low-level debugging support
  218. on i.MX23.
  219. config DEBUG_IMX25_UART
  220. bool "i.MX25 Debug UART"
  221. depends on SOC_IMX25
  222. help
  223. Say Y here if you want kernel low-level debugging support
  224. on i.MX25.
  225. config DEBUG_IMX21_IMX27_UART
  226. bool "i.MX21 and i.MX27 Debug UART"
  227. depends on SOC_IMX21 || SOC_IMX27
  228. help
  229. Say Y here if you want kernel low-level debugging support
  230. on i.MX21 or i.MX27.
  231. config DEBUG_IMX28_UART
  232. bool "i.MX28 Debug UART"
  233. depends on SOC_IMX28
  234. select DEBUG_UART_PL01X
  235. help
  236. Say Y here if you want kernel low-level debugging support
  237. on i.MX28.
  238. config DEBUG_IMX31_UART
  239. bool "i.MX31 Debug UART"
  240. depends on SOC_IMX31
  241. help
  242. Say Y here if you want kernel low-level debugging support
  243. on i.MX31.
  244. config DEBUG_IMX35_UART
  245. bool "i.MX35 Debug UART"
  246. depends on SOC_IMX35
  247. help
  248. Say Y here if you want kernel low-level debugging support
  249. on i.MX35.
  250. config DEBUG_IMX50_UART
  251. bool "i.MX50 Debug UART"
  252. depends on SOC_IMX50
  253. help
  254. Say Y here if you want kernel low-level debugging support
  255. on i.MX50.
  256. config DEBUG_IMX51_UART
  257. bool "i.MX51 Debug UART"
  258. depends on SOC_IMX51
  259. help
  260. Say Y here if you want kernel low-level debugging support
  261. on i.MX51.
  262. config DEBUG_IMX53_UART
  263. bool "i.MX53 Debug UART"
  264. depends on SOC_IMX53
  265. help
  266. Say Y here if you want kernel low-level debugging support
  267. on i.MX53.
  268. config DEBUG_IMX6Q_UART
  269. bool "i.MX6Q/DL Debug UART"
  270. depends on SOC_IMX6Q
  271. help
  272. Say Y here if you want kernel low-level debugging support
  273. on i.MX6Q/DL.
  274. config DEBUG_IMX6SL_UART
  275. bool "i.MX6SL Debug UART"
  276. depends on SOC_IMX6SL
  277. help
  278. Say Y here if you want kernel low-level debugging support
  279. on i.MX6SL.
  280. config DEBUG_IMX6SX_UART
  281. bool "i.MX6SX Debug UART"
  282. depends on SOC_IMX6SX
  283. help
  284. Say Y here if you want kernel low-level debugging support
  285. on i.MX6SX.
  286. config DEBUG_KEYSTONE_UART0
  287. bool "Kernel low-level debugging on KEYSTONE2 using UART0"
  288. depends on ARCH_KEYSTONE
  289. select DEBUG_UART_8250
  290. help
  291. Say Y here if you want the debug print routines to direct
  292. their output to UART0 serial port on KEYSTONE2 devices.
  293. config DEBUG_KEYSTONE_UART1
  294. bool "Kernel low-level debugging on KEYSTONE2 using UART1"
  295. depends on ARCH_KEYSTONE
  296. select DEBUG_UART_8250
  297. help
  298. Say Y here if you want the debug print routines to direct
  299. their output to UART1 serial port on KEYSTONE2 devices.
  300. config DEBUG_MMP_UART2
  301. bool "Kernel low-level debugging message via MMP UART2"
  302. depends on ARCH_MMP
  303. select DEBUG_UART_8250
  304. help
  305. Say Y here if you want kernel low-level debugging support
  306. on MMP UART2.
  307. config DEBUG_MMP_UART3
  308. bool "Kernel low-level debugging message via MMP UART3"
  309. depends on ARCH_MMP
  310. select DEBUG_UART_8250
  311. help
  312. Say Y here if you want kernel low-level debugging support
  313. on MMP UART3.
  314. config DEBUG_MSM_UART
  315. bool "Kernel low-level debugging messages via MSM UART"
  316. depends on ARCH_MSM
  317. help
  318. Say Y here if you want the debug print routines to direct
  319. their output to the serial port on MSM devices.
  320. ARCH DEBUG_UART_PHYS DEBUG_UART_BASE #
  321. MSM7X00A, QSD8X50 0xa9a00000 0xe1000000 UART1
  322. MSM7X00A, QSD8X50 0xa9b00000 0xe1000000 UART2
  323. MSM7X00A, QSD8X50 0xa9c00000 0xe1000000 UART3
  324. MSM7X30 0xaca00000 0xe1000000 UART1
  325. MSM7X30 0xacb00000 0xe1000000 UART2
  326. MSM7X30 0xacc00000 0xe1000000 UART3
  327. Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration
  328. options based on your needs.
  329. config DEBUG_QCOM_UARTDM
  330. bool "Kernel low-level debugging messages via QCOM UARTDM"
  331. depends on ARCH_QCOM
  332. help
  333. Say Y here if you want the debug print routines to direct
  334. their output to the serial port on Qualcomm devices.
  335. ARCH DEBUG_UART_PHYS DEBUG_UART_BASE
  336. APQ8084 0xf995e000 0xfa75e000
  337. MSM8X60 0x19c40000 0xf0040000
  338. MSM8960 0x16440000 0xf0040000
  339. MSM8974 0xf991e000 0xfa71e000
  340. Please adjust DEBUG_UART_PHYS and DEBUG_UART_BASE configuration
  341. options based on your needs.
  342. config DEBUG_MVEBU_UART
  343. bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)"
  344. depends on ARCH_MVEBU
  345. select DEBUG_UART_8250
  346. help
  347. Say Y here if you want kernel low-level debugging support
  348. on MVEBU based platforms.
  349. This option should be used with the old bootloaders
  350. that left the internal registers mapped at
  351. 0xd0000000. As of today, this is the case on
  352. platforms such as the Globalscale Mirabox or the
  353. Plathome OpenBlocks AX3, when using the original
  354. bootloader.
  355. If the wrong DEBUG_MVEBU_UART* option is selected,
  356. when u-boot hands over to the kernel, the system
  357. silently crashes, with no serial output at all.
  358. config DEBUG_MVEBU_UART_ALTERNATE
  359. bool "Kernel low-level debugging messages via MVEBU UART (new bootloaders)"
  360. depends on ARCH_MVEBU
  361. select DEBUG_UART_8250
  362. help
  363. Say Y here if you want kernel low-level debugging support
  364. on MVEBU based platforms.
  365. This option should be used with the new bootloaders
  366. that remap the internal registers at 0xf1000000.
  367. If the wrong DEBUG_MVEBU_UART* option is selected,
  368. when u-boot hands over to the kernel, the system
  369. silently crashes, with no serial output at all.
  370. config DEBUG_VF_UART
  371. bool "Vybrid UART"
  372. depends on SOC_VF610
  373. help
  374. Say Y here if you want kernel low-level debugging support
  375. on Vybrid based platforms.
  376. config DEBUG_NOMADIK_UART
  377. bool "Kernel low-level debugging messages via NOMADIK UART"
  378. depends on ARCH_NOMADIK
  379. select DEBUG_UART_PL01X
  380. help
  381. Say Y here if you want kernel low-level debugging support
  382. on NOMADIK based platforms.
  383. config DEBUG_NSPIRE_CLASSIC_UART
  384. bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
  385. depends on ARCH_NSPIRE
  386. select DEBUG_UART_8250
  387. help
  388. Say Y here if you want kernel low-level debugging support
  389. on TI-NSPIRE classic models.
  390. config DEBUG_NSPIRE_CX_UART
  391. bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
  392. depends on ARCH_NSPIRE
  393. select DEBUG_UART_PL01X
  394. help
  395. Say Y here if you want kernel low-level debugging support
  396. on TI-NSPIRE CX models.
  397. config DEBUG_OMAP2UART1
  398. bool "OMAP2/3/4 UART1 (omap2/3 sdp boards and some omap3 boards)"
  399. depends on ARCH_OMAP2PLUS
  400. select DEBUG_OMAP2PLUS_UART
  401. help
  402. This covers at least h4, 2430sdp, 3430sdp, 3630sdp,
  403. omap3 torpedo and 3530 lv som.
  404. config DEBUG_OMAP2UART2
  405. bool "Kernel low-level debugging messages via OMAP2/3/4 UART2"
  406. depends on ARCH_OMAP2PLUS
  407. select DEBUG_OMAP2PLUS_UART
  408. config DEBUG_OMAP2UART3
  409. bool "Kernel low-level debugging messages via OMAP2 UART3 (n8x0)"
  410. depends on ARCH_OMAP2PLUS
  411. select DEBUG_OMAP2PLUS_UART
  412. config DEBUG_OMAP3UART3
  413. bool "Kernel low-level debugging messages via OMAP3 UART3 (most omap3 boards)"
  414. depends on ARCH_OMAP2PLUS
  415. select DEBUG_OMAP2PLUS_UART
  416. help
  417. This covers at least cm_t3x, beagle, crane, devkit8000,
  418. igep00x0, ldp, n900, n9(50), pandora, overo, touchbook,
  419. and 3517evm.
  420. config DEBUG_OMAP4UART3
  421. bool "Kernel low-level debugging messages via OMAP4/5 UART3 (omap4 blaze, panda, omap5 sevm)"
  422. depends on ARCH_OMAP2PLUS
  423. select DEBUG_OMAP2PLUS_UART
  424. config DEBUG_OMAP3UART4
  425. bool "Kernel low-level debugging messages via OMAP36XX UART4"
  426. depends on ARCH_OMAP2PLUS
  427. select DEBUG_OMAP2PLUS_UART
  428. config DEBUG_OMAP4UART4
  429. bool "Kernel low-level debugging messages via OMAP4/5 UART4"
  430. depends on ARCH_OMAP2PLUS
  431. select DEBUG_OMAP2PLUS_UART
  432. config DEBUG_TI81XXUART1
  433. bool "Kernel low-level debugging messages via TI81XX UART1 (ti8148evm)"
  434. depends on ARCH_OMAP2PLUS
  435. select DEBUG_OMAP2PLUS_UART
  436. config DEBUG_TI81XXUART2
  437. bool "Kernel low-level debugging messages via TI81XX UART2"
  438. depends on ARCH_OMAP2PLUS
  439. select DEBUG_OMAP2PLUS_UART
  440. config DEBUG_TI81XXUART3
  441. bool "Kernel low-level debugging messages via TI81XX UART3 (ti8168evm)"
  442. depends on ARCH_OMAP2PLUS
  443. select DEBUG_OMAP2PLUS_UART
  444. config DEBUG_AM33XXUART1
  445. bool "Kernel low-level debugging messages via AM33XX UART1"
  446. depends on ARCH_OMAP2PLUS
  447. select DEBUG_OMAP2PLUS_UART
  448. config DEBUG_ZOOM_UART
  449. bool "Kernel low-level debugging messages via Zoom2/3 UART"
  450. depends on ARCH_OMAP2PLUS
  451. select DEBUG_OMAP2PLUS_UART
  452. config DEBUG_PICOXCELL_UART
  453. depends on ARCH_PICOXCELL
  454. bool "Use PicoXcell UART for low-level debug"
  455. select DEBUG_UART_8250
  456. help
  457. Say Y here if you want kernel low-level debugging support
  458. on PicoXcell based platforms.
  459. config DEBUG_PXA_UART1
  460. depends on ARCH_PXA
  461. bool "Use PXA UART1 for low-level debug"
  462. select DEBUG_UART_8250
  463. help
  464. Say Y here if you want kernel low-level debugging support
  465. on PXA UART1.
  466. config DEBUG_REALVIEW_STD_PORT
  467. bool "RealView Default UART"
  468. depends on ARCH_REALVIEW
  469. select DEBUG_UART_PL01X
  470. help
  471. Say Y here if you want the debug print routines to direct
  472. their output to the serial port on RealView EB, PB11MP, PBA8
  473. and PBX platforms.
  474. config DEBUG_REALVIEW_PB1176_PORT
  475. bool "RealView PB1176 UART"
  476. depends on MACH_REALVIEW_PB1176
  477. select DEBUG_UART_PL01X
  478. help
  479. Say Y here if you want the debug print routines to direct
  480. their output to the standard serial port on the RealView
  481. PB1176 platform.
  482. config DEBUG_RK29_UART0
  483. bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
  484. depends on ARCH_ROCKCHIP
  485. select DEBUG_UART_8250
  486. help
  487. Say Y here if you want kernel low-level debugging support
  488. on Rockchip based platforms.
  489. config DEBUG_RK29_UART1
  490. bool "Kernel low-level debugging messages via Rockchip RK29 UART1"
  491. depends on ARCH_ROCKCHIP
  492. select DEBUG_UART_8250
  493. help
  494. Say Y here if you want kernel low-level debugging support
  495. on Rockchip based platforms.
  496. config DEBUG_RK29_UART2
  497. bool "Kernel low-level debugging messages via Rockchip RK29 UART2"
  498. depends on ARCH_ROCKCHIP
  499. select DEBUG_UART_8250
  500. help
  501. Say Y here if you want kernel low-level debugging support
  502. on Rockchip based platforms.
  503. config DEBUG_RK3X_UART0
  504. bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART0"
  505. depends on ARCH_ROCKCHIP
  506. select DEBUG_UART_8250
  507. help
  508. Say Y here if you want kernel low-level debugging support
  509. on Rockchip based platforms.
  510. config DEBUG_RK3X_UART1
  511. bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART1"
  512. depends on ARCH_ROCKCHIP
  513. select DEBUG_UART_8250
  514. help
  515. Say Y here if you want kernel low-level debugging support
  516. on Rockchip based platforms.
  517. config DEBUG_RK3X_UART2
  518. bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART2"
  519. depends on ARCH_ROCKCHIP
  520. select DEBUG_UART_8250
  521. help
  522. Say Y here if you want kernel low-level debugging support
  523. on Rockchip based platforms.
  524. config DEBUG_RK3X_UART3
  525. bool "Kernel low-level debugging messages via Rockchip RK30/RK31 UART3"
  526. depends on ARCH_ROCKCHIP
  527. select DEBUG_UART_8250
  528. help
  529. Say Y here if you want kernel low-level debugging support
  530. on Rockchip based platforms.
  531. config DEBUG_RK32_UART2
  532. bool "Kernel low-level debugging messages via Rockchip RK32 UART2"
  533. depends on ARCH_ROCKCHIP
  534. select DEBUG_UART_8250
  535. help
  536. Say Y here if you want kernel low-level debugging support
  537. on Rockchip RK32xx based platforms.
  538. config DEBUG_S3C_UART0
  539. depends on PLAT_SAMSUNG
  540. select DEBUG_EXYNOS_UART if ARCH_EXYNOS
  541. select DEBUG_S3C24XX_UART if ARCH_S3C24XX
  542. select DEBUG_S5PV210_UART if ARCH_S5PV210
  543. bool "Use Samsung S3C UART 0 for low-level debug"
  544. help
  545. Say Y here if you want the debug print routines to direct
  546. their output to UART 0. The port must have been initialised
  547. by the boot-loader before use.
  548. config DEBUG_S3C_UART1
  549. depends on PLAT_SAMSUNG
  550. select DEBUG_EXYNOS_UART if ARCH_EXYNOS
  551. select DEBUG_S3C24XX_UART if ARCH_S3C24XX
  552. select DEBUG_S5PV210_UART if ARCH_S5PV210
  553. bool "Use Samsung S3C UART 1 for low-level debug"
  554. help
  555. Say Y here if you want the debug print routines to direct
  556. their output to UART 1. The port must have been initialised
  557. by the boot-loader before use.
  558. config DEBUG_S3C_UART2
  559. depends on PLAT_SAMSUNG
  560. select DEBUG_EXYNOS_UART if ARCH_EXYNOS
  561. select DEBUG_S3C24XX_UART if ARCH_S3C24XX
  562. select DEBUG_S5PV210_UART if ARCH_S5PV210
  563. bool "Use Samsung S3C UART 2 for low-level debug"
  564. help
  565. Say Y here if you want the debug print routines to direct
  566. their output to UART 2. The port must have been initialised
  567. by the boot-loader before use.
  568. config DEBUG_S3C_UART3
  569. depends on PLAT_SAMSUNG && (ARCH_EXYNOS || ARCH_S5PV210)
  570. select DEBUG_EXYNOS_UART if ARCH_EXYNOS
  571. select DEBUG_S5PV210_UART if ARCH_S5PV210
  572. bool "Use Samsung S3C UART 3 for low-level debug"
  573. help
  574. Say Y here if you want the debug print routines to direct
  575. their output to UART 3. The port must have been initialised
  576. by the boot-loader before use.
  577. config DEBUG_S3C2410_UART0
  578. depends on ARCH_S3C24XX
  579. select DEBUG_S3C2410_UART
  580. bool "Use S3C2410/S3C2412 UART 0 for low-level debug"
  581. help
  582. Say Y here if you want the debug print routines to direct
  583. their output to UART 0. The port must have been initialised
  584. by the boot-loader before use.
  585. config DEBUG_S3C2410_UART1
  586. depends on ARCH_S3C24XX
  587. select DEBUG_S3C2410_UART
  588. bool "Use S3C2410/S3C2412 UART 1 for low-level debug"
  589. help
  590. Say Y here if you want the debug print routines to direct
  591. their output to UART 1. The port must have been initialised
  592. by the boot-loader before use.
  593. config DEBUG_S3C2410_UART2
  594. depends on ARCH_S3C24XX
  595. select DEBUG_S3C2410_UART
  596. bool "Use S3C2410/S3C2412 UART 2 for low-level debug"
  597. help
  598. Say Y here if you want the debug print routines to direct
  599. their output to UART 2. The port must have been initialised
  600. by the boot-loader before use.
  601. config DEBUG_SOCFPGA_UART
  602. depends on ARCH_SOCFPGA
  603. bool "Use SOCFPGA UART for low-level debug"
  604. select DEBUG_UART_8250
  605. help
  606. Say Y here if you want kernel low-level debugging support
  607. on SOCFPGA based platforms.
  608. config DEBUG_SUNXI_UART0
  609. bool "Kernel low-level debugging messages via sunXi UART0"
  610. depends on ARCH_SUNXI
  611. select DEBUG_UART_8250
  612. help
  613. Say Y here if you want kernel low-level debugging support
  614. on Allwinner A1X based platforms on the UART0.
  615. config DEBUG_SUNXI_UART1
  616. bool "Kernel low-level debugging messages via sunXi UART1"
  617. depends on ARCH_SUNXI
  618. select DEBUG_UART_8250
  619. help
  620. Say Y here if you want kernel low-level debugging support
  621. on Allwinner A1X based platforms on the UART1.
  622. config DEBUG_SUNXI_R_UART
  623. bool "Kernel low-level debugging messages via sunXi R_UART"
  624. depends on MACH_SUN6I || MACH_SUN8I
  625. select DEBUG_UART_8250
  626. help
  627. Say Y here if you want kernel low-level debugging support
  628. on Allwinner A31/A23 based platforms on the R_UART.
  629. config TEGRA_DEBUG_UART_AUTO_ODMDATA
  630. bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
  631. depends on ARCH_TEGRA
  632. select DEBUG_TEGRA_UART
  633. help
  634. Automatically determines which UART to use for low-level
  635. debug based on the ODMDATA value. This value is part of
  636. the BCT, and is written to the boot memory device using
  637. nvflash, or other flashing tool. When bits 19:18 are 3,
  638. then bits 17:15 indicate which UART to use; 0/1/2/3/4
  639. are UART A/B/C/D/E.
  640. config TEGRA_DEBUG_UARTA
  641. bool "Kernel low-level debugging messages via Tegra UART A"
  642. depends on ARCH_TEGRA
  643. select DEBUG_TEGRA_UART
  644. help
  645. Say Y here if you want kernel low-level debugging support
  646. on Tegra based platforms.
  647. config TEGRA_DEBUG_UARTB
  648. bool "Kernel low-level debugging messages via Tegra UART B"
  649. depends on ARCH_TEGRA
  650. select DEBUG_TEGRA_UART
  651. help
  652. Say Y here if you want kernel low-level debugging support
  653. on Tegra based platforms.
  654. config TEGRA_DEBUG_UARTC
  655. bool "Kernel low-level debugging messages via Tegra UART C"
  656. depends on ARCH_TEGRA
  657. select DEBUG_TEGRA_UART
  658. help
  659. Say Y here if you want kernel low-level debugging support
  660. on Tegra based platforms.
  661. config TEGRA_DEBUG_UARTD
  662. bool "Kernel low-level debugging messages via Tegra UART D"
  663. depends on ARCH_TEGRA
  664. select DEBUG_TEGRA_UART
  665. help
  666. Say Y here if you want kernel low-level debugging support
  667. on Tegra based platforms.
  668. config TEGRA_DEBUG_UARTE
  669. bool "Kernel low-level debugging messages via Tegra UART E"
  670. depends on ARCH_TEGRA
  671. select DEBUG_TEGRA_UART
  672. help
  673. Say Y here if you want kernel low-level debugging support
  674. on Tegra based platforms.
  675. config DEBUG_SIRFPRIMA2_UART1
  676. bool "Kernel low-level debugging messages via SiRFprimaII UART1"
  677. depends on ARCH_PRIMA2
  678. help
  679. Say Y here if you want the debug print routines to direct
  680. their output to the uart1 port on SiRFprimaII devices.
  681. config DEBUG_SIRFMARCO_UART1
  682. bool "Kernel low-level debugging messages via SiRFmarco UART1"
  683. depends on ARCH_MARCO
  684. help
  685. Say Y here if you want the debug print routines to direct
  686. their output to the uart1 port on SiRFmarco devices.
  687. config STIH41X_DEBUG_ASC2
  688. bool "Use StiH415/416 ASC2 UART for low-level debug"
  689. depends on ARCH_STI
  690. select DEBUG_STI_UART
  691. help
  692. Say Y here if you want kernel low-level debugging support
  693. on STiH415/416 based platforms like b2000, which has
  694. default UART wired up to ASC2.
  695. If unsure, say N.
  696. config STIH41X_DEBUG_SBC_ASC1
  697. bool "Use StiH415/416 SBC ASC1 UART for low-level debug"
  698. depends on ARCH_STI
  699. select DEBUG_STI_UART
  700. help
  701. Say Y here if you want kernel low-level debugging support
  702. on STiH415/416 based platforms like b2020. which has
  703. default UART wired up to SBC ASC1.
  704. If unsure, say N.
  705. config DEBUG_U300_UART
  706. bool "Kernel low-level debugging messages via U300 UART0"
  707. depends on ARCH_U300
  708. select DEBUG_UART_PL01X
  709. help
  710. Say Y here if you want the debug print routines to direct
  711. their output to the uart port on U300 devices.
  712. config DEBUG_UX500_UART
  713. depends on ARCH_U8500
  714. bool "Use Ux500 UART for low-level debug"
  715. help
  716. Say Y here if you want kernel low-level debugging support
  717. on Ux500 based platforms.
  718. config DEBUG_VEXPRESS_UART0_DETECT
  719. bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
  720. depends on ARCH_VEXPRESS && CPU_CP15_MMU
  721. help
  722. This option enables a simple heuristic which tries to determine
  723. the motherboard's memory map variant (original or RS1) and then
  724. choose the relevant UART0 base address.
  725. Note that this will only work with standard A-class core tiles,
  726. and may fail with non-standard SMM or custom software models.
  727. config DEBUG_VEXPRESS_UART0_CA9
  728. bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
  729. depends on ARCH_VEXPRESS
  730. select DEBUG_UART_PL01X
  731. help
  732. This option selects UART0 at 0x10009000. Except for custom models,
  733. this applies only to the V2P-CA9 tile.
  734. config DEBUG_VEXPRESS_UART0_RS1
  735. bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
  736. depends on ARCH_VEXPRESS
  737. select DEBUG_UART_PL01X
  738. help
  739. This option selects UART0 at 0x1c090000. This applies to most
  740. of the tiles using the RS1 memory map, including all new A-class
  741. core tiles, FPGA-based SMMs and software models.
  742. config DEBUG_VEXPRESS_UART0_CRX
  743. bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
  744. depends on ARCH_VEXPRESS && !MMU
  745. select DEBUG_UART_PL01X
  746. help
  747. This option selects UART0 at 0xb0090000. This is appropriate for
  748. Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
  749. config DEBUG_VT8500_UART0
  750. bool "Use UART0 on VIA/Wondermedia SoCs"
  751. depends on ARCH_VT8500
  752. help
  753. This option selects UART0 on VIA/Wondermedia System-on-a-chip
  754. devices, including VT8500, WM8505, WM8650 and WM8850.
  755. config DEBUG_LL_UART_NONE
  756. bool "No low-level debugging UART"
  757. depends on !ARCH_MULTIPLATFORM
  758. help
  759. Say Y here if your platform doesn't provide a UART option
  760. above. This relies on your platform choosing the right UART
  761. definition internally in order for low-level debugging to
  762. work.
  763. config DEBUG_ICEDCC
  764. bool "Kernel low-level debugging via EmbeddedICE DCC channel"
  765. help
  766. Say Y here if you want the debug print routines to direct
  767. their output to the EmbeddedICE macrocell's DCC channel using
  768. co-processor 14. This is known to work on the ARM9 style ICE
  769. channel and on the XScale with the PEEDI.
  770. Note that the system will appear to hang during boot if there
  771. is nothing connected to read from the DCC.
  772. config DEBUG_SEMIHOSTING
  773. bool "Kernel low-level debug output via semihosting I/O"
  774. help
  775. Semihosting enables code running on an ARM target to use
  776. the I/O facilities on a host debugger/emulator through a
  777. simple SVC call. The host debugger or emulator must have
  778. semihosting enabled for the special svc call to be trapped
  779. otherwise the kernel will crash.
  780. This is known to work with OpenOCD, as well as
  781. ARM's Fast Models, or any other controlling environment
  782. that implements semihosting.
  783. For more details about semihosting, please see
  784. chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
  785. config DEBUG_LL_UART_8250
  786. bool "Kernel low-level debugging via 8250 UART"
  787. help
  788. Say Y here if you wish the debug print routes to direct
  789. their output to an 8250 UART. You can use this option
  790. to provide the parameters for the 8250 UART rather than
  791. selecting one of the platform specific options above if
  792. you know the parameters for the port.
  793. This option is preferred over the platform specific
  794. options; the platform specific options are deprecated
  795. and will be soon removed.
  796. config DEBUG_LL_UART_EFM32
  797. bool "Kernel low-level debugging via efm32 UART"
  798. depends on ARCH_EFM32
  799. help
  800. Say Y here if you want the debug print routines to direct
  801. their output to an UART or USART port on efm32 based
  802. machines. Use the following addresses for DEBUG_UART_PHYS:
  803. 0x4000c000 | USART0
  804. 0x4000c400 | USART1
  805. 0x4000c800 | USART2
  806. 0x4000e000 | UART0
  807. 0x4000e400 | UART1
  808. config DEBUG_LL_UART_PL01X
  809. bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
  810. help
  811. Say Y here if you wish the debug print routes to direct
  812. their output to a PL01x Primecell UART. You can use
  813. this option to provide the parameters for the UART
  814. rather than selecting one of the platform specific
  815. options above if you know the parameters for the port.
  816. This option is preferred over the platform specific
  817. options; the platform specific options are deprecated
  818. and will be soon removed.
  819. endchoice
  820. config DEBUG_EXYNOS_UART
  821. bool
  822. config DEBUG_S3C2410_UART
  823. bool
  824. select DEBUG_S3C24XX_UART
  825. config DEBUG_S3C24XX_UART
  826. bool
  827. config DEBUG_S5PV210_UART
  828. bool
  829. config DEBUG_OMAP2PLUS_UART
  830. bool
  831. depends on ARCH_OMAP2PLUS
  832. config DEBUG_IMX_UART_PORT
  833. int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
  834. DEBUG_IMX25_UART || \
  835. DEBUG_IMX21_IMX27_UART || \
  836. DEBUG_IMX31_UART || \
  837. DEBUG_IMX35_UART || \
  838. DEBUG_IMX50_UART || \
  839. DEBUG_IMX51_UART || \
  840. DEBUG_IMX53_UART || \
  841. DEBUG_IMX6Q_UART || \
  842. DEBUG_IMX6SL_UART || \
  843. DEBUG_IMX6SX_UART
  844. default 1
  845. depends on ARCH_MXC
  846. help
  847. Choose UART port on which kernel low-level debug messages
  848. should be output.
  849. config DEBUG_VF_UART_PORT
  850. int "Vybrid Debug UART Port Selection" if DEBUG_VF_UART
  851. default 1
  852. range 0 3
  853. depends on SOC_VF610
  854. help
  855. Choose UART port on which kernel low-level debug messages
  856. should be output.
  857. config DEBUG_TEGRA_UART
  858. bool
  859. depends on ARCH_TEGRA
  860. config DEBUG_STI_UART
  861. bool
  862. depends on ARCH_STI
  863. config DEBUG_LL_INCLUDE
  864. string
  865. default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
  866. default "debug/clps711x.S" if DEBUG_CLPS711X_UART1 || DEBUG_CLPS711X_UART2
  867. default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
  868. default "debug/exynos.S" if DEBUG_EXYNOS_UART
  869. default "debug/efm32.S" if DEBUG_LL_UART_EFM32
  870. default "debug/icedcc.S" if DEBUG_ICEDCC
  871. default "debug/imx.S" if DEBUG_IMX1_UART || \
  872. DEBUG_IMX25_UART || \
  873. DEBUG_IMX21_IMX27_UART || \
  874. DEBUG_IMX31_UART || \
  875. DEBUG_IMX35_UART || \
  876. DEBUG_IMX50_UART || \
  877. DEBUG_IMX51_UART || \
  878. DEBUG_IMX53_UART ||\
  879. DEBUG_IMX6Q_UART || \
  880. DEBUG_IMX6SL_UART || \
  881. DEBUG_IMX6SX_UART
  882. default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM
  883. default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
  884. default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART
  885. default "debug/s5pv210.S" if DEBUG_S5PV210_UART
  886. default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
  887. default "debug/sti.S" if DEBUG_STI_UART
  888. default "debug/tegra.S" if DEBUG_TEGRA_UART
  889. default "debug/ux500.S" if DEBUG_UX500_UART
  890. default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT
  891. default "debug/vf.S" if DEBUG_VF_UART
  892. default "debug/vt8500.S" if DEBUG_VT8500_UART0
  893. default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
  894. default "mach/debug-macro.S"
  895. # Compatibility options for PL01x
  896. config DEBUG_UART_PL01X
  897. def_bool ARCH_EP93XX || \
  898. ARCH_INTEGRATOR || \
  899. ARCH_SPEAR3XX || \
  900. ARCH_SPEAR6XX || \
  901. ARCH_SPEAR13XX || \
  902. ARCH_VERSATILE
  903. # Compatibility options for 8250
  904. config DEBUG_UART_8250
  905. def_bool ARCH_DOVE || ARCH_EBSA110 || \
  906. (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
  907. ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \
  908. ARCH_IOP33X || ARCH_IXP4XX || \
  909. ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC
  910. config DEBUG_UART_PHYS
  911. hex "Physical base address of debug UART"
  912. default 0x01c20000 if DEBUG_DAVINCI_DMx_UART0
  913. default 0x01c28000 if DEBUG_SUNXI_UART0
  914. default 0x01c28400 if DEBUG_SUNXI_UART1
  915. default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
  916. default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
  917. default 0x01f02800 if DEBUG_SUNXI_R_UART
  918. default 0x02530c00 if DEBUG_KEYSTONE_UART0
  919. default 0x02531000 if DEBUG_KEYSTONE_UART1
  920. default 0x03010fe0 if ARCH_RPC
  921. default 0x10009000 if DEBUG_REALVIEW_STD_PORT || DEBUG_CNS3XXX || \
  922. DEBUG_VEXPRESS_UART0_CA9
  923. default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
  924. default 0x10124000 if DEBUG_RK3X_UART0
  925. default 0x10126000 if DEBUG_RK3X_UART1
  926. default 0x101f1000 if ARCH_VERSATILE
  927. default 0x101fb000 if DEBUG_NOMADIK_UART
  928. default 0x16000000 if ARCH_INTEGRATOR
  929. default 0x18000300 if DEBUG_BCM_5301X
  930. default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
  931. default 0x20060000 if DEBUG_RK29_UART0
  932. default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
  933. default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
  934. default 0x20201000 if DEBUG_BCM2835
  935. default 0x3e000000 if DEBUG_BCM_KONA_UART
  936. default 0x4000e400 if DEBUG_LL_UART_EFM32
  937. default 0x40090000 if ARCH_LPC32XX
  938. default 0x40100000 if DEBUG_PXA_UART1
  939. default 0x42000000 if ARCH_GEMINI
  940. default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
  941. DEBUG_S3C2410_UART0)
  942. default 0x50004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
  943. DEBUG_S3C2410_UART1)
  944. default 0x50008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
  945. DEBUG_S3C2410_UART2)
  946. default 0x7c0003f8 if FOOTBRIDGE
  947. default 0x80070000 if DEBUG_IMX23_UART
  948. default 0x80074000 if DEBUG_IMX28_UART
  949. default 0x80230000 if DEBUG_PICOXCELL_UART
  950. default 0x808c0000 if ARCH_EP93XX
  951. default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
  952. default 0xa9a00000 if DEBUG_MSM_UART
  953. default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
  954. default 0xc0013000 if DEBUG_U300_UART
  955. default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
  956. default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
  957. default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
  958. default 0xd0012000 if DEBUG_MVEBU_UART
  959. default 0xd4017000 if DEBUG_MMP_UART2
  960. default 0xd4018000 if DEBUG_MMP_UART3
  961. default 0xe0000000 if ARCH_SPEAR13XX
  962. default 0xf0000be0 if ARCH_EBSA110
  963. default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
  964. default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \
  965. ARCH_ORION5X
  966. default 0xf7fc9000 if DEBUG_BERLIN_UART
  967. default 0xf8b00000 if DEBUG_HIX5HD2_UART
  968. default 0xf991e000 if DEBUG_QCOM_UARTDM
  969. default 0xfcb00000 if DEBUG_HI3620_UART
  970. default 0xfe800000 if ARCH_IOP32X
  971. default 0xff690000 if DEBUG_RK32_UART2
  972. default 0xffc02000 if DEBUG_SOCFPGA_UART
  973. default 0xffd82340 if ARCH_IOP13XX
  974. default 0xfff36000 if DEBUG_HIGHBANK_UART
  975. default 0xfffff700 if ARCH_IOP33X
  976. depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
  977. DEBUG_LL_UART_EFM32 || \
  978. DEBUG_UART_8250 || DEBUG_UART_PL01X || \
  979. DEBUG_MSM_UART || DEBUG_QCOM_UARTDM || DEBUG_S3C24XX_UART
  980. config DEBUG_UART_VIRT
  981. hex "Virtual base address of debug UART"
  982. default 0xe0010fe0 if ARCH_RPC
  983. default 0xe1000000 if DEBUG_MSM_UART
  984. default 0xf0000be0 if ARCH_EBSA110
  985. default 0xf0009000 if DEBUG_CNS3XXX
  986. default 0xf01fb000 if DEBUG_NOMADIK_UART
  987. default 0xf0201000 if DEBUG_BCM2835
  988. default 0xf1000300 if DEBUG_BCM_5301X
  989. default 0xf11f1000 if ARCH_VERSATILE
  990. default 0xf1600000 if ARCH_INTEGRATOR
  991. default 0xf1c28000 if DEBUG_SUNXI_UART0
  992. default 0xf1c28400 if DEBUG_SUNXI_UART1
  993. default 0xf1f02800 if DEBUG_SUNXI_R_UART
  994. default 0xf2100000 if DEBUG_PXA_UART1
  995. default 0xf4090000 if ARCH_LPC32XX
  996. default 0xf4200000 if ARCH_GEMINI
  997. default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \
  998. DEBUG_S3C2410_UART0)
  999. default 0xf7004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \
  1000. DEBUG_S3C2410_UART1)
  1001. default 0xf7008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \
  1002. DEBUG_S3C2410_UART2)
  1003. default 0xf7fc9000 if DEBUG_BERLIN_UART
  1004. default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
  1005. default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
  1006. default 0xfa71e000 if DEBUG_QCOM_UARTDM
  1007. default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
  1008. default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
  1009. default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
  1010. default 0xfd000000 if ARCH_SPEAR13XX
  1011. default 0xfd012000 if ARCH_MV78XX0
  1012. default 0xfde12000 if ARCH_DOVE
  1013. default 0xfe012000 if ARCH_ORION5X
  1014. default 0xfe017000 if DEBUG_MMP_UART2
  1015. default 0xfe018000 if DEBUG_MMP_UART3
  1016. default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
  1017. default 0xfe230000 if DEBUG_PICOXCELL_UART
  1018. default 0xfe300000 if DEBUG_BCM_KONA_UART
  1019. default 0xfe800000 if ARCH_IOP32X
  1020. default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HIX5HD2_UART
  1021. default 0xfeb24000 if DEBUG_RK3X_UART0
  1022. default 0xfeb26000 if DEBUG_RK3X_UART1
  1023. default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
  1024. default 0xfeb31000 if DEBUG_KEYSTONE_UART1
  1025. default 0xfec02000 if DEBUG_SOCFPGA_UART
  1026. default 0xfec12000 if DEBUG_MVEBU_UART || DEBUG_MVEBU_UART_ALTERNATE
  1027. default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
  1028. default 0xfec90000 if DEBUG_RK32_UART2
  1029. default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
  1030. default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
  1031. default 0xfed60000 if DEBUG_RK29_UART0
  1032. default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
  1033. default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
  1034. default 0xfedc0000 if ARCH_EP93XX
  1035. default 0xfee003f8 if FOOTBRIDGE
  1036. default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
  1037. default 0xfee82340 if ARCH_IOP13XX
  1038. default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
  1039. default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
  1040. default 0xfef36000 if DEBUG_HIGHBANK_UART
  1041. default 0xfefff700 if ARCH_IOP33X
  1042. default 0xff003000 if DEBUG_U300_UART
  1043. default DEBUG_UART_PHYS if !MMU
  1044. depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
  1045. DEBUG_UART_8250 || DEBUG_UART_PL01X || \
  1046. DEBUG_MSM_UART || DEBUG_QCOM_UARTDM || DEBUG_S3C24XX_UART
  1047. config DEBUG_UART_8250_SHIFT
  1048. int "Register offset shift for the 8250 debug UART"
  1049. depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
  1050. default 0 if FOOTBRIDGE || ARCH_IOP32X
  1051. default 2
  1052. config DEBUG_UART_8250_WORD
  1053. bool "Use 32-bit accesses for 8250 UART"
  1054. depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
  1055. depends on DEBUG_UART_8250_SHIFT >= 2
  1056. default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART || \
  1057. ARCH_KEYSTONE || \
  1058. DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
  1059. DEBUG_DAVINCI_DA8XX_UART2 || \
  1060. DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2
  1061. config DEBUG_UART_8250_FLOW_CONTROL
  1062. bool "Enable flow control for 8250 UART"
  1063. depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
  1064. default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_GEMINI || ARCH_RPC
  1065. config DEBUG_UNCOMPRESS
  1066. bool
  1067. depends on ARCH_MULTIPLATFORM || ARCH_MSM || PLAT_SAMSUNG
  1068. default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
  1069. (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
  1070. help
  1071. This option influences the normal decompressor output for
  1072. multiplatform kernels. Normally, multiplatform kernels disable
  1073. decompressor output because it is not possible to know where to
  1074. send the decompressor output.
  1075. When this option is set, the selected DEBUG_LL output method
  1076. will be re-used for normal decompressor output on multiplatform
  1077. kernels.
  1078. config UNCOMPRESS_INCLUDE
  1079. string
  1080. default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM || \
  1081. PLAT_SAMSUNG || ARCH_EFM32
  1082. default "mach/uncompress.h"
  1083. config EARLY_PRINTK
  1084. bool "Early printk"
  1085. depends on DEBUG_LL
  1086. help
  1087. Say Y here if you want to have an early console using the
  1088. kernel low-level debugging functions. Add earlyprintk to your
  1089. kernel parameters to enable this console.
  1090. config OC_ETM
  1091. bool "On-chip ETM and ETB"
  1092. depends on ARM_AMBA
  1093. help
  1094. Enables the on-chip embedded trace macrocell and embedded trace
  1095. buffer driver that will allow you to collect traces of the
  1096. kernel code.
  1097. config ARM_KPROBES_TEST
  1098. tristate "Kprobes test module"
  1099. depends on KPROBES && MODULES
  1100. help
  1101. Perform tests of kprobes API and instruction set simulation.
  1102. config PID_IN_CONTEXTIDR
  1103. bool "Write the current PID to the CONTEXTIDR register"
  1104. depends on CPU_COPY_V6
  1105. help
  1106. Enabling this option causes the kernel to write the current PID to
  1107. the PROCID field of the CONTEXTIDR register, at the expense of some
  1108. additional instructions during context switch. Say Y here only if you
  1109. are planning to use hardware trace tools with this kernel.
  1110. config DEBUG_SET_MODULE_RONX
  1111. bool "Set loadable kernel module data as NX and text as RO"
  1112. depends on MODULES
  1113. ---help---
  1114. This option helps catch unintended modifications to loadable
  1115. kernel module's text and read-only data. It also prevents execution
  1116. of module data. Such protection may interfere with run-time code
  1117. patching and dynamic kernel tracing - and they might also protect
  1118. against certain classes of kernel exploits.
  1119. If in doubt, say "N".
  1120. endmenu