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:
Cheng Yang 2024-02-08 11:14:34 +08:00 committed by Anup Patel
parent 23e7e483ee
commit 8df836d772

View file

@ -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();