Masahiro Yamada | 574388c | 2016-09-03 11:37:40 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <platform.h> |
| 8 | |
| 9 | int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, |
| 10 | unsigned int *flags) |
| 11 | { |
| 12 | *flags = ROTPK_NOT_DEPLOYED; |
| 13 | |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr) |
| 18 | { |
| 19 | /* |
| 20 | * No support for non-volatile counter. Update the ROT key to protect |
| 21 | * the system against rollback. |
| 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 0; |
| 31 | } |