Commit 3f8b8e303655397a15d53660884c8de7c6cdf49f

Authored by Matthias Brugger
1 parent 5051377a0b

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>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

drivers/pinctrl/broadcom/pinctrl-bcm283x.c
... ... @@ -149,7 +149,7 @@
149 149 .priv_auto_alloc_size = sizeof(struct bcm283x_pinctrl_priv),
150 150 .ops = &bcm283x_pinctrl_ops,
151 151 .probe = bcm283x_pinctl_probe,
152   -#if !CONFIG_IS_ENABLED(OF_CONTROL)
  152 +#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
153 153 .flags = DM_FLAG_PRE_RELOC,
154 154 #endif
155 155 };
drivers/serial/serial_bcm283x_mu.c
... ... @@ -199,7 +199,7 @@
199 199 .platdata_auto_alloc_size = sizeof(struct bcm283x_mu_serial_platdata),
200 200 .probe = bcm283x_mu_serial_probe,
201 201 .ops = &bcm283x_mu_serial_ops,
202   -#if !CONFIG_IS_ENABLED(OF_CONTROL)
  202 +#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
203 203 .flags = DM_FLAG_PRE_RELOC,
204 204 #endif
205 205 .priv_auto_alloc_size = sizeof(struct bcm283x_mu_priv),
drivers/serial/serial_bcm283x_pl011.c
... ... @@ -90,7 +90,7 @@
90 90 .platdata_auto_alloc_size = sizeof(struct pl01x_serial_platdata),
91 91 .probe = pl01x_serial_probe,
92 92 .ops = &bcm283x_pl011_serial_ops,
93   -#if !CONFIG_IS_ENABLED(OF_CONTROL)
  93 +#if !CONFIG_IS_ENABLED(OF_CONTROL) || CONFIG_IS_ENABLED(OF_BOARD)
94 94 .flags = DM_FLAG_PRE_RELOC,
95 95 #endif
96 96 .priv_auto_alloc_size = sizeof(struct pl01x_priv),