mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
platform: generic: Parse system suspend test from config node.
This patch update generic_domains_init() so that "system-suspend-test" is parsed from "/chosen/opensbi-config" DT node. Signed-off-by: Cheng Yang <yangcheng.work@foxmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
23e7e483ee
commit
8df836d772
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ static int generic_domains_init(void)
|
|||
|
||||
if (offset >= 0) {
|
||||
offset = fdt_node_offset_by_compatible(fdt, offset,
|
||||
"opensbi,domain,config");
|
||||
"opensbi,config");
|
||||
if (offset >= 0 &&
|
||||
fdt_get_property(fdt, offset, "system-suspend-test", NULL))
|
||||
sbi_system_suspend_test_enable();
|
||||
|
|
Loading…
Add table
Reference in a new issue