summaryrefslogtreecommitdiff
path: root/common/spl/spl_atf.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-12-19 20:13:31 +0300
committerMichal Simek <michal.simek@xilinx.com>2020-01-14 11:05:54 +0300
commit5c03c990d1fb928048bf76f2fc03ee70276d4c4a (patch)
treec1a924d57cb3057698c0130f1c965ae485ace532 /common/spl/spl_atf.c
parent4d9b1afa415ddf998f6f40283f95770106cef35b (diff)
downloadu-boot-5c03c990d1fb928048bf76f2fc03ee70276d4c4a.tar.xz
spl: atf: Enable option to rewrite bl2_plat_get_bl31_params()
Xilinx ZynqMP platform is passing information to ATF in private format and ATF bl31 parameters are not used. That's why enable option to rewrite this function by platform specific implementation. The patch also move and update kernel-doc format with missing parameters. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'common/spl/spl_atf.c')
-rw-r--r--common/spl/spl_atf.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c
index 24fd35ed85..702367b2a2 100644
--- a/common/spl/spl_atf.c
+++ b/common/spl/spl_atf.c
@@ -18,20 +18,7 @@
static struct bl2_to_bl31_params_mem bl31_params_mem;
static struct bl31_params *bl2_to_bl31_params;
-/**
- * bl2_plat_get_bl31_params() - prepare params for bl31.
- *
- * This function assigns a pointer to the memory that the platform has kept
- * aside to pass platform specific and trusted firmware related information
- * to BL31. This memory is allocated by allocating memory to
- * bl2_to_bl31_params_mem structure which is a superset of all the
- * structure whose information is passed to BL31
- * NOTE: This function should be called only once and should be done
- * before generating params to BL31
- *
- * @return bl31 params structure pointer
- */
-static struct bl31_params *bl2_plat_get_bl31_params(uintptr_t bl32_entry,
+__weak struct bl31_params *bl2_plat_get_bl31_params(uintptr_t bl32_entry,
uintptr_t bl33_entry,
uintptr_t fdt_addr)
{