arch/arm: Add the support of MPS2 AN386 and AN500

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2024-03-07 19:46:38 +08:00 committed by Xiang Xiao
parent 6a38c37702
commit d3be25d90c
2 changed files with 21 additions and 3 deletions

View File

@ -11,14 +11,28 @@ choice
prompt "ARM MPS Configuration"
default ARCH_CHIP_MPS3_AN547
config ARCH_CHIP_MPS3_AN547
bool "MPS3 AN547 Processor Cortexm55"
select ARCH_CORTEXM55
config ARCH_CHIP_MPS2_AN386
bool "MPS2 AN386 Processor Cortexm4"
select ARCH_CORTEXM4
select ARCH_HAVE_MPU
select ARM_HAVE_MPU_UNIFIED
select ARCH_HAVE_FPU
config ARCH_CHIP_MPS2_AN500
bool "MPS2 AN500 Processor Cortexm7"
select ARCH_CORTEXM7
select ARCH_HAVE_MPU
select ARM_HAVE_MPU_UNIFIED
select ARCH_HAVE_FPU
config ARCH_CHIP_MPS3_AN524
bool "MPS3 AN524 Processor Cortexm33"
select ARCH_CORTEXM33
config ARCH_CHIP_MPS3_AN547
bool "MPS3 AN547 Processor Cortexm55"
select ARCH_CORTEXM55
endchoice
endmenu

View File

@ -18,6 +18,10 @@
#
############################################################################
ifeq ($(CONFIG_ARCH_ARMV7M),y)
include armv7-m/Make.defs
else
include armv8-m/Make.defs
endif
CHIP_CSRCS = mps_start.c mps_serial.c mps_irq.c mps_timer.c mps_allocateheap.c