serial: sandbox: Allow serial output without device tree
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:16 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commit114b60a7e62db25bcf26d5dddcfabecbc0160086
tree874a6ef69b08ef1d9a0037ca372704ed1c5aa0b1
parentee4417644c7ba40d6365fc8e18ce0e8570544314
serial: sandbox: Allow serial output without device tree

At present sandbox assumes that device-tree control is active, but this
may not be the case in SPL or TPL. Add some conditions to handle this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c