| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#include <plat/common/platform.h> |
| 8 |
|
| 9 |
extern char uniphier_rotpk_hash[], uniphier_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 = uniphier_rotpk_hash; |
| 15 |
*key_len = uniphier_rotpk_hash_end - uniphier_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 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
*nv_ctr = 0; |
| 28 |
|
| 29 |
return 0; |
| 30 |
} |
| 31 |
|
| 32 |
int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr) |
| 33 |
{ |
| 34 |
return 0; |
| 35 |
} |
| 36 |
|
| 37 |
int plat_get_mbedtls_heap(void **heap_addr, size_t *heap_size) |
| 38 |
{ |
| 39 |
return get_mbedtls_heap_helper(heap_addr, heap_size); |
| 40 |
} |