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 at chromium.org> --- drivers/serial/sandbox.c | 5 +++++ 1 file changed, 5 insertions(+) Applied to u-boot-dm