forked from Mirrors/opensbi
		
	platform: rzfive: Enable Andes PMU for RZ/Five
Enable Andes PMU extension support for RZ/Five. We also staticize renesas_rzfive_early_init() as it is not used outside of this unit. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com> Reviewed-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							2e50c24399
						
					
				
				
					commit
					535c661d87
				
			@@ -5,6 +5,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <andes/andes45_pma.h>
 | 
			
		||||
#include <andes/andes_pmu.h>
 | 
			
		||||
#include <andes/andes_sbi.h>
 | 
			
		||||
#include <platform_override.h>
 | 
			
		||||
#include <sbi/sbi_domain.h>
 | 
			
		||||
@@ -29,7 +30,7 @@ static int renesas_rzfive_final_init(bool cold_boot, const struct fdt_match *mat
 | 
			
		||||
					 array_size(renesas_rzfive_pma_regions));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int renesas_rzfive_early_init(bool cold_boot, const struct fdt_match *match)
 | 
			
		||||
static int renesas_rzfive_early_init(bool cold_boot, const struct fdt_match *match)
 | 
			
		||||
{
 | 
			
		||||
	/*
 | 
			
		||||
	 * Renesas RZ/Five RISC-V SoC has Instruction local memory and
 | 
			
		||||
@@ -57,4 +58,6 @@ const struct platform_override renesas_rzfive = {
 | 
			
		||||
	.early_init = renesas_rzfive_early_init,
 | 
			
		||||
	.final_init = renesas_rzfive_final_init,
 | 
			
		||||
	.vendor_ext_provider = andes_sbi_vendor_ext_provider,
 | 
			
		||||
	.extensions_init = andes_pmu_extensions_init,
 | 
			
		||||
	.pmu_init = andes_pmu_init,
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user