]> git.sur5r.net Git - u-boot/commitdiff
dm: serial: ns16550: Add pre-reloc flag to the driver
authorSimon Glass <sjg@chromium.org>
Fri, 4 Dec 2015 15:58:38 +0000 (08:58 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 5 Dec 2015 23:22:38 +0000 (18:22 -0500)
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>
drivers/serial/ns16550.c

index 23243ee84e89d664a054708eaca9bd5031f028ed..3fab3f1efb9713130e7d6d66bbb335f115afa7d0 100644 (file)
@@ -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 */