Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED ARM trusted-firmware Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED ARM trusted-firmware Fork
Commits
cffb0034
Unverified
Commit
cffb0034
authored
6 years ago
by
danh-arm
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1488 from b49020/integration
synquacer: Enable optional OP-TEE support
parents
790e6c5b
6cb2a397
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/socionext/synquacer/platform.mk
+4
-0
4 additions, 0 deletions
plat/socionext/synquacer/platform.mk
plat/socionext/synquacer/sq_bl31_setup.c
+24
-11
24 additions, 11 deletions
plat/socionext/synquacer/sq_bl31_setup.c
with
28 additions
and
11 deletions
plat/socionext/synquacer/platform.mk
+
4
−
0
View file @
cffb0034
...
...
@@ -18,6 +18,10 @@ ERRATA_A53_855873 := 1
# Libraries
include
lib/xlat_tables_v2/xlat_tables.mk
ifeq
(${SPD},opteed)
TF_CFLAGS_aarch64
+=
-DBL32_BASE
=
0xfc000000
endif
PLAT_PATH
:=
plat/socionext/synquacer
PLAT_INCLUDES
:=
-I
$(
PLAT_PATH
)
/include
\
-I
$(
PLAT_PATH
)
/drivers/scpi
\
...
...
This diff is collapsed.
Click to expand it.
plat/socionext/synquacer/sq_bl31_setup.c
+
24
−
11
View file @
cffb0034
...
...
@@ -70,15 +70,31 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2,
assert
(
from_bl2
==
NULL
);
assert
(
plat_params_from_bl2
==
NULL
);
/* Initialize power controller before setting up topology */
plat_sq_pwrc_setup
();
#ifdef BL32_BASE
/* Populate entry point information for BL32 */
SET_PARAM_HEAD
(
&
bl32_image_ep_info
,
PARAM_EP
,
VERSION_1
,
0
);
SET_SECURITY_STATE
(
bl32_image_ep_info
.
h
.
attr
,
SECURE
);
bl32_image_ep_info
.
pc
=
BL32_BASE
;
bl32_image_ep_info
.
spsr
=
sq_get_spsr_for_bl32_entry
();
struct
draminfo
di
=
{
0
};
scpi_get_draminfo
(
&
di
);
/*
* Check if OP-TEE has been loaded in Secure RAM allocated
* from DRAM1 region
*/
if
((
di
.
base1
+
di
.
size1
)
<=
BL32_BASE
)
{
NOTICE
(
"OP-TEE has been loaded by SCP firmware
\n
"
);
/* Populate entry point information for BL32 */
SET_PARAM_HEAD
(
&
bl32_image_ep_info
,
PARAM_EP
,
VERSION_1
,
0
);
SET_SECURITY_STATE
(
bl32_image_ep_info
.
h
.
attr
,
SECURE
);
bl32_image_ep_info
.
pc
=
BL32_BASE
;
bl32_image_ep_info
.
spsr
=
sq_get_spsr_for_bl32_entry
();
}
else
{
NOTICE
(
"OP-TEE has not been loaded by SCP firmware
\n
"
);
}
#endif
/* BL32_BASE */
/* Populate entry point information for BL33 */
...
...
@@ -125,9 +141,6 @@ void bl31_platform_setup(void)
/* Allow access to the System counter timer module */
sq_configure_sys_timer
();
/* Initialize power controller before setting up topology */
plat_sq_pwrc_setup
();
}
void
bl31_plat_runtime_setup
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment