Hi Richard, On Tue, Dec 01, 2020 at 01:30:16PM -0600, Richard Gong wrote: > > Can U-Boot determine whether it's the new or old flow? Can you set a > > different compatible value in your device-tree, to disambiguate > > behaviors? > > > > The boot flow is determined by defconfig during compilation, which means > each boot flow will have its own defconfig. > > SDM firmware loads SPL into OCRAM, then SPL will load the apporiate ATF or > U-boot into the DRAM according to the setting of CONFIG_SPL_ATF. If > CONFIG_SPL_ATF=y, SPL loads ATF and then jumps to ATF. ATF setups EL3 > environment and initialize the PSCI services. > > CONFIG_SPL_ATF is not set for the old boot flow. So you know at (U-Boot) build time? Can you just pass a different DT to the kernel in that case? - Moritz