mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-17 09:57:01 +02:00
Use the firmware configuration framework in arm dynamic configuration to retrieve mbedtls heap information between bl1 and bl2. For this, a new fconf getter is added to expose the device tree base address and size. Change-Id: Ifa5ac9366ae100e2cdd1f4c8e85fc591b170f4b6 Signed-off-by: Louis Mayencourt <louis.mayencourt@arm.com>
28 lines
576 B
C
28 lines
576 B
C
/*
|
|
* Copyright (c) 2019-2020, ARM Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef FCONF_TBBR_GETTER_H
|
|
#define FCONF_TBBR_GETTER_H
|
|
|
|
#include <lib/fconf/fconf.h>
|
|
|
|
/* TBBR related getter */
|
|
#define tbbr__cot_getter(id) cot_desc_ptr[id]
|
|
|
|
#define tbbr__dyn_config_getter(id) tbbr_dyn_config.id
|
|
|
|
struct tbbr_dyn_config_t {
|
|
uint32_t disable_auth;
|
|
void *mbedtls_heap_addr;
|
|
size_t mbedtls_heap_size;
|
|
};
|
|
|
|
extern struct tbbr_dyn_config_t tbbr_dyn_config;
|
|
|
|
int fconf_populate_tbbr_dyn_config(uintptr_t config);
|
|
|
|
#endif /* FCONF_TBBR_GETTER_H */
|