mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 10:21:38 +00:00
platform: generic: spacemit: k3: override cold_boot_allowed for hart 0 only
Only hart 0 is powered at reset on K3; secondary harts are started later through HSM. Restrict cold-boot eligibility to hart 0 instead of using the generic DT-configured hart mask, matching K1. Signed-off-by: Valentin Haudiquet <valentin.haudiquet@canonical.com> Reviewed-by: E Shattow <e@freeshell.de> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Tested-by: E Shattow <e@freeshell.de> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261028-spacemit-k3-v6-6-01d984f60941@linux.spacemit.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
cca121056f
commit
90ec61b228
1 file changed
+6
@@ -102,11 +102,17 @@ static int spacemit_k3_early_init(bool cold_boot)
|
||||
return generic_early_init(cold_boot);
|
||||
}
|
||||
|
||||
static bool spacemit_k3_cold_boot_allowed(u32 hartid)
|
||||
{
|
||||
return !hartid;
|
||||
}
|
||||
|
||||
static int spacemit_k3_platform_init(const void *fdt, int nodeoff,
|
||||
const struct fdt_match *match)
|
||||
{
|
||||
spacemit_k3_hart_init(current_hartid());
|
||||
generic_platform_ops.early_init = spacemit_k3_early_init;
|
||||
generic_platform_ops.cold_boot_allowed = spacemit_k3_cold_boot_allowed;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user