diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-05-17 11:16:22 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-05-17 11:16:22 +0100 |
commit | 8c61c0a3cb8d6b534d1e423211e06b89f45bf223 (patch) | |
tree | 24895ed5f20d4cad92fbcd679fb9637637931e18 /source/hal/source/platform/mps3/source/platform_drivers.c | |
parent | b76b855448d58b85f53642532375c9b7808ab14d (diff) | |
download | ml-embedded-evaluation-kit-8c61c0a3cb8d6b534d1e423211e06b89f45bf223.tar.gz |
MLECO-2985 Adding Corstone-310 support
Change-Id: Ifa4b11154478355c10cb3e747b9938a74afd242b
Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
Diffstat (limited to 'source/hal/source/platform/mps3/source/platform_drivers.c')
-rw-r--r-- | source/hal/source/platform/mps3/source/platform_drivers.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/hal/source/platform/mps3/source/platform_drivers.c b/source/hal/source/platform/mps3/source/platform_drivers.c index d1c3da2..801cd0b 100644 --- a/source/hal/source/platform/mps3/source/platform_drivers.c +++ b/source/hal/source/platform/mps3/source/platform_drivers.c @@ -136,7 +136,17 @@ static int verify_platform(void) info("CPU ID: 0x%08" PRIx32 "\n", id); if(EXTRACT_BITS(id, 15, 8) == 0xD2) { - if (EXTRACT_BITS(id, 7, 4) == 2) { + if (EXTRACT_BITS(id, 7, 4) == 3) { + info ("CPU: Cortex-M85 r%dp%d\n\n", + EXTRACT_BITS(id, 23, 20),EXTRACT_BITS(id, 3, 0)); + /* @TODO: Remove CPU_CORTEX_M55 from here once CMake min version is > 3.21.0 or when + * toolchains officially support Cortex-M85. Currently, for CMake versions older than + * this, Cortex-M85 is built using Cortex-M55 flags. */ +#if defined (CPU_CORTEX_M55) || defined (ARMv81MML_DSP_DP_MVE_FP) || defined(CPU_CORTEX_M85) + /* CPU ID should be "0x_41_0f_d2_30" for Cortex-M85 */ + return 0; +#endif /* (CPU_CORTEX_M55) || (ARMv81MML_DSP_DP_MVE_FP) || (CPU_CORTEX_M85) */ + } else if (EXTRACT_BITS(id, 7, 4) == 2) { info ("CPU: Cortex-M55 r%dp%d\n\n", EXTRACT_BITS(id, 23, 20),EXTRACT_BITS(id, 3, 0)); #if defined (CPU_CORTEX_M55) |