serial: atmel_usart: Fix early debug not work in SPL
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 14 Apr 2017 07:01:27 +0000 (15:01 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 9 May 2017 18:14:15 +0000 (12:14 -0600)
commit5f29e79915940815a41b1364a213dd2a855cdb6d
treeb57d42aa7f25ff8de70beea139d976bac800781d
parent3fea809b42cec31b5c179debfc025a2224bb2e70
serial: atmel_usart: Fix early debug not work in SPL

Add the uart init function to be used on both probe and the early
debug uart init. For the latter, the input clock should be from
CONFIG_DEBUG_UART_CLOCK.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/atmel_usart.c