rk3399: Don't enable the debug UART if there is no driver
authorSimon Glass <sjg@chromium.org>
Wed, 3 Nov 2021 13:16:08 +0000 (07:16 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 17 Nov 2021 22:04:59 +0000 (17:04 -0500)
commit55de0c19314046e886897fb9bb57eb5ef586814c
treef653fd121871582cf10b073dbda97e670041e6a1
parent370cc945df7024a743c847acb6177f1aa8947fb3
rk3399: Don't enable the debug UART if there is no driver

Some boards do not enable SPL_SERIAL so cannot use the debug UART. Add
this condition to the code and drop use of the preprocessor while we are
here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@vrull.eu>
arch/arm/mach-rockchip/rk3399/rk3399.c