MCPcopy Create free account
hub / github.com/coreboot/coreboot / uart_platform_refclk

Function uart_platform_refclk

src/drivers/uart/util.c:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31#if !CONFIG(UART_OVERRIDE_REFCLK)
32unsigned int uart_platform_refclk(void)
33{
34 /* Specify the default input clock frequency for the UART.
35 *
36 * The older UART's used an input clock frequency of 1.8432 MHz which
37 * with the 16x oversampling provided the maximum baud-rate of 115200.
38 * Specify this as maximum baud-rate multiplied by oversample so that
39 * it is obvious that the maximum baud rate is 115200 when divided by
40 * oversample clock. Also note that crystal on the board does not
41 * change when software selects another input clock divider.
42 */
43 return 115200 * 16;
44}
45#endif
46
47/* Helper function to allow bitbanging an 8n1 UART. */

Callers 6

fill_lb_serialFunction · 0.70
fill_lb_serialFunction · 0.70
uart_initFunction · 0.70
fill_lb_serialFunction · 0.70
fill_lb_serialFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected