Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define EXTRABAUD 1000000
- unsigned int
- uart_get_divisor(struct uart_port *port, unsigned int baud)
- {
- unsigned int quot;
- #ifdef EXTRABAUD
- if( baud == 115200 ) {
- baud = EXTRABAUD;
- }
- #endif
- /*
- * Old custom speed handling.
- */
- if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST)
- quot = port->custom_divisor;
- else
- quot = (port->uartclk + (8 * baud)) / (16 * baud);
- return quot;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement