]> git.baikalelectronics.ru Git - uboot.git/commit
simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver
authorLukas Auer <lukas.auer@aisec.fraunhofer.de>
Wed, 10 Apr 2019 12:46:07 +0000 (14:46 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Apr 2019 02:26:43 +0000 (20:26 -0600)
commit04991e58dd88e1cc7e6a7cacd9a5b9a1e2d488df
tree8d7105f4ee08b058e1889df14aeb5376c2ef0eb0
parent412b90855c8950594d030575a225674452acb537
simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver

Boards such as qemu-riscv, which receive their device tree at runtime,
for example from QEMU or firmware, are unable to add the appropriate
device tree properties to make devices available pre relocation.
Instead, they must rely on the DM_FLAG_PRE_RELOC flag to be set for the
required drivers.

Add the DM_FLAG_PRE_RELOC flag to the simple-bus driver to make devices
under it with drivers that have set the flag as well available pre
relocation for these boards.

Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/simple-bus.c