aboutsummaryrefslogtreecommitdiff
path: root/platform/ext
diff options
context:
space:
mode:
authorKevin Peng <kevin.peng@arm.com>2021-06-24 16:02:57 +0800
committerKen Liu <ken.liu@arm.com>2021-06-25 08:34:34 +0200
commita1206082968a50f8beacf3ee39ca537c07a0417c (patch)
tree05ea5981271fc33be4d7f2f0fab2817659b75f96 /platform/ext
parent0dfdf2f0a94cd6e6a83a93effb486168d5f66741 (diff)
downloadtrusted-firmware-m-a1206082968a50f8beacf3ee39ca537c07a0417c.tar.gz
Platform: AN519: Fix NVIC priority bits
AN519 is a Arm v8 base line arch. The number of configurable priorities is only 4 which is 2 bits. This patches fixes the wrong priority bits definition. Change-Id: I7e2672c96197d56c31437a8ffd5f07ef99077e2e Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Diffstat (limited to 'platform/ext')
-rw-r--r--platform/ext/target/arm/mps2/an519/cmsis_core/cmsis_cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/ext/target/arm/mps2/an519/cmsis_core/cmsis_cpu.h b/platform/ext/target/arm/mps2/an519/cmsis_core/cmsis_cpu.h
index cd9cff61c1..b6f0ef445c 100644
--- a/platform/ext/target/arm/mps2/an519/cmsis_core/cmsis_cpu.h
+++ b/platform/ext/target/arm/mps2/an519/cmsis_core/cmsis_cpu.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2018 ARM Limited
+ * Copyright (c) 2016-2021 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@
#define __MPU_PRESENT 1U /* MPU present */
#define __SAUREGION_PRESENT 1U /* SAU regions present */
#define __VTOR_PRESENT 1U /* VTOR present */
-#define __NVIC_PRIO_BITS 4U /* Number of Bits used for Priority Levels */
+#define __NVIC_PRIO_BITS 2U /* Number of Bits used for Priority Levels */
#define __Vendor_SysTickConfig 0U /* Set to 1 if different SysTick Config is used */
#define __FPU_PRESENT 0U /* no FPU present */
#define __DSP_PRESENT 0U /* no DSP extension present */