]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
serial: pl01x: fix PL010 regression
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Apr 2015 13:10:06 +0000 (15:10 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:26 +0000 (22:29 +0200)
commitdf039f02e5e3e16f0ddf1c1bcfc866961e61a8f8
treeeab3a90928e2234277113d164f78e66515da0d5b
parentbc6c9b80700ff8acd9d165fc2e64865947227961
serial: pl01x: fix PL010 regression

commit aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef
"dm: serial: Tidy up the pl01x driver"
caused a regression on (real hardware) PL010 by omitting
to update the line control register when switching baudrate.

Fix this by inlining the missing write to the baud control
register.

Also renaming the set_line_control() function to
pl011_set_line_control() since this function is clearly
PL011-specific, and it won't suffice to call that to
set up line control.

Tested on the Integrator/AP hardware.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/serial/serial_pl01x.c