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 static struct htif_console_data console_data __nex_bss; 14 15 void console_init(void) 16 { 17 #ifdef HTIF_BASE 18 htif_console_init(&console_data, HTIF_BASE); 19 register_serial_console(&console_data.chip); 20 #endif 21 } 22 23 TEE_Result tee_otp_get_hw_unique_key(struct tee_hw_unique_key *hwkey) 24 { 25 memset(&hwkey->data[0], 0, sizeof(hwkey->data)); 26 return TEE_SUCCESS; 27 } 28