14f2b9848SAndre Przywara /* 2*1c800903SAbhi Singh * Copyright (c) 2017-2024, ARM Limited and Contributors. All rights reserved. 34f2b9848SAndre Przywara * 44f2b9848SAndre Przywara * SPDX-License-Identifier: BSD-3-Clause 54f2b9848SAndre Przywara */ 64f2b9848SAndre Przywara 74f2b9848SAndre Przywara #include <plat/common/platform.h> 84f2b9848SAndre Przywara 94f2b9848SAndre Przywara extern char rpi3_rotpk_hash[], rpi3_rotpk_hash_end[]; 104f2b9848SAndre Przywara 114f2b9848SAndre Przywara int plat_get_rotpk_info(void *cookie, void **key_ptr, unsigned int *key_len, 124f2b9848SAndre Przywara unsigned int *flags) 134f2b9848SAndre Przywara { 144f2b9848SAndre Przywara *key_ptr = rpi3_rotpk_hash; 154f2b9848SAndre Przywara *key_len = rpi3_rotpk_hash_end - rpi3_rotpk_hash; 164f2b9848SAndre Przywara *flags = ROTPK_IS_HASH; 174f2b9848SAndre Przywara 184f2b9848SAndre Przywara return 0; 194f2b9848SAndre Przywara } 204f2b9848SAndre Przywara 214f2b9848SAndre Przywara int plat_get_nv_ctr(void *cookie, unsigned int *nv_ctr) 224f2b9848SAndre Przywara { 234f2b9848SAndre Przywara *nv_ctr = 0; 244f2b9848SAndre Przywara 254f2b9848SAndre Przywara return 0; 264f2b9848SAndre Przywara } 274f2b9848SAndre Przywara 284f2b9848SAndre Przywara int plat_set_nv_ctr(void *cookie, unsigned int nv_ctr) 294f2b9848SAndre Przywara { 304f2b9848SAndre Przywara return 1; 314f2b9848SAndre Przywara } 32