diff --git a/plat/rpi/common/rpi3_common.c b/plat/rpi/common/rpi3_common.c index 89764969d..4e3c9f233 100644 --- a/plat/rpi/common/rpi3_common.c +++ b/plat/rpi/common/rpi3_common.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -225,3 +226,10 @@ uint32_t plat_interrupt_type_to_line(uint32_t type, uint32_t security_state) /* Secure interrupts are signalled on the FIQ line always. */ return __builtin_ctz(SCR_FIQ_BIT); } + +#if MEASURED_BOOT || TRUSTED_BOARD_BOOT +int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) +{ + return get_mbedtls_heap_helper(heap_addr, heap_size); +} +#endif diff --git a/plat/rpi/common/rpi3_trusted_boot.c b/plat/rpi/common/rpi3_trusted_boot.c index f6c669fad..86a70d664 100644 --- a/plat/rpi/common/rpi3_trusted_boot.c +++ b/plat/rpi/common/rpi3_trusted_boot.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2024, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -29,8 +29,3 @@ int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr) { return 1; } - -int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) -{ - return get_mbedtls_heap_helper(heap_addr, heap_size); -}