forked from Mirrors/opensbi
		
	lib: utils: Move PLIC DT fix up codes to fdt_helper.c
Now that we have a dedicated fdt_helper.c file for DT releated helper routines, move plic_fdt_fixup() codes from plic.c to fdt_helper.c and rename it to fdt_plic_fixup() at the same time, to keep name consistency in the same file. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
		@@ -13,6 +13,7 @@
 | 
			
		||||
#include <sbi/sbi_console.h>
 | 
			
		||||
#include <sbi/sbi_const.h>
 | 
			
		||||
#include <sbi/sbi_platform.h>
 | 
			
		||||
#include <sbi_utils/fdt/fdt_helper.h>
 | 
			
		||||
#include <sbi_utils/irqchip/plic.h>
 | 
			
		||||
#include <sbi_utils/serial/uart8250.h>
 | 
			
		||||
#include "platform.h"
 | 
			
		||||
@@ -47,7 +48,7 @@ static int ae350_final_init(bool cold_boot)
 | 
			
		||||
		return 0;
 | 
			
		||||
 | 
			
		||||
	fdt = sbi_scratch_thishart_arg1_ptr();
 | 
			
		||||
	plic_fdt_fixup(fdt, "riscv,plic0");
 | 
			
		||||
	fdt_plic_fixup(fdt, "riscv,plic0");
 | 
			
		||||
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user