| 30 | |
| 31 | #if !CONFIG(UART_OVERRIDE_REFCLK) |
| 32 | unsigned 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. */ |
no outgoing calls
no test coverage detected