mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-09 05:30:05 +00:00
arm-bsp/n1sdp/scp-firmware: Enabling coresight debug non-secure access
This patch enables coresight to work with n1sdp c2c profile. Change-Id: Id3a5f92cc1f99cd907111ea858aad4efe561179e Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
committed by
Jon Mason
parent
cec4d317e9
commit
2d8a7cbd16
+38
@@ -0,0 +1,38 @@
|
||||
[PATCH] n1sdp: Enabling CoreSight debug non-secure access
|
||||
|
||||
Upstream-Status: Pending [Not submitted to upstream yet]
|
||||
|
||||
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
|
||||
|
||||
From 194e6239737272c3fadb202deb8015cb6e8df6ec Mon Sep 17 00:00:00 2001
|
||||
From: Khasim Mohammed <khasim.mohammed@arm.com>
|
||||
Date: Thu, 22 Apr 2021 15:48:02 +0100
|
||||
Subject: [PATCH] n1sdp: Enabling CoreSight debug non-secure access
|
||||
|
||||
This patch enables coresight to work with n1sdp c2c profile.
|
||||
|
||||
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
|
||||
---
|
||||
product/n1sdp/module/n1sdp_system/src/mod_n1sdp_system.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/product/n1sdp/module/n1sdp_system/src/mod_n1sdp_system.c b/product/n1sdp/module/n1sdp_system/src/mod_n1sdp_system.c
|
||||
index 70e2ec3f..ff380ae2 100644
|
||||
--- a/product/n1sdp/module/n1sdp_system/src/mod_n1sdp_system.c
|
||||
+++ b/product/n1sdp/module/n1sdp_system/src/mod_n1sdp_system.c
|
||||
@@ -466,6 +466,12 @@ static int n1sdp_system_init_primary_core(void)
|
||||
return status;
|
||||
}
|
||||
|
||||
+ else {
|
||||
+ /* Enable non-secure CoreSight debug access */
|
||||
+ FWK_LOG_INFO("N1SDP SYSTEM] Enabling CoreSight debug non-secure access");
|
||||
+ *(volatile uint32_t *)(AP_SCP_SRAM_OFFSET +
|
||||
+ NIC_400_SEC_0_CSAPBM_OFFSET) = 0xFFFFFFFF;
|
||||
+ }
|
||||
return FWK_SUCCESS;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -6,6 +6,12 @@ SCP_LOG_LEVEL = "INFO"
|
||||
LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731 \
|
||||
file://contrib/cmsis/git/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files/:"
|
||||
|
||||
SRC_URI_append = " \
|
||||
file://enabling-coresight-debug-non-secure-access.patch \
|
||||
"
|
||||
|
||||
SRCREV = "6c15afb1b37d0728482c598b063cd69bfc733e93"
|
||||
PV = "2.7.0+git${SRCPV}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user