From 49d30668b628cb68c61a7b2512628263752360c3 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 20 May 2015 11:03:50 -0700 Subject: [PATCH] arm64: Add weak implementation of soc_get_bl31_plat_params This function is required to be implemented by SoC only if some platform specific parameters are to be passed in from the early bootloader to bl31 component. BUG=chrome-os-partner:40414 BRANCH=None TEST=Compiles successfully. Change-Id: I6e76a0b6735267971e12aa72a987e8d83f5ad102 Signed-off-by: Patrick Georgi Original-Commit-Id: 6ab8bc12ffc2ee5bf69cef68bae852dcbf7ccb98 Original-Change-Id: If55aaee8d18a8045a5d842145c0e2c97a37a8bca Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/272377 Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Julius Werner Original-Commit-Queue: Furquan Shaikh Original-Trybot-Ready: Furquan Shaikh Reviewed-on: http://review.coreboot.org/10308 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh --- src/arch/arm64/arm_tf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/arch/arm64/arm_tf.c b/src/arch/arm64/arm_tf.c index c5d46e37c5..1bdf522a2c 100644 --- a/src/arch/arm64/arm_tf.c +++ b/src/arch/arm64/arm_tf.c @@ -65,6 +65,12 @@ static void *vboot_get_bl31(void) return bl31_entry; } +void __attribute__((weak)) *soc_get_bl31_plat_params(bl31_params_t *params) +{ + /* Default weak implementation. */ + return NULL; +} + void arm_tf_run_bl31(u64 payload_entry, u64 payload_arg0, u64 payload_spsr) { const char *bl31_filename = CONFIG_CBFS_PREFIX"/bl31";