From 850367d5bbccc378ffe3975391c7581d209fb8ac Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 11 Sep 2021 22:32:23 +0800 Subject: [PATCH] arch/arm: Add ARCH_CORTEXM55 Kconfig for cortex-m55 Signed-off-by: Xiang Xiao --- arch/arm/Kconfig | 14 ++++++++++++++ arch/arm/src/armv8-m/Toolchain.defs | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0949fa2899..a768a79170 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -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 diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs index 760ad42096..0254e12b74 100644 --- a/arch/arm/src/armv8-m/Toolchain.defs +++ b/arch/arm/src/armv8-m/Toolchain.defs @@ -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