forked from Mirrors/opensbi
		
	platform: generic/andes: Enable generic platform support for AE350
We move andes directory to platform/generic as the necessary fdt drivers are available, the users can enable the console, timer, ipi, irqchip and reset devices by adding device tree nodes stated in the docs/platform/andes-ae350.md. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							cfbabb9ec6
						
					
				
				
					commit
					a36d455182
				
			@@ -28,6 +28,10 @@ config PLATFORM_ALLWINNER_D1
 | 
			
		||||
	depends on FDT_IRQCHIP_PLIC
 | 
			
		||||
	default n
 | 
			
		||||
 | 
			
		||||
config PLATFORM_ANDES_AE350
 | 
			
		||||
	bool "Andes AE350 support"
 | 
			
		||||
	default n
 | 
			
		||||
 | 
			
		||||
config PLATFORM_SIFIVE_FU540
 | 
			
		||||
	bool "SiFive FU540 support"
 | 
			
		||||
	default n
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										21
									
								
								platform/generic/andes/ae350.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								platform/generic/andes/ae350.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-License-Identifier: BSD-2-Clause
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 2022 Andes Technology Corporation
 | 
			
		||||
 *
 | 
			
		||||
 * Authors:
 | 
			
		||||
 *   Yu Chien Peter Lin <peterlin@andestech.com>
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <platform_override.h>
 | 
			
		||||
#include <sbi_utils/fdt/fdt_helper.h>
 | 
			
		||||
#include <sbi_utils/fdt/fdt_fixup.h>
 | 
			
		||||
 | 
			
		||||
static const struct fdt_match andes_ae350_match[] = {
 | 
			
		||||
	{ .compatible = "andestech,ae350" },
 | 
			
		||||
	{ },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const struct platform_override andes_ae350 = {
 | 
			
		||||
	.match_table = andes_ae350_match,
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										6
									
								
								platform/generic/andes/objects.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								platform/generic/andes/objects.mk
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
#
 | 
			
		||||
# SPDX-License-Identifier: BSD-2-Clause
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
carray-platform_override_modules-$(CONFIG_PLATFORM_ANDES_AE350) += andes_ae350
 | 
			
		||||
platform-objs-$(CONFIG_PLATFORM_ANDES_AE350) += andes/ae350.o
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
CONFIG_PLATFORM_ALLWINNER_D1=y
 | 
			
		||||
CONFIG_PLATFORM_ANDES_AE350=y
 | 
			
		||||
CONFIG_PLATFORM_SIFIVE_FU540=y
 | 
			
		||||
CONFIG_PLATFORM_SIFIVE_FU740=y
 | 
			
		||||
CONFIG_FDT_GPIO=y
 | 
			
		||||
@@ -7,11 +8,13 @@ CONFIG_FDT_I2C=y
 | 
			
		||||
CONFIG_FDT_I2C_SIFIVE=y
 | 
			
		||||
CONFIG_FDT_IPI=y
 | 
			
		||||
CONFIG_FDT_IPI_MSWI=y
 | 
			
		||||
CONFIG_FDT_IPI_PLICSW=y
 | 
			
		||||
CONFIG_FDT_IRQCHIP=y
 | 
			
		||||
CONFIG_FDT_IRQCHIP_APLIC=y
 | 
			
		||||
CONFIG_FDT_IRQCHIP_IMSIC=y
 | 
			
		||||
CONFIG_FDT_IRQCHIP_PLIC=y
 | 
			
		||||
CONFIG_FDT_RESET=y
 | 
			
		||||
CONFIG_FDT_RESET_ATCWDT200=y
 | 
			
		||||
CONFIG_FDT_RESET_GPIO=y
 | 
			
		||||
CONFIG_FDT_RESET_HTIF=y
 | 
			
		||||
CONFIG_FDT_RESET_SIFIVE_TEST=y
 | 
			
		||||
@@ -28,4 +31,5 @@ CONFIG_FDT_SERIAL_UART8250=y
 | 
			
		||||
CONFIG_FDT_SERIAL_XILINX_UARTLITE=y
 | 
			
		||||
CONFIG_FDT_TIMER=y
 | 
			
		||||
CONFIG_FDT_TIMER_MTIMER=y
 | 
			
		||||
CONFIG_FDT_TIMER_PLMT=y
 | 
			
		||||
CONFIG_SERIAL_SEMIHOSTING=y
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user