Lines Matching +full:rclk +full:-

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
108 return (-1); in uart_parse_parity()
164 return (-1); in uart_parse_tag()
169 return (-1); in uart_parse_tag()
176 * separated by commas. Each attribute is a tag-value pair with the tag and
225 di->bas.chan = 0; in uart_getenv()
226 di->bas.regshft = 0; in uart_getenv()
227 di->bas.regiowidth = 1; in uart_getenv()
228 di->bas.rclk = 0; in uart_getenv()
229 di->baudrate = 0; in uart_getenv()
230 di->databits = 8; in uart_getenv()
231 di->stopbits = 1; in uart_getenv()
232 di->parity = UART_PARITY_NONE; in uart_getenv()
239 di->bas.busy_detect = uart_parse_long(&spec); in uart_getenv()
242 di->baudrate = uart_parse_long(&spec); in uart_getenv()
245 di->bas.chan = uart_parse_long(&spec); in uart_getenv()
248 di->databits = uart_parse_long(&spec); in uart_getenv()
254 di->bas.bst = uart_bus_space_io; in uart_getenv()
258 di->bas.bst = uart_bus_space_mem; in uart_getenv()
262 di->parity = uart_parse_parity(&spec); in uart_getenv()
265 di->bas.regshft = uart_parse_long(&spec); in uart_getenv()
268 di->bas.regiowidth = uart_parse_long(&spec); in uart_getenv()
271 di->stopbits = uart_parse_long(&spec); in uart_getenv()
274 di->bas.rclk = uart_parse_long(&spec); in uart_getenv()
275 if (di->bas.rclk == 0) in uart_getenv()
276 di->bas.rclk_guess = 1; in uart_getenv()
298 * device class has been compiled-in or we've set one with dt=. in uart_getenv()
304 * Accept only the well-known baudrates. Any invalid baudrate in uart_getenv()
305 * is silently replaced with a 0-valued baudrate. The 0 baudrate in uart_getenv()
310 if (di->baudrate >= 19200) { in uart_getenv()
311 if (di->baudrate % 19200) in uart_getenv()
312 di->baudrate = 0; in uart_getenv()
313 } else if (di->baudrate >= 1200) { in uart_getenv()
314 if (di->baudrate % 1200) in uart_getenv()
315 di->baudrate = 0; in uart_getenv()
316 } else if (di->baudrate > 0) { in uart_getenv()
317 if (di->baudrate % 75) in uart_getenv()
318 di->baudrate = 0; in uart_getenv()
320 di->baudrate = 0; in uart_getenv()
323 di->ops = uart_getops(class); in uart_getenv()
324 error = bus_space_map(di->bas.bst, addr, uart_getrange(class), 0, in uart_getenv()
325 &di->bas.bsh); in uart_getenv()