]> git.ipfire.org Git - thirdparty/u-boot.git/commit
common: add an option to skip DM pre-relocation
authorCasey Connolly <casey.connolly@linaro.org>
Wed, 1 Apr 2026 14:15:18 +0000 (16:15 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 21 Apr 2026 17:19:49 +0000 (11:19 -0600)
commitf5e96fdffc024552944776848bd5570e1b2caa9b
tree3cc106fd26fccdf6418b53910be25d391e581d69
parent968164b6863e3a75fb0f5842f4f1cab9ac7c8c36
common: add an option to skip DM pre-relocation

For some platforms like Qualcomm, it isn't necessary to perform a full
DM init and scan prior to relocation, it's also particularly slow since
it runs with dcache disabled and prior to building the livetree.

The only device which needs to be probed pre-reloc is the serial
port (otherwise U-Boot will panic), however this can be found through
/chosen/stdout-path.

Therefore we can avoid scanning the entire FDT and binding devices,
instead just binding the serial port and clock driver on-demand.

This decreases the total time from power on to reaching the interactive
U-Boot shell be about 50% (from ~2.8s to 1.8s).

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Kconfig
common/board_f.c