Lines Matching +full:non +full:- +full:secure +full:- +full:otp
1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
48 * - boot instance = bit 31:16
49 * - boot device = bit 15:0
57 /* BSEC OTP index */
82 /* allow non secure access in Write/Read for all peripheral */ in security_init()
85 /* Open SYSRAM for no secure access */ in security_init()
98 /* bit 30 / 31 => Secure Global Enable : write/read */ in security_init()
125 /* Freeze IWDG2 if Cortex-A7 is in debug mode */ in dbgmcu_init()
178 gd->flags |= GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE; in arch_cpu_init()
190 /* Enable D-cache. I-cache is already enabled in start.S */ in enable_caches()
249 int instance = (boot_mode & TAMP_BOOT_INSTANCE_MASK) - 1; in setup_boot_mode()
286 * (silently) from the value in the OTP.
293 u32 otp[2]; in setup_mac_address() local
308 otp, sizeof(otp)); in setup_mac_address()
313 enetaddr[i] = ((uint8_t *)&otp)[i]; in setup_mac_address()
316 pr_err("invalid MAC address in OTP %pM", enetaddr); in setup_mac_address()
317 return -EINVAL; in setup_mac_address()
319 pr_debug("OTP MAC address = %pM\n", enetaddr); in setup_mac_address()
322 pr_err("Failed to set mac address %pM from OTP: %d\n", in setup_mac_address()
332 u32 otp[3] = {0, 0, 0 }; in setup_serial_number() local
346 otp, sizeof(otp)); in setup_serial_number()
350 sprintf(serial_string, "%08x%08x%08x", otp[0], otp[1], otp[2]); in setup_serial_number()