diff options
| author | Ian Lepore <ian@FreeBSD.org> | 2014-04-26 20:27:58 +0000 |
|---|---|---|
| committer | Ian Lepore <ian@FreeBSD.org> | 2014-04-26 20:27:58 +0000 |
| commit | 49d0a4c3ffaf1669b63d34f9cf80e0815258b05f (patch) | |
| tree | 9d4b8be57ebf213d77e0327b59c61663a0f47fb2 /sys/dev/uart | |
| parent | 60ad8150c70129a8d15b955d4dc9b1ef833520c2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/uart')
| -rw-r--r-- | sys/dev/uart/uart_dev_imx.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/uart/uart_dev_imx.c b/sys/dev/uart/uart_dev_imx.c index 350c0546776e..43338febb6c6 100644 --- a/sys/dev/uart/uart_dev_imx.c +++ b/sys/dev/uart/uart_dev_imx.c @@ -131,13 +131,14 @@ imx_uart_init(struct uart_bas *bas, int baudrate, int databits, /* * The hardware has an extremely flexible baud clock: it allows setting * both the numerator and denominator of the divider, as well as a - * separate pre-divider. We simplify that problem by assuming a - * pre-divider and numerator of one because our base clock is so fast we - * can reach virtually any reasonable speed with a simple divisor. The - * numerator value actually includes the 16x over-sampling; the register - * value is the numerator-1, so we have a hard-coded 15. Note that a - * quirk of the hardware requires that both UBIR and UBMR be set back to - * back in order for the change to take effect. + * separate pre-divider. We simplify the problem of coming up with a + * workable pair of numbers by assuming a pre-divider and numerator of + * one because our base clock is so fast we can reach virtually any + * reasonable speed with a simple divisor. The numerator value actually + * includes the 16x over-sampling (so a value of 16 means divide by 1); + * the register value is the numerator-1, so we have a hard-coded 15. + * Note that a quirk of the hardware requires that both UBIR and UBMR be + * set back to back in order for the change to take effect. */ if (baudrate > 0) { baseclk = imx_ccm_uart_hz(); |
