]>
Commit | Line | Data |
---|---|---|
0b11dbf7 MY |
1 | # |
2 | # Serial device configuration | |
3 | # | |
4 | ||
5 | menu "Serial drivers" | |
6 | ||
8c458588 HG |
7 | config REQUIRE_SERIAL_CONSOLE |
8 | bool "Require a serial port for console" | |
9 | # Running without a serial console is not supported by the | |
10 | # non-dm serial code | |
11 | depends on DM_SERIAL | |
12 | default y | |
13 | help | |
14 | Require a serial port for the console, and panic if none is found | |
15 | during serial port initialization (default y). Set this to n on | |
16 | boards which have no debug serial port whatsoever. | |
17 | ||
92c55b68 SG |
18 | config SERIAL_PRESENT |
19 | bool "Provide a serial driver" | |
20 | depends on DM_SERIAL | |
21 | default y | |
22 | help | |
23 | In very space-constrained devices even the full UART driver is too | |
24 | large. In this case the debug UART can still be used in some cases. | |
25 | This option enables the full UART in U-Boot, so if is it disabled, | |
26 | the full UART driver will be omitted, thus saving space. | |
27 | ||
28 | config SPL_SERIAL_PRESENT | |
29 | bool "Provide a serial driver in SPL" | |
30 | depends on DM_SERIAL | |
31 | default y | |
32 | help | |
33 | In very space-constrained devices even the full UART driver is too | |
34 | large. In this case the debug UART can still be used in some cases. | |
35 | This option enables the full UART in SPL, so if is it disabled, | |
36 | the full UART driver will be omitted, thus saving space. | |
37 | ||
da333ae7 MY |
38 | config DM_SERIAL |
39 | bool "Enable Driver Model for serial drivers" | |
40 | depends on DM | |
41 | help | |
f94a1bed SG |
42 | Enable driver model for serial. This replaces |
43 | drivers/serial/serial.c with the serial uclass, which | |
44 | implements serial_putc() etc. The uclass interface is | |
45 | defined in include/serial.h. | |
ff247b7a | 46 | |
2f964aa7 SG |
47 | config DEBUG_UART |
48 | bool "Enable an early debug UART for debugging" | |
49 | help | |
50 | The debug UART is intended for use very early in U-Boot to debug | |
51 | problems when an ICE or other debug mechanism is not available. | |
52 | ||
53 | To use it you should: | |
54 | - Make sure your UART supports this interface | |
55 | - Enable CONFIG_DEBUG_UART | |
56 | - Enable the CONFIG for your UART to tell it to provide this interface | |
57 | (e.g. CONFIG_DEBUG_UART_NS16550) | |
58 | - Define the required settings as needed (see below) | |
59 | - Call debug_uart_init() before use | |
60 | - Call debug_uart_putc() to output a character | |
61 | ||
62 | Depending on your platform it may be possible to use this UART before | |
63 | a stack is available. | |
64 | ||
65 | If your UART does not support this interface you can probably add | |
66 | support quite easily. Remember that you cannot use driver model and | |
67 | it is preferred to use no stack. | |
68 | ||
69 | You must not use this UART once driver model is working and the | |
70 | serial drivers are up and running (done in serial_init()). Otherwise | |
71 | the drivers may conflict and you will get strange output. | |
72 | ||
21d00436 SG |
73 | choice |
74 | prompt "Select which UART will provide the debug UART" | |
75 | depends on DEBUG_UART | |
b1e361b6 | 76 | default DEBUG_UART_NS16550 |
21d00436 | 77 | |
220e8021 TC |
78 | config DEBUG_UART_ALTERA_JTAGUART |
79 | bool "Altera JTAG UART" | |
80 | help | |
81 | Select this to enable a debug UART using the altera_jtag_uart driver. | |
82 | You will need to provide parameters to make this work. The driver will | |
83 | be available until the real driver model serial is running. | |
84 | ||
da2f838d TC |
85 | config DEBUG_UART_ALTERA_UART |
86 | bool "Altera UART" | |
87 | help | |
88 | Select this to enable a debug UART using the altera_uart driver. | |
89 | You will need to provide parameters to make this work. The driver will | |
90 | be available until the real driver model serial is running. | |
91 | ||
21d00436 SG |
92 | config DEBUG_UART_NS16550 |
93 | bool "ns16550" | |
94 | help | |
95 | Select this to enable a debug UART using the ns16550 driver. You | |
96 | will need to provide parameters to make this work. The driver will | |
97 | be available until the real driver model serial is running. | |
98 | ||
275854ba SG |
99 | config DEBUG_EFI_CONSOLE |
100 | bool "EFI" | |
101 | depends on EFI_APP | |
102 | help | |
103 | Select this to enable a debug console which calls back to EFI to | |
104 | output to the console. This can be useful for early debugging of | |
105 | U-Boot when running on top of EFI (Extensive Firmware Interface). | |
106 | This is a type of BIOS used by PCs. | |
107 | ||
bf6e7022 SG |
108 | config DEBUG_UART_S5P |
109 | bool "Samsung S5P" | |
110 | help | |
111 | Select this to enable a debug UART using the serial_s5p driver. You | |
112 | will need to provide parameters to make this work. The driver will | |
113 | be available until the real driver-model serial is running. | |
114 | ||
c54c0a4c SG |
115 | config DEBUG_UART_ZYNQ |
116 | bool "Xilinx Zynq" | |
117 | help | |
6bf87dac | 118 | Select this to enable a debug UART using the serial_zynq driver. You |
c54c0a4c SG |
119 | will need to provide parameters to make this work. The driver will |
120 | be available until the real driver-model serial is running. | |
121 | ||
e43ce3fc FR |
122 | config DEBUG_UART_APBUART |
123 | depends on LEON3 | |
124 | bool "Gaisler APBUART" | |
125 | help | |
126 | Select this to enable a debug UART using the serial_leon3 driver. You | |
127 | will need to provide parameters to make this work. The driver will | |
128 | be available until the real driver model serial is running. | |
129 | ||
19de8150 ST |
130 | config DEBUG_UART_PL010 |
131 | bool "pl010" | |
132 | help | |
133 | Select this to enable a debug UART using the pl01x driver with the | |
134 | PL010 UART type. You will need to provide parameters to make this | |
135 | work. The driver will be available until the real driver model | |
136 | serial is running. | |
137 | ||
138 | config DEBUG_UART_PL011 | |
139 | bool "pl011" | |
140 | help | |
141 | Select this to enable a debug UART using the pl01x driver with the | |
142 | PL011 UART type. You will need to provide parameters to make this | |
143 | work. The driver will be available until the real driver model | |
144 | serial is running. | |
145 | ||
21d00436 SG |
146 | endchoice |
147 | ||
2f964aa7 SG |
148 | config DEBUG_UART_BASE |
149 | hex "Base address of UART" | |
150 | depends on DEBUG_UART | |
151 | help | |
152 | This is the base address of your UART for memory-mapped UARTs. | |
153 | ||
154 | A default should be provided by your board, but if not you will need | |
155 | to use the correct value here. | |
156 | ||
157 | config DEBUG_UART_CLOCK | |
158 | int "UART input clock" | |
159 | depends on DEBUG_UART | |
160 | help | |
161 | The UART input clock determines the speed of the internal UART | |
162 | circuitry. The baud rate is derived from this by dividing the input | |
163 | clock down. | |
164 | ||
165 | A default should be provided by your board, but if not you will need | |
166 | to use the correct value here. | |
167 | ||
dd0b0122 SG |
168 | config DEBUG_UART_SHIFT |
169 | int "UART register shift" | |
170 | depends on DEBUG_UART | |
171 | default 0 if DEBUG_UART | |
172 | help | |
173 | Some UARTs (notably ns16550) support different register layouts | |
174 | where the registers are spaced either as bytes, words or some other | |
175 | value. Use this value to specify the shift to use, where 0=byte | |
176 | registers, 2=32-bit word registers, etc. | |
177 | ||
0e977bc1 SG |
178 | config DEBUG_UART_BOARD_INIT |
179 | bool "Enable board-specific debug UART init" | |
180 | depends on DEBUG_UART | |
181 | help | |
182 | Some boards need to set things up before the debug UART can be used. | |
183 | On these boards a call to debug_uart_init() is insufficient. When | |
184 | this option is enabled, the function board_debug_uart_init() will | |
185 | be called when debug_uart_init() is called. You can put any code | |
186 | here that is needed to set up the UART ready for use, such as set | |
187 | pin multiplexing or enable clocks. | |
188 | ||
c7fefcb9 SG |
189 | config DEBUG_UART_ANNOUNCE |
190 | bool "Show a message when the debug UART starts up" | |
191 | depends on DEBUG_UART | |
192 | help | |
193 | Enable this option to show a message when the debug UART is ready | |
194 | for use. You will see a message like "<debug_uart> " as soon as | |
195 | U-Boot has the UART ready for use (i.e. your code calls | |
196 | debug_uart_init()). This can be useful just as a check that | |
197 | everything is working. | |
198 | ||
19de8150 ST |
199 | config DEBUG_UART_SKIP_INIT |
200 | bool "Skip UART initialization" | |
201 | help | |
202 | Select this if the UART you want to use for debug output is already | |
203 | initialized by the time U-Boot starts its execution. | |
204 | ||
220e8021 TC |
205 | config ALTERA_JTAG_UART |
206 | bool "Altera JTAG UART support" | |
207 | depends on DM_SERIAL | |
208 | help | |
209 | Select this to enable an JTAG UART for Altera devices.The JTAG UART | |
210 | core implements a method to communicate serial character streams | |
211 | between a host PC and a Qsys system on an Altera FPGA. Please find | |
212 | details on the "Embedded Peripherals IP User Guide" of Altera. | |
213 | ||
214 | config ALTERA_JTAG_UART_BYPASS | |
215 | bool "Bypass output when no connection" | |
216 | depends on ALTERA_JTAG_UART | |
217 | help | |
218 | Bypass console output and keep going even if there is no JTAG | |
219 | terminal connection with the host. The console output will resume | |
220 | once the JTAG terminal is connected. Without the bypass, the console | |
221 | output will wait forever until a JTAG terminal is connected. If you | |
222 | not are sure, say Y. | |
223 | ||
da2f838d TC |
224 | config ALTERA_UART |
225 | bool "Altera UART support" | |
226 | depends on DM_SERIAL | |
227 | help | |
228 | Select this to enable an UART for Altera devices. Please find | |
229 | details on the "Embedded Peripherals IP User Guide" of Altera. | |
230 | ||
5ed07cf5 BM |
231 | config FSL_LPUART |
232 | bool "Freescale LPUART support" | |
233 | help | |
234 | Select this to enable a Low Power UART for Freescale VF610 and | |
235 | QorIQ Layerscape devices. | |
236 | ||
9e39003e TC |
237 | config SYS_NS16550 |
238 | bool "NS16550 UART or compatible" | |
239 | help | |
240 | Support NS16550 UART or compatible. This can be enabled in the | |
241 | device tree with the correct input clock frequency. If the input | |
242 | clock frequency is not defined in the device tree, the macro | |
243 | CONFIG_SYS_NS16550_CLK defined in a legacy board header file will | |
244 | be used. It can be a constant or a function to get clock, eg, | |
245 | get_serial_clock(). | |
246 | ||
af282245 SG |
247 | config SANDBOX_SERIAL |
248 | bool "Sandbox UART support" | |
2ea65f3e | 249 | depends on SANDBOX |
af282245 SG |
250 | help |
251 | Select this to enable a seral UART for sandbox. This is required to | |
252 | operate correctly, otherwise you will see no serial output from | |
253 | sandbox. The emulated UART will display to the console and console | |
254 | input will be fed into the UART. This allows you to interact with | |
255 | U-Boot. | |
256 | ||
257 | The operation of the console is controlled by the -t command-line | |
258 | flag. In raw mode, U-Boot sees all characters from the terminal | |
259 | before they are processed, including Ctrl-C. In cooked mode, Ctrl-C | |
260 | is processed by the terminal, and terminates U-Boot. Valid options | |
261 | are: | |
262 | ||
263 | -t raw-with-sigs Raw mode, Ctrl-C will terminate U-Boot | |
264 | -t raw Raw mode, Ctrl-C is processed by U-Boot | |
265 | -t cooked Cooked mode, Ctrl-C terminates | |
266 | ||
ff247b7a | 267 | config UNIPHIER_SERIAL |
b6ef3a3f | 268 | bool "Support for UniPhier on-chip UART" |
2ea65f3e | 269 | depends on ARCH_UNIPHIER |
ff247b7a | 270 | help |
b6ef3a3f MY |
271 | If you have a UniPhier based board and want to use the on-chip |
272 | serial ports, say Y to this option. If unsure, say N. | |
dcfe4a54 | 273 | |
0b11dbf7 | 274 | endmenu |