]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(ethos-n): add workaround for erratum 2838783
authorMikael Olsson <mikael.olsson@arm.com>
Wed, 11 Jan 2023 09:36:22 +0000 (10:36 +0100)
committerJoanna Farley <joanna.farley@arm.com>
Tue, 4 Apr 2023 09:36:36 +0000 (11:36 +0200)
To workaround Arm(R) Ethos(TM)-N NPU erratum 2838783, the NPU has been
configured to allow being woken up by both secure and non-secure events
to make sure that an event always wakes up the NPU.

The API version has been given a minor version bump with this change to
indicate that this fix is included.

Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Change-Id: I429cdd6bf1e633b4dedf2e94af28937dd892a0ba

drivers/arm/ethosn/ethosn_smc.c
include/drivers/arm/ethosn.h

index 7604b8b56ec09557467663ec636ca8aea95add22..cf3491055e271d841faad06fe02eae18e1de6613 100644 (file)
@@ -39,7 +39,8 @@
 #define SEC_DEL_EXCC_MASK              U(0x20)
 
 #define SEC_SECCTLR_REG                        U(0x0010)
-#define SEC_SECCTLR_VAL                        U(0x3)
+/* Set bit[10] = 1 to workaround erratum 2838783 */
+#define SEC_SECCTLR_VAL                        U(0x403)
 
 #define SEC_DEL_ADDR_EXT_REG           U(0x201C)
 #define SEC_DEL_ADDR_EXT_VAL           U(0x15)
index 95244c71fb53948e35f0f06230d80b064cb66b4e..9f1b499d0c1ddeeb9c99f8321ce0a57c3a493e75 100644 (file)
@@ -40,7 +40,7 @@
 
 /* Service version  */
 #define ETHOSN_VERSION_MAJOR U(2)
-#define ETHOSN_VERSION_MINOR U(2)
+#define ETHOSN_VERSION_MINOR U(3)
 
 /* Return codes for function calls */
 #define ETHOSN_SUCCESS                  0