spl: ubi: refactor spl_ubi_load_image for falcon mode
authorAnshul Dalal <anshuld@ti.com>
Fri, 17 Oct 2025 19:33:08 +0000 (01:03 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 20 Oct 2025 16:14:00 +0000 (10:14 -0600)
commit81951cfffdc85e07ddeb2fa33a1a0fbbac6806f0
tree9a52ee418a93ee6d305a9b0cb2b7264acb16f5e8
parent2909b3bff076746938389b2ef320eea68c2b93db
spl: ubi: refactor spl_ubi_load_image for falcon mode

This patch moves the falcon mode handling logic out of
spl_ubi_load_image to spl_ubi_load_image_os, this allows for cleaner
handling for fallback to U-Boot in case falcon mode fails.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
common/spl/spl_ubi.c