Teddy Reed | dd3f0a8 | 2018-09-03 17:38:50 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <plat/common/platform.h> |
Teddy Reed | dd3f0a8 | 2018-09-03 17:38:50 -0400 | [diff] [blame] | 8 | |
| 9 | extern char hikey960_rotpk_hash[], hikey960_rotpk_hash_end[]; |
| 10 | |
| 11 | int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, |
| 12 | unsigned int *flags) |
| 13 | { |
| 14 | *key_ptr = hikey960_rotpk_hash; |
| 15 | *key_len = hikey960_rotpk_hash_end - hikey960_rotpk_hash; |
| 16 | *flags = ROTPK_IS_HASH; |
| 17 | |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr) |
| 22 | { |
| 23 | *nv_ctr = 0; |
| 24 | |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr) |
| 29 | { |
| 30 | return 1; |
| 31 | } |