diff options
author | Aaron Sierra <asierra@xes-inc.com> | 2014-03-03 20:54:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-09 01:24:53 -0500 |
commit | 41d3f09913a930369a26616eedc02339d0455498 (patch) | |
tree | b0124a1ee58d3e35f6bd59ed0465b1cfe0670171 /drivers/tty/serial | |
parent | 50825c57ab80ea44cae6bdcd79ead61e3e4e4e4c (diff) |
serial: 8250_pci: change BayTrail default uartclk
The Intel BayTrail HSUART power-on default reference clock is 44.2368 MHz,
but 73.728 MHz provides 0% error for additional "conventional" baud rates
above 460800 (e.g. 576000, 921600, and 1152000).
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index a3dbc4d97fa2..b14bcba96c25 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c | |||
@@ -1401,9 +1401,9 @@ byt_set_termios(struct uart_port *p, struct ktermios *termios, | |||
1401 | p->uartclk = 40000000; | 1401 | p->uartclk = 40000000; |
1402 | break; | 1402 | break; |
1403 | default: | 1403 | default: |
1404 | m = 6912; | 1404 | m = 2304; |
1405 | n = 15625; | 1405 | n = 3125; |
1406 | p->uartclk = 44236800; | 1406 | p->uartclk = 73728000; |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | /* Reset the clock */ | 1409 | /* Reset the clock */ |
@@ -3470,6 +3470,10 @@ static struct pciserial_board pci_boards[] = { | |||
3470 | .base_baud = 921600, | 3470 | .base_baud = 921600, |
3471 | .reg_shift = 2, | 3471 | .reg_shift = 2, |
3472 | }, | 3472 | }, |
3473 | /* | ||
3474 | * Intel BayTrail HSUART reference clock is 44.2368 MHz at power-on, | ||
3475 | * but is overridden by byt_set_termios. | ||
3476 | */ | ||
3473 | [pbn_byt] = { | 3477 | [pbn_byt] = { |
3474 | .flags = FL_BASE0, | 3478 | .flags = FL_BASE0, |
3475 | .num_ports = 1, | 3479 | .num_ports = 1, |