提交 b7e29834 编写于 作者: S Simon Glass

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: NSimon Glass <sjg@chromium.org>
Reviewed-by: NThomas Chou <thomas@wytron.com.tw>
上级 92c55b68
......@@ -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 */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册