diff options
author | Allen Yan <yanwei@marvell.com> | 2017-10-13 11:01:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-20 14:20:06 +0200 |
commit | 68a0db1d7da20fc99b64debddf71e7c6d1b9e334 (patch) | |
tree | 6281a50f9c59ea7490d6aa6278f2124a21367ff2 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 9c3d3ee1239bab92d509f334530796d0ced4ca98 (diff) | |
download | linux-68a0db1d7da20fc99b64debddf71e7c6d1b9e334.tar.gz linux-68a0db1d7da20fc99b64debddf71e7c6d1b9e334.tar.bz2 linux-68a0db1d7da20fc99b64debddf71e7c6d1b9e334.zip |
serial: mvebu-uart: add function to change baudrate
Until now, the first UART port baudrate was set by the bootloader.
Add a function allowing to change the baudrate. Changes may be done
from userspace but also at probe time by the kernel. Use the simplest
method: baudrate divisor.
Works for all UART ports until 230400 baud. To achieve higher baudrates,
software should implement the fractional divisor feature that allows
more accuracy for higher rates.
Signed-off-by: Allen Yan <yanwei@marvell.com>
[<miquel.raynal@free-electrons.com>: changed termios handling]
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions