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
8b6385de
Commit
8b6385de
authored
Sep 07, 2017
by
davidcunado-arm
Committed by
GitHub
Sep 07, 2017
Browse files
Merge pull request #1082 from vchong/load_img_v2_parse_optee_header
hikey*: Add LOAD_IMAGE_V2 and OP-TEE header parsing support
parents
54578745
b16bb16e
Changes
21
Show whitespace changes
Inline
Side-by-side
plat/hisilicon/hikey960/platform.mk
View file @
8b6385de
...
...
@@ -4,6 +4,9 @@
# SPDX-License-Identifier: BSD-3-Clause
#
# Enable version2 of image loading
LOAD_IMAGE_V2
:=
1
# On Hikey960, the TSP can execute from TZC secure area in DRAM.
HIKEY960_TSP_RAM_LOCATION
:=
dram
ifeq
(${HIKEY960_TSP_RAM_LOCATION}, dram)
...
...
@@ -22,6 +25,15 @@ PROGRAMMABLE_RESET_ADDRESS := 1
$(eval
$(call
add_define,HIKEY960_TSP_RAM_LOCATION_ID))
$(eval
$(call
add_define,CRASH_CONSOLE_BASE))
# Add the build options to pack Trusted OS Extra1 and Trusted OS Extra2 images
# in the FIP if the platform requires.
ifneq
($(BL32_EXTRA1),)
$(eval
$(call
FIP_ADD_IMG,BL32_EXTRA1,--tos-fw-extra1))
endif
ifneq
($(BL32_EXTRA2),)
$(eval
$(call
FIP_ADD_IMG,BL32_EXTRA2,--tos-fw-extra2))
endif
ENABLE_PLAT_COMPAT
:=
0
USE_COHERENT_MEM
:=
1
...
...
@@ -61,6 +73,16 @@ BL2_SOURCES += drivers/io/io_block.c \
plat/hisilicon/hikey960/hikey960_io_storage.c
\
plat/hisilicon/hikey960/hikey960_mcu_load.c
ifeq
(${LOAD_IMAGE_V2},1)
BL2_SOURCES
+=
plat/hisilicon/hikey960/hikey960_bl2_mem_params_desc.c
\
plat/hisilicon/hikey960/hikey960_image_load.c
\
common/desc_image_load.c
ifeq
(${SPD},opteed)
BL2_SOURCES
+=
lib/optee/optee_utils.c
endif
endif
BL31_SOURCES
+=
drivers/arm/cci/cci.c
\
lib/cpus/aarch64/cortex_a53.S
\
lib/cpus/aarch64/cortex_a72.S
\
...
...
Prev
1
2
Next
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