spl: atf: Enable option to rewrite bl2_plat_get_bl31_params()
[oweals/u-boot.git] / common / spl / spl_atf.c
index 24fd35ed85f4517d9ee160cce1ce7110ce28eca8..702367b2a23c9f6f709f5c41a336c8f3e230a7e4 100644 (file)
 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)
 {