summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-12-04 08:58:38 -0700
committerTom Rini <trini@konsulko.com>2015-12-05 18:22:38 -0500
commitb7e5a6439f3075ec79f8d38a3572fc3b68d583d3 (patch)
tree11fe04dc0e0458d32682de7d852d86a4ceef4f25 /drivers
parent7705bdfcd746b8465fec8b3375cba78827884d22 (diff)
downloadu-boot-imx-b7e5a6439f3075ec79f8d38a3572fc3b68d583d3.zip
u-boot-imx-b7e5a6439f3075ec79f8d38a3572fc3b68d583d3.tar.gz
u-boot-imx-b7e5a6439f3075ec79f8d38a3572fc3b68d583d3.tar.bz2
dm: serial: ns16550: Add pre-reloc flag to the driver
For platforms that don't use device tree in SPL the only way to mark this driver as 'required by relocation' is with the DM_FLAG_PRE_RELOC flag. Add this to ensure that the driver is bound. Fixes: fde7e18938d8 ("dm: tegra: pci: Move CONFIG_PCI_TEGRA to Kconfig") Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Stephen Warren <swarren@nvidia.com> Acked-by: Thomas Chou <thomas@wytron.com.tw>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/ns16550.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 23243ee..3fab3f1 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -451,5 +451,6 @@ U_BOOT_DRIVER(ns16550_serial) = {
.priv_auto_alloc_size = sizeof(struct NS16550),
.probe = ns16550_serial_probe,
.ops = &ns16550_serial_ops,
+ .flags = DM_FLAG_PRE_RELOC,
};
#endif /* CONFIG_DM_SERIAL */