[PATCH] dm: automatically set DM_FLAG_PRE_RELOC based on device-tree property
Quentin Schulz
quentin.schulz at theobroma-systems.com
Thu Sep 22 17:55:20 CEST 2022
Hi all,
On 9/22/22 15:45, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz at theobroma-systems.com>
>
> One needs to set u-boot,dm-pre-reloc in a device Device Tree node so
> that it is kept in SPL/TPL variant of the device tree. However, a device
> is automatically probed only if it's flagged with DM_FLAG_PRE_RELOC,
> regardless of u-boot,dm-pre-reloc DT property presence. This flag is
> currently only set by drivers directly.
>
> However, this flag should be allowed to be set on a per-device basis
> even if the driver does not hardcode it so that the device will be
> probed in SPL/TPL regardless of the driver's defaults.
>
> This sets the DM_FLAG_PRE_RELOC for all U_BOOT_CLASS devices whose DT
> node contains the u-boot,dm-pre-reloc property.
>
> Cc: Quentin Schulz <foss+uboot at 0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz at theobroma-systems.com>
This patch can be abandoned, it is now superseded by:
https://lore.kernel.org/u-boot/20220922155326.3293815-1-foss+uboot@0leil.net/
Cheers,
Quentin
More information about the U-Boot
mailing list