diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-02-27 11:31:06 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-27 19:50:51 +0530 |
commit | 5ccebf0a7ec79d0bbef36d6dcdc2717f25d40767 (patch) | |
tree | 71c3f8bcaacef745452db2f8c7032913b72e05c3 /docs/domain_support.md | |
parent | 37558dccbedbb571150630a910547a93d7ec8822 (diff) | |
download | opensbi-5ccebf0a7ec79d0bbef36d6dcdc2717f25d40767.zip opensbi-5ccebf0a7ec79d0bbef36d6dcdc2717f25d40767.tar.gz opensbi-5ccebf0a7ec79d0bbef36d6dcdc2717f25d40767.tar.bz2 |
platform: generic: Add system suspend test
When the system-suspend-test property is present in the domain config
node as shown below, implement system suspend with a simple 5 second
delay followed by a WFI. This allows testing system suspend when the
low-level firmware doesn't support it.
/ {
chosen {
opensbi-domains {
compatible = "opensbi,domain,config";
system-suspend-test;
};
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'docs/domain_support.md')
-rw-r--r-- | docs/domain_support.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/domain_support.md b/docs/domain_support.md index 65b6142..b285d65 100644 --- a/docs/domain_support.md +++ b/docs/domain_support.md @@ -126,6 +126,9 @@ The DT properties of a domain configuration DT node are as follows: * **compatible** (Mandatory) - The compatible string of the domain configuration. This DT property should have value *"opensbi,domain,config"* +* **system-suspend-test** (Optional) - When present, enable a system + suspend test implementation which simply waits five seconds and issues a WFI. + ### Domain Memory Region Node The domain memory region DT node describes details of a memory region and @@ -234,6 +237,7 @@ be done: chosen { opensbi-domains { compatible = "opensbi,domain,config"; + system-suspend-test; tmem: tmem { compatible = "opensbi,domain,memregion"; |