blob: b306c45c23eab4fa0d3ef1d41406564ad8e06d4b [file] [log] [blame]
Ying-Chun Liu (PaulLiu)9128df62018-07-04 02:26:48 +08001/*
2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <plat/common/platform.h>
Ying-Chun Liu (PaulLiu)9128df62018-07-04 02:26:48 +08008
9extern char rpi3_rotpk_hash[], rpi3_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 = rpi3_rotpk_hash;
15 *key_len = rpi3_rotpk_hash_end - rpi3_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}