firmware: psci: enable DM_FLAG_PRE_RELOC
authorPeng Fan <peng.fan@nxp.com>
Thu, 6 Apr 2023 10:23:17 +0000 (18:23 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:28 +0000 (15:31 -0400)
It is possible that cpu core may reset before relocation with PSCI reset

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/firmware/psci.c

index ef3e983..c6b9efa 100644 (file)
@@ -319,4 +319,5 @@ U_BOOT_DRIVER(psci) = {
 #ifdef CONFIG_ARM_SMCCC_FEATURES
        .plat_auto = sizeof(struct psci_plat_data),
 #endif
+       .flags = DM_FLAG_PRE_RELOC,
 };