mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01: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:
@@ -316,7 +316,7 @@ static int generic_domains_init(void)
|
|||||||
|
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
offset = fdt_node_offset_by_compatible(fdt, offset,
|
offset = fdt_node_offset_by_compatible(fdt, offset,
|
||||||
"opensbi,domain,config");
|
"opensbi,config");
|
||||||
if (offset >= 0 &&
|
if (offset >= 0 &&
|
||||||
fdt_get_property(fdt, offset, "system-suspend-test", NULL))
|
fdt_get_property(fdt, offset, "system-suspend-test", NULL))
|
||||||
sbi_system_suspend_test_enable();
|
sbi_system_suspend_test_enable();
|
||||||
|
Reference in New Issue
Block a user