serial: Allow serial to be absent in TPL
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 18:22:20 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commitaa0ffe8eb919c85997884d4d3d44a81f92a8ab66
treed193f25cae0670f87c5d524afa96c186bb8444df
parent6307896c177e3afb54a42439062dce0776d31891
serial: Allow serial to be absent in TPL

At present this option applies to SPL, but it should be available in TPL
also, and separately. Change to using CONFIG_IS_ENABLED(), add a new
Kconfig option and fix up hang().

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/Kconfig
drivers/serial/serial-uclass.c
lib/hang.c