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
0668e5a8
Unverified
Commit
0668e5a8
authored
Nov 22, 2018
by
Antonio Niño Díaz
Committed by
GitHub
Nov 22, 2018
Browse files
Merge pull request #1687 from ldts/rcar_gen3/maintain_4
rcar-gen3: lock RPC hyper-flash access
parents
c3859557
6e93392b
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/renesas/rcar/bl2_secure_setting.c
View file @
0668e5a8
...
...
@@ -66,7 +66,9 @@ static const struct {
/* {SEC_SEL12, 0xFFFFFFFFU}, */
/* Bit22: RPC slave ports. */
/* 0: registers accessed from secure resource only. */
/* {SEC_SEL13, 0xFFBFFFFFU},*/
#if (RCAR_RPC_HYPERFLASH_LOCKED == 1)
{
SEC_SEL13
,
0xFFBFFFFFU
},
#endif
/* Bit27: System Timer (SCMT) slave ports */
/* 0: registers accessed from secure resource only */
/* Bit26: System Watchdog Timer (SWDT) slave ports */
...
...
@@ -183,8 +185,10 @@ static const struct {
/** Security group 1 attribute setting for slave ports 13 */
/* Bit22: RPC slave ports. */
/* SecurityGroup3 */
/* {SEC_GRP0COND13, 0x00400000U}, */
/* {SEC_GRP1COND13, 0x00400000U}, */
#if (RCAR_RPC_HYPERFLASH_LOCKED == 1)
{
SEC_GRP0COND13
,
0x00400000U
},
{
SEC_GRP1COND13
,
0x00400000U
},
#endif
/** Security group 0 attribute setting for slave ports 14 */
/** Security group 1 attribute setting for slave ports 14 */
/* Bit26: System Timer (SCMT) slave ports */
...
...
plat/renesas/rcar/platform.mk
View file @
0668e5a8
...
...
@@ -137,6 +137,13 @@ else
$(eval
$(call
add_define,RCAR_LSI))
endif
# lock RPC HYPERFLASH access by default
# unlock to repogram the ATF firmware from u-boot
ifndef
RCAR_RPC_HYPERFLASH_LOCKED
RCAR_RPC_HYPERFLASH_LOCKED
:=
1
endif
$(eval
$(call
add_define,RCAR_RPC_HYPERFLASH_LOCKED))
# Process RCAR_SECURE_BOOT flag
ifndef
RCAR_SECURE_BOOT
RCAR_SECURE_BOOT
:=
1
...
...
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