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
cfb3f733
Commit
cfb3f733
authored
Mar 18, 2020
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
Mar 18, 2020
Browse files
Merge "FVP: In BL31/SP_MIN, map only the needed DRAM region statically" into integration
parents
7a20da43
493545b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
plat/arm/board/fvp/fvp_common.c
View file @
cfb3f733
...
...
@@ -135,7 +135,7 @@ const mmap_region_t plat_arm_mmap[] = {
ARM_SPM_BUF_EL3_MMAP
,
#endif
/* Required by fconf APIs to read HW_CONFIG dtb loaded into DRAM */
ARM_
MAP_NS
_DRAM
1
,
ARM_
DTB
_DRAM
_NS
,
{
0
}
};
...
...
@@ -163,7 +163,7 @@ const mmap_region_t plat_arm_mmap[] = {
MAP_DEVICE0
,
MAP_DEVICE1
,
/* Required by fconf APIs to read HW_CONFIG dtb loaded into DRAM */
ARM_
MAP_NS
_DRAM
1
,
ARM_
DTB
_DRAM
_NS
,
{
0
}
};
#endif
...
...
plat/arm/board/fvp/include/platform_def.h
View file @
cfb3f733
...
...
@@ -52,6 +52,13 @@
#define PLAT_ARM_DRAM2_BASE ULL(0x880000000)
#define PLAT_ARM_DRAM2_SIZE UL(0x80000000)
#define PLAT_HW_CONFIG_DTB_BASE ULL(0x82000000)
#define PLAT_HW_CONFIG_DTB_SIZE ULL(0x8000)
#define ARM_DTB_DRAM_NS MAP_REGION_FLAT( \
PLAT_HW_CONFIG_DTB_BASE, \
PLAT_HW_CONFIG_DTB_SIZE, \
MT_MEMORY | MT_RO | MT_NS)
/*
* Load address of BL33 for this platform port
*/
...
...
@@ -70,14 +77,14 @@
# else
# define PLAT_ARM_MMAP_ENTRIES 9
# if USE_DEBUGFS
# define MAX_XLAT_TABLES
6
# define MAX_XLAT_TABLES
8
# else
# define MAX_XLAT_TABLES
5
# define MAX_XLAT_TABLES
7
# endif
# endif
#elif defined(IMAGE_BL32)
# define PLAT_ARM_MMAP_ENTRIES 9
# define MAX_XLAT_TABLES
5
# define MAX_XLAT_TABLES
6
#elif !USE_ROMLIB
# define PLAT_ARM_MMAP_ENTRIES 11
# define MAX_XLAT_TABLES 5
...
...
@@ -126,7 +133,7 @@
* calculated using the current BL31 PROGBITS debug size plus the sizes of
* BL2 and BL1-RW
*/
#define PLAT_ARM_MAX_BL31_SIZE UL(0x3
B
000)
#define PLAT_ARM_MAX_BL31_SIZE UL(0x3
E
000)
#endif
/* RESET_TO_BL31 */
#ifndef __aarch64__
...
...
plat/arm/board/fvp/platform.mk
View file @
cfb3f733
...
...
@@ -206,9 +206,11 @@ BL31_SOURCES += drivers/arm/fvp/fvp_pwrc.c \
# Support for fconf in BL31
# Added separately from the above list for better readability
ifeq
($(filter 1,${BL2_AT_EL3} ${RESET_TO_BL31}),)
BL31_SOURCES
+=
common/fdt_wrappers.c
\
lib/fconf/fconf.c
\
plat/arm/board/fvp/fconf/fconf_hw_config_getter.c
endif
ifeq
(${FVP_USE_SP804_TIMER},1)
BL31_SOURCES
+=
drivers/arm/sp804/sp804_delay_timer.c
...
...
plat/arm/board/fvp/sp_min/sp_min-fvp.mk
View file @
cfb3f733
...
...
@@ -20,8 +20,10 @@ BL32_SOURCES += drivers/arm/fvp/fvp_pwrc.c \
# Support for fconf in SP_MIN(BL32)
# Added separately from the above list for better readability
ifeq
($(filter 1,${BL2_AT_EL3} ${RESET_TO_SP_MIN}),)
BL32_SOURCES
+=
common/fdt_wrappers.c
\
lib/fconf/fconf.c
\
plat/arm/board/fvp/fconf/fconf_hw_config_getter.c
endif
include
plat/arm/common/sp_min/arm_sp_min.mk
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