lib: sbi: Allow platform to influence cold boot HART selection
authorAnup Patel <apatel@ventanamicro.com>
Thu, 29 Dec 2022 02:56:15 +0000 (10:56 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 7 Jan 2023 10:28:49 +0000 (15:58 +0530)
commitf14595a7cfc8de16a06335c6ecdf9ae23a0adf53
tree85c79c44afff34a609e56ac0ffc336aa044e5b0c
parent65638f8d6b1f438ae442bad7a4f77b188d3d3689
lib: sbi: Allow platform to influence cold boot HART selection

We add an optional cold_boot_allowed() platform callback which allows
platform support to decide which HARTs can do cold boot initialization.

If this platform callback is not available then any HART can do cold
boot initialization.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
include/sbi/sbi_platform.h
lib/sbi/sbi_init.c