blob: 6ba4694f728a693884884c981453fb61990818ef [file] [log] [blame]
Usama Ariff1513622021-04-09 17:07:41 +01001/*
laurenw-arm116f10c2023-06-13 16:43:39 -05002 * Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
Usama Ariff1513622021-04-09 17:07:41 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef TC_PLAT_H
8#define TC_PLAT_H
9
laurenw-arm116f10c2023-06-13 16:43:39 -050010#ifdef PLATFORM_TEST_ROTPK
Tamas Bandc15bf42024-02-22 11:35:28 +010011#include <rse_crypto_defs.h>
laurenw-arm116f10c2023-06-13 16:43:39 -050012#endif
13
Usama Ariff1513622021-04-09 17:07:41 +010014void tc_bl31_common_platform_setup(void);
15
Tamas Ban15b79da2023-04-21 09:31:48 +020016#ifdef PLATFORM_TEST_TFM_TESTSUITE
Sandrine Bailleuxe1da6c42023-05-05 13:59:07 +020017int run_platform_tests(void);
Tamas Ban15b79da2023-04-21 09:31:48 +020018#endif
Sandrine Bailleuxe1da6c42023-05-05 13:59:07 +020019
Tamas Ban15b79da2023-04-21 09:31:48 +020020#ifdef PLATFORM_TEST_NV_COUNTERS
Sandrine Bailleuxe1da6c42023-05-05 13:59:07 +020021int nv_counter_test(void);
Mate Toth-Pal14ba4af2022-10-21 14:24:49 +020022#endif
23
laurenw-arm116f10c2023-06-13 16:43:39 -050024#ifdef PLATFORM_TEST_ROTPK
25struct key_id_info {
Tamas Bandc15bf42024-02-22 11:35:28 +010026 enum rse_key_id_builtin_t key_id;
laurenw-arm116f10c2023-06-13 16:43:39 -050027 const char *key_id_name;
28};
29
30int rotpk_test(void);
31#endif
32
Usama Ariff1513622021-04-09 17:07:41 +010033#endif /* TC_PLAT_H */