-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee17b70
commit 6587d92
Showing
48 changed files
with
19,172 additions
and
2 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ware/arm-trusted-firmware/0001-plat-rcar-BL2-Set-security-settings-of-RPC-IF-to-non.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From d887ee0a461203a517b9e82a25127166661f0cf4 Mon Sep 17 00:00:00 2001 | ||
From: Vito Colagiacomo <[email protected]> | ||
Date: Fri, 5 Jun 2020 17:13:31 +0200 | ||
Subject: [PATCH] plat: rcar: BL2: Set security settings of RPC-IF to | ||
non-secure | ||
|
||
This is needed if we want to access the Hyperflash from Non-Secure | ||
World (Linux). | ||
--- | ||
plat/renesas/rcar/bl2_secure_setting.c | 8 ++++---- | ||
1 file changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/plat/renesas/rcar/bl2_secure_setting.c b/plat/renesas/rcar/bl2_secure_setting.c | ||
index 24697806..94775728 100644 | ||
--- a/plat/renesas/rcar/bl2_secure_setting.c | ||
+++ b/plat/renesas/rcar/bl2_secure_setting.c | ||
@@ -90,8 +90,8 @@ static const struct { | ||
|
||
/** Security attribute setting for slave ports 13 */ | ||
/* Bit22: RPC slave ports. */ | ||
- /* 0: registers can be accessed from secure resource only. */ | ||
- {SEC_SEL13, 0xFFBFFFFFU}, | ||
+ /* 1: registers can be accessed from all resource. */ | ||
+ {SEC_SEL13, 0xFFFFFFFFU}, | ||
|
||
/** Security attribute setting for slave ports 14 */ | ||
/* Bit27: System Timer (SCMT) slave ports. */ | ||
@@ -222,8 +222,8 @@ static const struct { | ||
/** Security group 1 attribute setting for slave ports 13 */ | ||
/* Bit22: RPC slave ports. */ | ||
/* SecurityGroup3 */ | ||
- {SEC_GRP0COND13, 0x00400000U}, | ||
- {SEC_GRP1COND13, 0x00400000U}, | ||
+ {SEC_GRP0COND13, 0x00000000U}, | ||
+ {SEC_GRP1COND13, 0x00000000U}, | ||
|
||
/** Security group 0 attribute setting for slave ports 14 */ | ||
/** Security group 1 attribute setting for slave ports 14 */ | ||
-- | ||
2.17.1 | ||
|
19 changes: 19 additions & 0 deletions
19
recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bbappend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require include/hyperflash-linux-control.inc | ||
|
||
COMPATIBLE_MACHINE = "(salvator-x|ulcb|ebisu|h3vc)" | ||
|
||
PATCHTOOL = "git" | ||
|
||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | ||
|
||
ATFW_OPT_append_h3vc = " RCAR_SYSTEM_SUSPEND=0" | ||
|
||
# Set RPC-IF to Non-Secure so that it is possible to access the hyperflash from Linux | ||
NON_SECURE_HYPERFLASH = " \ | ||
file://0001-plat-rcar-BL2-Set-security-settings-of-RPC-IF-to-non.patch \ | ||
" | ||
|
||
SRC_URI_append_h3vc = " \ | ||
${@oe.utils.conditional("ENABLE_HYPERFLASH_LINUX", "1", "${NON_SECURE_HYPERFLASH}", "", d)} \ | ||
" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPATIBLE_MACHINE = "(salvator-x|h3ulcb|m3ulcb|m3nulcb|ebisu|h3vc)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require include/hyperflash-linux-control.inc | ||
|
||
COMPATIBLE_MACHINE = "(salvator-x|h3ulcb|m3ulcb|m3nulcb|ebisu|h3vc)" | ||
|
||
# Disable the Secure Storage on Hyperflash if we want to access the | ||
# hyperflash from linux | ||
DISABLE_HYPERFLASH_SECURE_STORAGE = "CFG_REE_FS=y CFG_STANDALONE_FS=n" | ||
|
||
OPTEE_OPT = " \ | ||
${@oe.utils.conditional("ENABLE_HYPERFLASH_LINUX", "1", "${DISABLE_HYPERFLASH_SECURE_STORAGE}", "", d)} \ | ||
" | ||
|
||
do_compile() { | ||
oe_runmake PLATFORM=${PLATFORM} CFG_ARM64_core=y \ | ||
${OPTEE_OPT} | ||
} | ||
|
Oops, something went wrong.