]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
AT91: Small fix on AT91 USART initialization code
authorXu, Hong <Hong.Xu@atmel.com>
Tue, 2 Aug 2011 01:05:04 +0000 (01:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 15:06:13 +0000 (17:06 +0200)
commit1f4faedd51ee72a57afb9edba2d71ba01a2ec20e
treeefe5bab5df41095ccbd183db051e9de26c6cfa45
parent88461f164ed751b582998b28b93d5668d4afec56
AT91: Small fix on AT91 USART initialization code

Before reset dbgu transmitter, we just wait TXEMPTY to drain the
transmitter register(Just in case). If not doing this, we may sometimes
see several weird characters from DBGU.

A short delay is also added to make sure the new serial settings are
settled.

Signed-off-by: Hong Xu <hong.xu@atmel.com>
[cherry-picked from u-boot-atmel/old-next]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/serial/atmel_usart.c