1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright 2022 NXP 4 */ 5 6 #include <console.h> 7 #include <kernel/tee_common_otp.h> 8 #include <kernel/huk_subkey.h> 9 #include <platform_config.h> 10 11 #include "drivers/htif.h" 12 13 #ifdef CFG_RISCV_M_MODE 14 static struct htif_console_data console_data __nex_bss; 15 console_init(void)16void console_init(void) 17 { 18 #ifdef HTIF_BASE 19 htif_console_init(&console_data, HTIF_BASE); 20 register_serial_console(&console_data.chip); 21 #endif /*HTIF_BASE*/ 22 } 23 #endif /*CFG_RISCV_M_MODE*/ 24 tee_otp_get_hw_unique_key(struct tee_hw_unique_key * hwkey)25TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) 26 { 27 memset(&hwkey->data[0], 0, sizeof(hwkey->data)); 28 return TEE_SUCCESS; 29 } 30