Skip to content

Commit

Permalink
Added meta-vc recipes append files
Browse files Browse the repository at this point in the history
  • Loading branch information
OstermannD committed Sep 14, 2020
1 parent ee17b70 commit 6587d92
Show file tree
Hide file tree
Showing 48 changed files with 19,172 additions and 2 deletions.
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 recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bbappend
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)} \
"

1 change: 1 addition & 0 deletions recipes-bsp/optee/optee-client_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COMPATIBLE_MACHINE = "(salvator-x|h3ulcb|m3ulcb|m3nulcb|ebisu|h3vc)"
17 changes: 17 additions & 0 deletions recipes-bsp/optee/optee-os_git.bbappend
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}
}

Loading

0 comments on commit 6587d92

Please sign in to comment.