forked from Mirrors/opensbi
		
	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) {
 | 
			
		||||
		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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user