]> git.baikalelectronics.ru Git - kernel.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)
commitfda34edc0a586375ecaf28135771a8e166552858
treeb7e537c307e8fe2ed9a2bf0828b4e9f933adb31d
parentf1aa65dc22a2e0a1a4d1bbd26f2a66278265c5df
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