]> git.sur5r.net Git - u-boot/commit
serial: Implement default_serial_puts()
authorMarek Vasut <marex@denx.de>
Sat, 6 Oct 2012 14:07:01 +0000 (14:07 +0000)
committerTom Rini <trini@ti.com>
Wed, 17 Oct 2012 14:55:50 +0000 (07:55 -0700)
commitbfb7d7a3d61ff23f9dd265a56e8b5cac5bbfd76e
treeb41b156583a878f143da54aeb52fd600337b5ad5
parentbfa5b71408da629493838668e4df0ca9d12107bb
serial: Implement default_serial_puts()

U-Boot contains a lot of duplicit implementations of serial_puts()
call which just pipes single characters into the port in loop. Implement
function that does this behavior into common code, so others can make
easy use of it.

This function is called default_serial_puts() and it's sole purpose
is to call putc() in loop on the whole string passed to it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
drivers/serial/serial.c
include/serial.h