mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
92c55b682c
commit
b7e29834f1
1 changed files with 2 additions and 0 deletions
|
@ -439,6 +439,7 @@ static const struct udevice_id ns16550_serial_ids[] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(SERIAL_PRESENT)
|
||||||
U_BOOT_DRIVER(ns16550_serial) = {
|
U_BOOT_DRIVER(ns16550_serial) = {
|
||||||
.name = "ns16550_serial",
|
.name = "ns16550_serial",
|
||||||
.id = UCLASS_SERIAL,
|
.id = UCLASS_SERIAL,
|
||||||
|
@ -452,4 +453,5 @@ U_BOOT_DRIVER(ns16550_serial) = {
|
||||||
.ops = &ns16550_serial_ops,
|
.ops = &ns16550_serial_ops,
|
||||||
.flags = DM_FLAG_PRE_RELOC,
|
.flags = DM_FLAG_PRE_RELOC,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
#endif /* CONFIG_DM_SERIAL */
|
#endif /* CONFIG_DM_SERIAL */
|
||||||
|
|
Loading…
Add table
Reference in a new issue