mach-snapdragon: track boot source
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 11 Apr 2025 15:03:34 +0000 (17:03 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 24 Jun 2025 13:54:51 +0000 (07:54 -0600)
commit35cdb4676e90583c334682380549acaa8fbff2a3
tree43958db8deb4f44110b9191f1409d10d59cef1c5
parent32f0291900a584858de1fd8ff9756f6a454a6f0d
mach-snapdragon: track boot source

Keep track of whether we were loaded via ABL or if U-Boot is running as
a first-stage bootloader.

For now we set this based on if we have a valid external FDT or not,
since it isn't possible to chainload U-Boot from ABL without there being
an external FDT.

This will be used to inform the capsule update logic which partition
U-Boot is flashed to.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20250411-b4-qcom-capsule-update-improvements-v2-1-27f6b2fcc4a9@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
arch/arm/mach-snapdragon/board.c
arch/arm/mach-snapdragon/qcom-priv.h