Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
0fd12b9e
Commit
0fd12b9e
authored
May 20, 2021
by
Mark Dykes
Committed by
TrustedFirmware Code Review
May 20, 2021
Browse files
Merge "refactor(juno): disable non-invasive debug of secure state" into integration
parents
c1588782
63ca6bba
Changes
2
Show whitespace changes
Inline
Side-by-side
include/plat/arm/css/common/css_def.h
View file @
0fd12b9e
/*
* Copyright (c) 2015-202
0
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-202
1
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -137,6 +137,8 @@
#define SSC_DBGCFG_SET 0x14
#define SSC_DBGCFG_CLR 0x18
#define SPNIDEN_INT_CLR_SHIFT 4
#define SPNIDEN_SEL_SET_SHIFT 5
#define SPIDEN_INT_CLR_SHIFT 6
#define SPIDEN_SEL_SET_SHIFT 7
...
...
plat/arm/board/juno/juno_security.c
View file @
0fd12b9e
/*
* Copyright (c) 2014-202
0
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2014-202
1
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -115,6 +115,14 @@ static void init_debug_cfg(void)
/* Drive SPIDEN LOW to disable invasive debug of secure state. */
mmio_write_32
(
SSC_REG_BASE
+
SSC_DBGCFG_CLR
,
1U
<<
SPIDEN_INT_CLR_SHIFT
);
/* Set internal drive selection for SPNIDEN. */
mmio_write_32
(
SSC_REG_BASE
+
SSC_DBGCFG_SET
,
1U
<<
SPNIDEN_SEL_SET_SHIFT
);
/* Drive SPNIDEN LOW to disable non-invasive debug of secure state. */
mmio_write_32
(
SSC_REG_BASE
+
SSC_DBGCFG_CLR
,
1U
<<
SPNIDEN_INT_CLR_SHIFT
);
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment