sysreset: psci: enable DM_FLAG_PRE_RELOC
authorPeng Fan <peng.fan@nxp.com>
Thu, 6 Apr 2023 10:23:18 +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/sysreset/sysreset_psci.c

index 83ecbcb..30c4b9c 100644 (file)
@@ -34,4 +34,5 @@ U_BOOT_DRIVER(psci_sysreset) = {
        .name = "psci-sysreset",
        .id = UCLASS_SYSRESET,
        .ops = &psci_sysreset_ops,
+       .flags = DM_FLAG_PRE_RELOC,
 };