]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ARM: 6158/2: PL011 baudrate extension for ST-Ericssons derivative
authorLinus Walleij <linus.walleij@stericsson.com>
Wed, 2 Jun 2010 19:40:22 +0000 (20:40 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 Jul 2010 09:43:47 +0000 (10:43 +0100)
commitac3e3fb424d44109dda3b1a3459e1b30fa60ac4a
treeb7e537c307e8fe2ed9a2bf0828b4e9f933adb31d
parentec489aa8f993f8d2ec962ce113071faac482aa27
ARM: 6158/2: PL011 baudrate extension for ST-Ericssons derivative

Implementation of the ST-Ericsson baudrate extension in the PL011
block. In this modified variant it is possible to change the
sampling factor from 16 to 8, and thanks to this we can get higher
baudrates while still using the same peripheral clock.

Also replace the simple division to determine the baud divisor
with DIV_ROUND_CLOSEST() rather than a simple integer division.

Cc: Alessandro Rubini <rubini@unipv.it>
Cc: Jerzy Kasenberg <jerzy.kasenberg@tieto.com>
Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl011.c
include/linux/amba/serial.h