summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-12-13 21:36:59 -0700
committerSimon Glass <sjg@chromium.org>2016-01-12 10:19:09 -0700
commitb7e29834f1a820417d735833327f776c148cd399 (patch)
treee299847bd4f3cdfc1cd54feba42e69320ec55804
parent92c55b682cf24dc454d95149d3476dc66d514555 (diff)
downloadu-boot-imx-b7e29834f1a820417d735833327f776c148cd399.zip
u-boot-imx-b7e29834f1a820417d735833327f776c148cd399.tar.gz
u-boot-imx-b7e29834f1a820417d735833327f776c148cd399.tar.bz2
dm: ns16550: Allow the driver to be omitted if requested
Allow the ns16550 debug UART to be used without the full driver. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Thomas Chou <thomas@wytron.com.tw>
-rw-r--r--drivers/serial/ns16550.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 4b3ced6..021b211 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -439,6 +439,7 @@ static const struct udevice_id ns16550_serial_ids[] = {
};
#endif
+#if CONFIG_IS_ENABLED(SERIAL_PRESENT)
U_BOOT_DRIVER(ns16550_serial) = {
.name = "ns16550_serial",
.id = UCLASS_SERIAL,
@@ -452,4 +453,5 @@ U_BOOT_DRIVER(ns16550_serial) = {
.ops = &ns16550_serial_ops,
.flags = DM_FLAG_PRE_RELOC,
};
+#endif
#endif /* CONFIG_DM_SERIAL */