From b84ab912afd78fa77c700320adfe38c5fbe83176 Mon Sep 17 00:00:00 2001 From: Eugene Cohen Date: Mon, 7 Mar 2022 14:42:10 +0000 Subject: [PATCH] arch: arm64: define A55 core Define a CPU_CORTEX_A55 configuration and align the gcc cpu type accordingly when selected. Signed-off-by: Eugene Cohen --- arch/arm64/core/Kconfig | 7 +++++++ cmake/gcc-m-cpu.cmake | 2 ++ 2 files changed, 9 insertions(+) diff --git a/arch/arm64/core/Kconfig b/arch/arm64/core/Kconfig index 038e9a81780..71b2eb0b942 100644 --- a/arch/arm64/core/Kconfig +++ b/arch/arm64/core/Kconfig @@ -28,6 +28,13 @@ config CPU_CORTEX_A53 help This option signifies the use of a Cortex-A53 CPU +config CPU_CORTEX_A55 + bool + select CPU_CORTEX_A + select ARMV8_A + help + This option signifies the use of a Cortex-A55 CPU + config CPU_CORTEX_A72 bool select CPU_CORTEX_A diff --git a/cmake/gcc-m-cpu.cmake b/cmake/gcc-m-cpu.cmake index 162038dc2cb..b693ddebdec 100644 --- a/cmake/gcc-m-cpu.cmake +++ b/cmake/gcc-m-cpu.cmake @@ -73,6 +73,8 @@ if("${ARCH}" STREQUAL "arm") elseif("${ARCH}" STREQUAL "arm64") if(CONFIG_CPU_CORTEX_A53) set(GCC_M_CPU cortex-a53) + elseif(CONFIG_CPU_CORTEX_A55) + set(GCC_M_CPU cortex-a55) elseif(CONFIG_CPU_CORTEX_A72) set(GCC_M_CPU cortex-a72) elseif(CONFIG_CPU_CORTEX_R82)