arm-trusted-firmware/plat/st/stm32mp1
Yann Gautier 18b415be9d feat(plat/st): improve FIP image loading from MMC
Instead of using a scratch buffer of 512 bytes, we can directly use the
image address and max size. The mmc_block_dev_spec struct info is then
overwritten for each image with this info, except FW_CONFIG and GPT
table which will still use the scratch buffer.
This allows using multiple blocks read on MMC, and so improves the boot
time.
A cache invalidate is required for the remaining data not used from the
first and last blocks read. It is not required for FW_CONFIG_ID,
as it is in scratch buffer in SYSRAM, and also because bl_mem_params
struct is overwritten in this case. This should also not be done if
the image is not found (OP-TEE extra binaries when using SP_min).

Change-Id: If3ecfdfe35bb9db66284036ca49c4bd1be4fd121
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
2021-09-07 09:14:05 +02:00
..
include feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
services fix(plat/st): correct BSEC error code management 2021-06-22 14:10:27 +02:00
sp_min feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
bl2_plat_setup.c feat(plat/st): improve FIP image loading from MMC 2021-09-07 09:14:05 +02:00
plat_bl2_mem_params_desc.c feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
plat_bl2_stm32_mem_params_desc.c feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
plat_image_load.c feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
platform.mk feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1.ld.S feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1.S feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1_boot_device.c Enable -Wredundant-decls warning check 2020-01-28 11:09:02 -06:00
stm32mp1_context.c stm32mp1: update clock driver 2019-02-14 11:20:23 +01:00
stm32mp1_dbgmcu.c stm32mp1: print information about SoC 2019-09-02 17:49:30 +02:00
stm32mp1_def.h feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1_fip_def.h feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1_gic.c stm32mp1: split code between common and private parts 2019-02-14 11:20:23 +01:00
stm32mp1_helper.S stm32mp1: correct plat_crash_console_flush() 2021-01-22 11:42:54 +01:00
stm32mp1_pm.c stm32mp1: check stronger the secondary CPU entry point 2020-06-23 09:21:56 +02:00
stm32mp1_private.c refactor(plat/st): export functions to get SoC information 2021-05-27 09:54:59 +02:00
stm32mp1_scmi.c drivers: move scmi-msg out of st 2021-01-20 11:37:14 +08:00
stm32mp1_security.c refactor(plat/st): map DDR secure at boot 2021-07-13 18:16:55 +02:00
stm32mp1_shared_resources.c stm32mp1: register shared resource per GPIO bank/pin 2020-07-08 12:56:09 +02:00
stm32mp1_stack_protector.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
stm32mp1_stm32image_def.h feat(plat/st): use FIP to load images 2021-09-07 09:14:05 +02:00
stm32mp1_syscfg.c fix(plat/st): correct IO compensation disabling 2021-06-22 14:10:27 +02:00
stm32mp1_topology.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00