mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00

Introduced IO policies management through the trusted boot firmware config device tree for UUID references. Change-Id: Ibeeabede51b0514ebba26dbbdae587363b2aa0a7 Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
29 lines
613 B
C
29 lines
613 B
C
/*
|
|
* Copyright (c) 2021, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STM32MP_FCONF_GETTER
|
|
#define STM32MP_FCONF_GETTER
|
|
|
|
#include <assert.h>
|
|
|
|
#include <lib/fconf/fconf.h>
|
|
|
|
/* IO policies */
|
|
#define stm32mp__io_policies_getter(id) __extension__ ({ \
|
|
assert((id) < MAX_NUMBER_IDS); \
|
|
&policies[id]; \
|
|
})
|
|
|
|
struct plat_io_policy {
|
|
uintptr_t *dev_handle;
|
|
uintptr_t image_spec;
|
|
int (*check)(const uintptr_t spec);
|
|
};
|
|
|
|
extern struct plat_io_policy policies[];
|
|
int fconf_populate_stm32mp_io_policies(uintptr_t config);
|
|
|
|
#endif /* STM32MP_FCONF_GETTER */
|