[PATCH v1 0/3] serial: 8250: calculate prescaler parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch introduces a helper serial8250_get_ps() to calculate prescaler
values (*) which are used to get a port UART clock regarding to desired baud
rate.

The BayTrail and Intel MID are converted to use this helper instead of custom
case-switch tables. There may be other users which can be converted as well.

The Tangier support will be resent later regarding to this patch series.

The changes were tested on Intel Medfield, Tangier, and Braswell.

(*) There is a gist in Python which represents the algorithm.
https://gist.github.com/8b2a73aeca2874f4cc89.git

Andy Shevchenko (3):
  serial: 8250: introduce helper to configure prescaler
  serial: 8250_pci: re-use serial8250_get_ps() for BYT
  serial: 8250_pci: re-use serial8250_get_ps() for Intel MID

 drivers/tty/serial/8250/8250.h      |  4 ++
 drivers/tty/serial/8250/8250_core.c | 54 ++++++++++++++++++++
 drivers/tty/serial/8250/8250_pci.c  | 98 +++++++++----------------------------
 3 files changed, 82 insertions(+), 74 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux