Lines Matching +full:otp +full:- +full:1
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 */
93 * bit 1 / 17 => nsaid1 read/write Enable in security_init()
99 /* bit 0 / 1 => Region Enable for filter 0/1 */ in security_init()
100 writel(BIT(0) | BIT(1) | BIT(30) | BIT(31), TZC_REGION_ATTRIBUTE0); in security_init()
102 /* Enable Filter 0 and 1 */ in security_init()
103 setbits_le32(TZC_GATE_KEEPER, BIT(0) | BIT(1)); 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()