]> git.sur5r.net Git - u-boot/commit
serial: pl01x: fix PL010 regression
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Apr 2015 13:10:06 +0000 (15:10 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 21 Apr 2015 14:05:42 +0000 (10:05 -0400)
commitd77447fdb122dab290fb1ad184a62456011e6e06
treef079256738d04c644ba3f3189d3e66b809b319d4
parenta436d61279ba4da66fce8cd2e4f520199436d5c8
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