Kconfig 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. #
  2. # Serial device configuration
  3. #
  4. menu "Serial drivers"
  5. config BAUDRATE
  6. int "Default baudrate"
  7. default 115200
  8. help
  9. Select a default baudrate, where "default" has a driver-specific
  10. meaning of either setting the baudrate for the early debug UART
  11. in the SPL stage (most drivers) or for choosing a default baudrate
  12. in the absence of an environment setting (serial_mxc.c).
  13. config REQUIRE_SERIAL_CONSOLE
  14. bool "Require a serial port for console"
  15. # Running without a serial console is not supported by the
  16. # non-dm serial code
  17. depends on DM_SERIAL
  18. default y
  19. help
  20. Require a serial port for the console, and panic if none is found
  21. during serial port initialization (default y). Set this to n on
  22. boards which have no debug serial port whatsoever.
  23. config SPECIFY_CONSOLE_INDEX
  24. bool "Specify the port number used for console"
  25. default y if !DM_SERIAL || (SPL && !SPL_DM_SERIAL) || \
  26. (TPL && !TPL_DM_SERIAL)
  27. help
  28. In various cases, we need to specify which of the UART devices that
  29. a board or SoC has available are to be used for the console device
  30. in U-Boot.
  31. config SERIAL_PRESENT
  32. bool "Provide a serial driver"
  33. depends on DM_SERIAL
  34. default y
  35. help
  36. In very space-constrained devices even the full UART driver is too
  37. large. In this case the debug UART can still be used in some cases.
  38. This option enables the full UART in U-Boot, so if is it disabled,
  39. the full UART driver will be omitted, thus saving space.
  40. config SPL_SERIAL_PRESENT
  41. bool "Provide a serial driver in SPL"
  42. depends on DM_SERIAL
  43. default y
  44. help
  45. In very space-constrained devices even the full UART driver is too
  46. large. In this case the debug UART can still be used in some cases.
  47. This option enables the full UART in SPL, so if is it disabled,
  48. the full UART driver will be omitted, thus saving space.
  49. # Logic to allow us to use the imply keyword to set what the default port
  50. # should be. The default is otherwise 1.
  51. config CONS_INDEX_0
  52. bool
  53. config CONS_INDEX_2
  54. bool
  55. config CONS_INDEX_3
  56. bool
  57. config CONS_INDEX_4
  58. bool
  59. config CONS_INDEX_5
  60. bool
  61. config CONS_INDEX_6
  62. bool
  63. config CONS_INDEX
  64. int "UART used for console"
  65. depends on SPECIFY_CONSOLE_INDEX
  66. range 0 6
  67. default 0 if CONS_INDEX_0
  68. default 2 if CONS_INDEX_2
  69. default 3 if CONS_INDEX_3
  70. default 4 if CONS_INDEX_4
  71. default 5 if CONS_INDEX_5
  72. default 6 if CONS_INDEX_6
  73. default 1
  74. help
  75. Set this to match the UART number of the serial console.
  76. config DM_SERIAL
  77. bool "Enable Driver Model for serial drivers"
  78. depends on DM
  79. help
  80. Enable driver model for serial. This replaces
  81. drivers/serial/serial.c with the serial uclass, which
  82. implements serial_putc() etc. The uclass interface is
  83. defined in include/serial.h.
  84. config SERIAL_RX_BUFFER
  85. bool "Enable RX buffer for serial input"
  86. depends on DM_SERIAL
  87. help
  88. Enable RX buffer support for the serial driver. This enables
  89. pasting longer strings, even when the RX FIFO of the UART is
  90. not big enough (e.g. 16 bytes on the normal NS16550).
  91. config SERIAL_RX_BUFFER_SIZE
  92. int "RX buffer size"
  93. depends on SERIAL_RX_BUFFER
  94. default 256
  95. help
  96. The size of the RX buffer (needs to be power of 2)
  97. config SERIAL_SEARCH_ALL
  98. bool "Search for serial devices after default one failed"
  99. depends on DM_SERIAL
  100. help
  101. The serial subsystem only searches for a single serial device
  102. that was instantiated, but does not check whether it was probed
  103. correctly. With this option set, we make successful probing
  104. mandatory and search for fallback serial devices if the default
  105. device does not work.
  106. If unsure, say N.
  107. config SPL_DM_SERIAL
  108. bool "Enable Driver Model for serial drivers in SPL"
  109. depends on DM_SERIAL && SPL_DM
  110. default y
  111. help
  112. Enable driver model for serial in SPL. This replaces
  113. drivers/serial/serial.c with the serial uclass, which
  114. implements serial_putc() etc. The uclass interface is
  115. defined in include/serial.h.
  116. config TPL_DM_SERIAL
  117. bool "Enable Driver Model for serial drivers in TPL"
  118. depends on DM_SERIAL
  119. default y if TPL && DM_SERIAL
  120. help
  121. Enable driver model for serial in TPL. This replaces
  122. drivers/serial/serial.c with the serial uclass, which
  123. implements serial_putc() etc. The uclass interface is
  124. defined in include/serial.h.
  125. config DEBUG_UART
  126. bool "Enable an early debug UART for debugging"
  127. help
  128. The debug UART is intended for use very early in U-Boot to debug
  129. problems when an ICE or other debug mechanism is not available.
  130. To use it you should:
  131. - Make sure your UART supports this interface
  132. - Enable CONFIG_DEBUG_UART
  133. - Enable the CONFIG for your UART to tell it to provide this interface
  134. (e.g. CONFIG_DEBUG_UART_NS16550)
  135. - Define the required settings as needed (see below)
  136. - Call debug_uart_init() before use
  137. - Call debug_uart_putc() to output a character
  138. Depending on your platform it may be possible to use this UART before
  139. a stack is available.
  140. If your UART does not support this interface you can probably add
  141. support quite easily. Remember that you cannot use driver model and
  142. it is preferred to use no stack.
  143. You must not use this UART once driver model is working and the
  144. serial drivers are up and running (done in serial_init()). Otherwise
  145. the drivers may conflict and you will get strange output.
  146. choice
  147. prompt "Select which UART will provide the debug UART"
  148. depends on DEBUG_UART
  149. default DEBUG_UART_NS16550
  150. config DEBUG_UART_ALTERA_JTAGUART
  151. bool "Altera JTAG UART"
  152. help
  153. Select this to enable a debug UART using the altera_jtag_uart driver.
  154. You will need to provide parameters to make this work. The driver will
  155. be available until the real driver model serial is running.
  156. config DEBUG_UART_ALTERA_UART
  157. bool "Altera UART"
  158. help
  159. Select this to enable a debug UART using the altera_uart driver.
  160. You will need to provide parameters to make this work. The driver will
  161. be available until the real driver model serial is running.
  162. config DEBUG_UART_AR933X
  163. bool "QCA/Atheros ar933x"
  164. depends on AR933X_UART
  165. help
  166. Select this to enable a debug UART using the ar933x uart driver.
  167. You will need to provide parameters to make this work. The
  168. driver will be available until the real driver model serial is
  169. running.
  170. config DEBUG_ARC_SERIAL
  171. bool "ARC UART"
  172. depends on ARC_SERIAL
  173. help
  174. Select this to enable a debug UART using the ARC UART driver.
  175. You will need to provide parameters to make this work. The
  176. driver will be available until the real driver model serial is
  177. running.
  178. config DEBUG_UART_ATMEL
  179. bool "Atmel USART"
  180. help
  181. Select this to enable a debug UART using the atmel usart driver. You
  182. will need to provide parameters to make this work. The driver will
  183. be available until the real driver-model serial is running.
  184. config DEBUG_UART_BCM6345
  185. bool "BCM6345 UART"
  186. depends on BCM6345_SERIAL
  187. help
  188. Select this to enable a debug UART on BCM6345 SoCs. You
  189. will need to provide parameters to make this work. The driver will
  190. be available until the real driver model serial is running.
  191. config DEBUG_UART_NS16550
  192. bool "ns16550"
  193. help
  194. Select this to enable a debug UART using the ns16550 driver. You
  195. will need to provide parameters to make this work. The driver will
  196. be available until the real driver model serial is running.
  197. config DEBUG_EFI_CONSOLE
  198. bool "EFI"
  199. depends on EFI_APP
  200. help
  201. Select this to enable a debug console which calls back to EFI to
  202. output to the console. This can be useful for early debugging of
  203. U-Boot when running on top of EFI (Extensive Firmware Interface).
  204. This is a type of BIOS used by PCs.
  205. config DEBUG_UART_S5P
  206. bool "Samsung S5P"
  207. help
  208. Select this to enable a debug UART using the serial_s5p driver. You
  209. will need to provide parameters to make this work. The driver will
  210. be available until the real driver-model serial is running.
  211. config DEBUG_UART_MESON
  212. bool "Amlogic Meson"
  213. depends on MESON_SERIAL
  214. help
  215. Select this to enable a debug UART using the serial_meson driver. You
  216. will need to provide parameters to make this work. The driver will
  217. be available until the real driver-model serial is running.
  218. config DEBUG_UART_UARTLITE
  219. bool "Xilinx Uartlite"
  220. help
  221. Select this to enable a debug UART using the serial_uartlite driver.
  222. You will need to provide parameters to make this work. The driver will
  223. be available until the real driver-model serial is running.
  224. config DEBUG_UART_ARM_DCC
  225. bool "ARM DCC"
  226. help
  227. Select this to enable a debug UART using the ARM JTAG DCC port.
  228. The DCC port can be used for very early debugging and doesn't require
  229. any additional setting like address/baudrate/clock. On systems without
  230. any serial interface this is the easiest way how to get console.
  231. Every ARM core has own DCC port which is the part of debug interface.
  232. This port is available at least on ARMv6, ARMv7, ARMv8 and XScale
  233. architectures.
  234. config DEBUG_MVEBU_A3700_UART
  235. bool "Marvell Armada 3700"
  236. help
  237. Select this to enable a debug UART using the serial_mvebu driver. You
  238. will need to provide parameters to make this work. The driver will
  239. be available until the real driver-model serial is running.
  240. config DEBUG_UART_ZYNQ
  241. bool "Xilinx Zynq"
  242. help
  243. Select this to enable a debug UART using the serial_zynq driver. You
  244. will need to provide parameters to make this work. The driver will
  245. be available until the real driver-model serial is running.
  246. config DEBUG_UART_APBUART
  247. depends on LEON3
  248. bool "Gaisler APBUART"
  249. help
  250. Select this to enable a debug UART using the serial_leon3 driver. You
  251. will need to provide parameters to make this work. The driver will
  252. be available until the real driver model serial is running.
  253. config DEBUG_UART_PL010
  254. bool "pl010"
  255. help
  256. Select this to enable a debug UART using the pl01x driver with the
  257. PL010 UART type. You will need to provide parameters to make this
  258. work. The driver will be available until the real driver model
  259. serial is running.
  260. config DEBUG_UART_PL011
  261. bool "pl011"
  262. help
  263. Select this to enable a debug UART using the pl01x driver with the
  264. PL011 UART type. You will need to provide parameters to make this
  265. work. The driver will be available until the real driver model
  266. serial is running.
  267. config DEBUG_UART_PIC32
  268. bool "Microchip PIC32"
  269. depends on PIC32_SERIAL
  270. help
  271. Select this to enable a debug UART using the serial_pic32 driver. You
  272. will need to provide parameters to make this work. The driver will
  273. be available until the real driver model serial is running.
  274. config DEBUG_UART_MXC
  275. bool "IMX Serial port"
  276. depends on MXC_UART
  277. help
  278. Select this to enable a debug UART using the serial_mxc driver. You
  279. will need to provide parameters to make this work. The driver will
  280. be available until the real driver model serial is running.
  281. config DEBUG_UART_STM32
  282. bool "STMicroelectronics STM32"
  283. depends on STM32_SERIAL
  284. help
  285. Select this to enable a debug UART using the serial_stm32 driver
  286. You will need to provide parameters to make this work.
  287. The driver will be available until the real driver model
  288. serial is running.
  289. config DEBUG_UART_UNIPHIER
  290. bool "UniPhier on-chip UART"
  291. depends on ARCH_UNIPHIER
  292. help
  293. Select this to enable a debug UART using the UniPhier on-chip UART.
  294. You will need to provide DEBUG_UART_BASE to make this work. The
  295. driver will be available until the real driver-model serial is
  296. running.
  297. config DEBUG_UART_OMAP
  298. bool "OMAP uart"
  299. help
  300. Select this to enable a debug UART using the omap ns16550 driver.
  301. You will need to provide parameters to make this work. The driver
  302. will be available until the real driver model serial is running.
  303. endchoice
  304. config DEBUG_UART_BASE
  305. hex "Base address of UART"
  306. depends on DEBUG_UART
  307. help
  308. This is the base address of your UART for memory-mapped UARTs.
  309. A default should be provided by your board, but if not you will need
  310. to use the correct value here.
  311. config DEBUG_UART_CLOCK
  312. int "UART input clock"
  313. depends on DEBUG_UART
  314. help
  315. The UART input clock determines the speed of the internal UART
  316. circuitry. The baud rate is derived from this by dividing the input
  317. clock down.
  318. A default should be provided by your board, but if not you will need
  319. to use the correct value here.
  320. config DEBUG_UART_SHIFT
  321. int "UART register shift"
  322. depends on DEBUG_UART
  323. default 0 if DEBUG_UART
  324. help
  325. Some UARTs (notably ns16550) support different register layouts
  326. where the registers are spaced either as bytes, words or some other
  327. value. Use this value to specify the shift to use, where 0=byte
  328. registers, 2=32-bit word registers, etc.
  329. config DEBUG_UART_BOARD_INIT
  330. bool "Enable board-specific debug UART init"
  331. depends on DEBUG_UART
  332. help
  333. Some boards need to set things up before the debug UART can be used.
  334. On these boards a call to debug_uart_init() is insufficient. When
  335. this option is enabled, the function board_debug_uart_init() will
  336. be called when debug_uart_init() is called. You can put any code
  337. here that is needed to set up the UART ready for use, such as set
  338. pin multiplexing or enable clocks.
  339. config DEBUG_UART_ANNOUNCE
  340. bool "Show a message when the debug UART starts up"
  341. depends on DEBUG_UART
  342. help
  343. Enable this option to show a message when the debug UART is ready
  344. for use. You will see a message like "<debug_uart> " as soon as
  345. U-Boot has the UART ready for use (i.e. your code calls
  346. debug_uart_init()). This can be useful just as a check that
  347. everything is working.
  348. config DEBUG_UART_SKIP_INIT
  349. bool "Skip UART initialization"
  350. help
  351. Select this if the UART you want to use for debug output is already
  352. initialized by the time U-Boot starts its execution.
  353. config ALTERA_JTAG_UART
  354. bool "Altera JTAG UART support"
  355. depends on DM_SERIAL
  356. help
  357. Select this to enable an JTAG UART for Altera devices.The JTAG UART
  358. core implements a method to communicate serial character streams
  359. between a host PC and a Qsys system on an Altera FPGA. Please find
  360. details on the "Embedded Peripherals IP User Guide" of Altera.
  361. config ALTERA_JTAG_UART_BYPASS
  362. bool "Bypass output when no connection"
  363. depends on ALTERA_JTAG_UART
  364. help
  365. Bypass console output and keep going even if there is no JTAG
  366. terminal connection with the host. The console output will resume
  367. once the JTAG terminal is connected. Without the bypass, the console
  368. output will wait forever until a JTAG terminal is connected. If you
  369. not are sure, say Y.
  370. config ALTERA_UART
  371. bool "Altera UART support"
  372. depends on DM_SERIAL
  373. help
  374. Select this to enable an UART for Altera devices. Please find
  375. details on the "Embedded Peripherals IP User Guide" of Altera.
  376. config AR933X_UART
  377. bool "QCA/Atheros ar933x UART support"
  378. depends on DM_SERIAL && SOC_AR933X
  379. help
  380. Select this to enable UART support for QCA/Atheros ar933x
  381. devices. This driver uses driver model and requires a device
  382. tree binding to operate, please refer to the document at
  383. doc/device-tree-bindings/serial/qca,ar9330-uart.txt.
  384. config ARC_SERIAL
  385. bool "ARC UART support"
  386. depends on DM_SERIAL
  387. help
  388. Select this to enable support for ARC UART now typically
  389. only used in Synopsys DesignWare ARC simulators like nSIM.
  390. config ATMEL_USART
  391. bool "Atmel USART support"
  392. help
  393. Select this to enable USART support for Atmel SoCs. It can be
  394. configured in the device tree, and input clock frequency can
  395. be got from the clk node.
  396. config BCM283X_MU_SERIAL
  397. bool "Support for BCM283x Mini-UART"
  398. depends on DM_SERIAL && ARCH_BCM283X
  399. default y
  400. help
  401. Select this to enable Mini-UART support on BCM283X family of SoCs.
  402. config BCM283X_PL011_SERIAL
  403. bool "Support for BCM283x PL011 UART"
  404. depends on PL01X_SERIAL && ARCH_BCM283X
  405. default y
  406. help
  407. Select this to enable an overriding PL011 driver for BCM283X SoCs
  408. that supports automatic disable, so that it only gets used when
  409. the UART is actually muxed.
  410. config BCM6345_SERIAL
  411. bool "Support for BCM6345 UART"
  412. depends on DM_SERIAL && ARCH_BMIPS
  413. help
  414. Select this to enable UART on BCM6345 SoCs.
  415. config FSL_LINFLEXUART
  416. bool "Freescale Linflex UART support"
  417. depends on DM_SERIAL
  418. help
  419. Select this to enable the Linflex serial module found on some
  420. NXP SoCs like S32V234.
  421. config FSL_LPUART
  422. bool "Freescale LPUART support"
  423. help
  424. Select this to enable a Low Power UART for Freescale VF610 and
  425. QorIQ Layerscape devices.
  426. config MVEBU_A3700_UART
  427. bool "UART support for Armada 3700"
  428. default n
  429. help
  430. Choose this option to add support for UART driver on the Marvell
  431. Armada 3700 SoC. The base address is configured via DT.
  432. config MXC_UART
  433. bool "IMX serial port support"
  434. depends on MX5 || MX6
  435. help
  436. If you have a machine based on a Motorola IMX CPU you
  437. can enable its onboard serial port by enabling this option.
  438. config NULLDEV_SERIAL
  439. bool "Null serial device"
  440. help
  441. Select this to enable null serial device support. A null serial
  442. device merely acts as a placeholder for a serial device and does
  443. nothing for all it's operation.
  444. config PIC32_SERIAL
  445. bool "Support for Microchip PIC32 on-chip UART"
  446. depends on DM_SERIAL && MACH_PIC32
  447. default y
  448. help
  449. Support for the UART found on Microchip PIC32 SoC's.
  450. config SYS_NS16550
  451. bool "NS16550 UART or compatible"
  452. help
  453. Support NS16550 UART or compatible. This can be enabled in the
  454. device tree with the correct input clock frequency. If the input
  455. clock frequency is not defined in the device tree, the macro
  456. CONFIG_SYS_NS16550_CLK defined in a legacy board header file will
  457. be used. It can be a constant or a function to get clock, eg,
  458. get_serial_clock().
  459. config INTEL_MID_SERIAL
  460. bool "Intel MID platform UART support"
  461. depends on DM_SERIAL && OF_CONTROL
  462. depends on INTEL_MID
  463. select SYS_NS16550
  464. help
  465. Select this to enable a UART for Intel MID platforms.
  466. This uses the ns16550 driver as a library.
  467. config PL010_SERIAL
  468. bool "ARM PL010 driver"
  469. depends on !DM_SERIAL
  470. help
  471. Select this to enable a UART for platforms using PL010.
  472. config PL011_SERIAL
  473. bool "ARM PL011 driver"
  474. depends on !DM_SERIAL
  475. help
  476. Select this to enable a UART for platforms using PL011.
  477. config PL01X_SERIAL
  478. bool "ARM PL010 and PL011 driver"
  479. depends on DM_SERIAL
  480. help
  481. Select this to enable a UART for platforms using PL010 or PL011.
  482. config ROCKCHIP_SERIAL
  483. bool "Rockchip on-chip UART support"
  484. depends on DM_SERIAL && SPL_OF_PLATDATA
  485. help
  486. Select this to enable a debug UART for Rockchip devices when using
  487. CONFIG_SPL_OF_PLATDATA (i.e. a compiled-in device tree replacemenmt).
  488. This uses the ns16550 driver, converting the platdata from of-platdata
  489. to the ns16550 format.
  490. config SANDBOX_SERIAL
  491. bool "Sandbox UART support"
  492. depends on SANDBOX
  493. help
  494. Select this to enable a seral UART for sandbox. This is required to
  495. operate correctly, otherwise you will see no serial output from
  496. sandbox. The emulated UART will display to the console and console
  497. input will be fed into the UART. This allows you to interact with
  498. U-Boot.
  499. The operation of the console is controlled by the -t command-line
  500. flag. In raw mode, U-Boot sees all characters from the terminal
  501. before they are processed, including Ctrl-C. In cooked mode, Ctrl-C
  502. is processed by the terminal, and terminates U-Boot. Valid options
  503. are:
  504. -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot
  505. -t raw Raw mode, Ctrl-C is processed by U-Boot
  506. -t cooked Cooked mode, Ctrl-C terminates
  507. config SCIF_CONSOLE
  508. bool "Renesas SCIF UART support"
  509. depends on SH || ARCH_RMOBILE
  510. help
  511. Select this to enable Renesas SCIF UART. To operate serial ports
  512. on systems with RCar or SH SoCs, say Y to this option. If unsure,
  513. say N.
  514. config UNIPHIER_SERIAL
  515. bool "Support for UniPhier on-chip UART"
  516. depends on ARCH_UNIPHIER
  517. default y
  518. help
  519. If you have a UniPhier based board and want to use the on-chip
  520. serial ports, say Y to this option. If unsure, say N.
  521. config XILINX_UARTLITE
  522. bool "Xilinx Uarlite support"
  523. depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || 4xx)
  524. help
  525. If you have a Xilinx based board and want to use the uartlite
  526. serial ports, say Y to this option. If unsure, say N.
  527. config MESON_SERIAL
  528. bool "Support for Amlogic Meson UART"
  529. depends on DM_SERIAL && ARCH_MESON
  530. help
  531. If you have an Amlogic Meson based board and want to use the on-chip
  532. serial ports, say Y to this option. If unsure, say N.
  533. config MSM_SERIAL
  534. bool "Qualcomm on-chip UART"
  535. depends on DM_SERIAL
  536. help
  537. Support Data Mover UART used on Qualcomm Snapdragon SoCs.
  538. It should support all Qualcomm devices with UARTDM version 1.4,
  539. for example APQ8016 and MSM8916.
  540. Single baudrate is supported in current implementation (115200).
  541. config PXA_SERIAL
  542. bool "PXA serial port support"
  543. help
  544. If you have a machine based on a Marvell XScale PXA2xx CPU you
  545. can enable its onboard serial ports by enabling this option.
  546. config STI_ASC_SERIAL
  547. bool "STMicroelectronics on-chip UART"
  548. depends on DM_SERIAL && ARCH_STI
  549. help
  550. Select this to enable Asynchronous Serial Controller available
  551. on STiH410 SoC. This is a basic implementation, it supports
  552. following baudrate 9600, 19200, 38400, 57600 and 115200.
  553. config STM32_SERIAL
  554. bool "STMicroelectronics STM32 SoCs on-chip UART"
  555. depends on DM_SERIAL && (STM32F4 || STM32F7 || STM32H7 || ARCH_STM32MP)
  556. help
  557. If you have a machine based on a STM32 F4, F7, H7 or MP1 SOC
  558. you can enable its onboard serial ports, say Y to this option.
  559. If unsure, say N.
  560. config ZYNQ_SERIAL
  561. bool "Cadence (Xilinx Zynq) UART support"
  562. depends on DM_SERIAL && (MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_ZYNQMP_R5)
  563. help
  564. This driver supports the Cadence UART. It is found e.g. in Xilinx
  565. Zynq/ZynqMP.
  566. config MPC8XX_CONS
  567. bool "Console driver for MPC8XX"
  568. depends on MPC8xx
  569. default y
  570. choice
  571. prompt "Console port"
  572. default 8xx_CONS_SMC1
  573. depends on MPC8XX_CONS
  574. help
  575. Depending on board, select one serial port
  576. (CONFIG_8xx_CONS_SMC1 or CONFIG_8xx_CONS_SMC2)
  577. config 8xx_CONS_SMC1
  578. bool "SMC1"
  579. config 8xx_CONS_SMC2
  580. bool "SMC2"
  581. endchoice
  582. config SYS_SMC_RXBUFLEN
  583. int "Console Rx buffer length"
  584. depends on MPC8XX_CONS
  585. default 1
  586. help
  587. With CONFIG_SYS_SMC_RXBUFLEN it is possible to define
  588. the maximum receive buffer length for the SMC.
  589. This option is actual only for 8xx possible.
  590. If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE
  591. must be defined, to setup the maximum idle timeout for
  592. the SMC.
  593. config SYS_MAXIDLE
  594. int "maximum idle timeout"
  595. depends on MPC8XX_CONS
  596. default 0
  597. config SYS_BRGCLK_PRESCALE
  598. int "BRG Clock Prescale"
  599. depends on MPC8XX_CONS
  600. default 1
  601. config SYS_SDSR
  602. hex "SDSR Value"
  603. depends on MPC8XX_CONS
  604. default 0x83
  605. config SYS_SDMR
  606. hex "SDMR Value"
  607. depends on MPC8XX_CONS
  608. default 0
  609. endmenu