summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Jones <ajones@ventanamicro.com>2023-02-27 13:31:03 +0300
committerAnup Patel <anup@brainfault.org>2023-02-27 17:15:28 +0300
commitc9917b610871e4f9a0142e5c37c2b698177c3291 (patch)
tree5685156890cc43ed70304ed61080e251a299fd87 /include
parent73623a0acac7f62646757cdd5a03b325eba3e0c9 (diff)
downloadopensbi-c9917b610871e4f9a0142e5c37c2b698177c3291.tar.xz
lib: sbi: Add system_suspend_allowed domain property
Only privileged domains should be allowed to suspend the entire system. Give the root domain this property by default and allow other domains to be given the property by specifying it in the DT. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_domain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_domain.h b/include/sbi/sbi_domain.h
index ab1a944..eaca7f0 100644
--- a/include/sbi/sbi_domain.h
+++ b/include/sbi/sbi_domain.h
@@ -120,6 +120,8 @@ struct sbi_domain {
unsigned long next_mode;
/** Is domain allowed to reset the system */
bool system_reset_allowed;
+ /** Is domain allowed to suspend the system */
+ bool system_suspend_allowed;
};
/** The root domain instance */