[PATCH 0/5] serial: sh-sci: Add support for SCIFA/SCIFB variable sampling rates

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

 



	Hi Greg, Jiri,

This patch series adds support for variable sampling rates on the SCIFA
and SCIFB variants.

Currently the driver uses a fixed sampling rate divider (usually 16 or 32),
except on HSCIF (full range of 8 to 32).  Supporting all available
sampling rates on SCIFA and SCIFB increases the range and accuracy of
supported baud rates.

E.g. on r8a7791/koelsch:
  - Supports now 134, 150, and standard 500000-4000000 bps,
  - Perfect match for 134, 150, 500000, 1000000, 2000000, and 4000000
    bps,
  - Accuracy has increased for most standard bps values.

Tested on:
  - r8a7791/koelsch (Fully tested on SCIFA and SCIFB),
  - r8a7740/armadillo (Fully tested on SCIFA and SCIFB),
  - sh73a0/kzm9g (Fully tested on SCIFA only, no easy access to SCIFB),
  - r8a73a4/ape6evm (SCIFA/FTDI console at 460800 bps, no easy access to
    SCIFB).

This series depends on my scif-clk-sck-brg-for-v4.5 pull request.

Thanks for your comments!

Geert Uytterhoeven (5):
  serial: sh-sci: Add more Serial Mode Register documentation
  serial: sh-sci: Preserve SCIFA/SCIFB bit rate config for serial
    console
  serial: sh-sci: Use premultiplier to handle half sampling rate
  serial: sh-sci: Use a bitmask to indicate supported sampling rates
  serial: sh-sci: Add support for SCIFA/SCIFB variable sampling rates

 drivers/tty/serial/sh-sci.c | 106 ++++++++++++++++++++++++++------------------
 drivers/tty/serial/sh-sci.h |  15 +++++++
 2 files changed, 77 insertions(+), 44 deletions(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
--
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