arch/arm: Add ARCH_CORTEXM55 Kconfig for cortex-m55

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-09-11 22:32:23 +08:00 committed by Alan Carvalho de Assis
parent d8ea482b58
commit 850367d5bb
2 changed files with 22 additions and 0 deletions

View File

@ -738,6 +738,20 @@ config ARCH_CORTEXM35P
select ARCH_HAVE_HARDFAULT_DEBUG
select ARCH_HAVE_MEMFAULT_DEBUG
config ARCH_CORTEXM55
bool
default n
select ARCH_ARMV8M
select ARCH_HAVE_IRQPRIO
select ARCH_HAVE_IRQTRIGGER
select ARCH_HAVE_RAMVECTORS
select ARCH_HAVE_LAZYFPU
select ARCH_HAVE_HIPRI_INTERRUPT
select ARCH_HAVE_RESET
select ARCH_HAVE_TESTSET
select ARCH_HAVE_HARDFAULT_DEBUG
select ARCH_HAVE_MEMFAULT_DEBUG
config ARCH_FAMILY
string
default "arm" if ARCH_ARM7TDMI || ARCH_ARM920T || ARCH_ARM926EJS || ARCH_ARM1136J || ARCH_ARM1156T2 || ARCH_ARM1176JZ

View File

@ -96,6 +96,14 @@ else ifeq ($(CONFIG_ARCH_CORTEXM35P),y)
else
TOOLCHAIN_MFLOAT := -mfloat-abi=soft
endif
else ifeq ($(CONFIG_ARCH_CORTEXM55),y)
TOOLCHAIN_MCPU := -mcpu=cortex-m55
TOOLCHAIN_MARCH := -march=armv8.1-m.main+dsp
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv5-d16 -mfloat-abi=hard
else
TOOLCHAIN_MFLOAT := -mfloat-abi=soft
endif
endif