summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_bcm283x_pl011.c
diff options
context:
space:
mode:
authorMatthias Brugger <mbrugger@suse.com>2019-11-08 16:49:48 +0300
committerMatthias Brugger <mbrugger@suse.com>2019-11-24 12:46:27 +0300
commit3f8b8e303655397a15d53660884c8de7c6cdf49f (patch)
treea8ccb015c896b8cebb715364f12eddea0bfaafe5 /drivers/serial/serial_bcm283x_pl011.c
parent5051377a0b2bec1605ce97170585d693a98ec34a (diff)
downloadu-boot-3f8b8e303655397a15d53660884c8de7c6cdf49f.tar.xz
drivers: bcm283x: Set pre-location flag for OF_BOARD
U-Boot support on Raspberry Pi 4 relies on the device-tree provided by the firmware. The blob does not contain the U-Boot specific pre-loc-rel properties. The result is, that the U-Boot banner is not printed. We fix this by setting the DM_FLAG_PRE_RELOC flag in the driver, if we rely on a device-tree provided by the firmware. Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'drivers/serial/serial_bcm283x_pl011.c')
-rw-r--r--drivers/serial/serial_bcm283x_pl011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c
index 2527bb8b1c..7d8ab7b716 100644
--- a/drivers/serial/serial_bcm283x_pl011.c
+++ b/drivers/serial/serial_bcm283x_pl011.c
@@ -90,7 +90,7 @@ U_BOOT_DRIVER(bcm283x_pl011_uart) = {
.platdata_auto_alloc_size = sizeof(struct pl01x_serial_platdata),
.probe = pl01x_serial_probe,
.ops = &bcm283x_pl011_serial_ops,
-#if !CONFIG_IS_ENABLED(OF_CONTROL)
+#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
.flags = DM_FLAG_PRE_RELOC,
#endif
.priv_auto_alloc_size = sizeof(struct pl01x_priv),