blob: b7dda8d82176ee5e0f8b3f2826f24bd5a2a0cfcd [file] [log] [blame]
Teddy Reede59a3bf2018-06-22 22:23:36 -04001/*
Ambroise Vincent2374ab12019-04-10 12:50:27 +01002 * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
Teddy Reede59a3bf2018-06-22 22:23:36 -04003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz09d40e02018-12-14 00:18:21 +00007#include <plat/common/platform.h>
Teddy Reede59a3bf2018-06-22 22:23:36 -04008
9extern char hikey_rotpk_hash[], hikey_rotpk_hash_end[];
10
11int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len,
12 unsigned int *flags)
13{
14 *key_ptr = hikey_rotpk_hash;
15 *key_len = hikey_rotpk_hash_end - hikey_rotpk_hash;
16 *flags = ROTPK_IS_HASH;
17
18 return 0;
19}
20
21int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr)
22{
23 *nv_ctr = 0;
24
25 return 0;
26}
27
28int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr)
29{
30 return 1;
31}
Ambroise Vincent2374ab12019-04-10 12:50:27 +010032
33int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size)
34{
35 return get_mbedtls_heap_helper(heap_addr, heap_size);
36}