Searched refs:otp (Results 1 – 15 of 15) sorted by relevance
/trusted-firmware-a-3.6.0-3.5.0/drivers/st/bsec/ |
D | bsec2.c | 72 static void enable_non_secure_access(uint32_t otp) in enable_non_secure_access() argument 74 otp_nsec_access[otp / __WORD_BIT] |= BIT(otp % __WORD_BIT); in enable_non_secure_access() 76 if (bsec_shadow_register(otp) != BSEC_OK) { in enable_non_secure_access() 81 static bool non_secure_can_access(uint32_t otp) in non_secure_can_access() argument 83 return (otp_nsec_access[otp / __WORD_BIT] & in non_secure_can_access() 84 BIT(otp % __WORD_BIT)) != 0U; in non_secure_can_access() 93 uint32_t otp; in bsec_dt_otp_nsec_access() local 108 otp = offset / sizeof(uint32_t); in bsec_dt_otp_nsec_access() 110 if (otp < STM32MP1_UPPER_OTP_START) { in bsec_dt_otp_nsec_access() 120 otp = STM32MP1_UPPER_OTP_START; in bsec_dt_otp_nsec_access() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/include/drivers/st/ |
D | bsec.h | 99 uint32_t bsec_shadow_register(uint32_t otp); 100 uint32_t bsec_read_otp(uint32_t *val, uint32_t otp); 101 uint32_t bsec_write_otp(uint32_t val, uint32_t otp); 102 uint32_t bsec_program_otp(uint32_t val, uint32_t otp); 103 uint32_t bsec_permanent_lock_otp(uint32_t otp); 117 uint32_t bsec_set_sr_lock(uint32_t otp); 118 uint32_t bsec_read_sr_lock(uint32_t otp, bool *value); 119 uint32_t bsec_set_sw_lock(uint32_t otp); 120 uint32_t bsec_read_sw_lock(uint32_t otp, bool *value); 121 uint32_t bsec_set_sp_lock(uint32_t otp); [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/st/common/ |
D | stm32mp_dt.c | 323 int dt_find_otp_name(const char *name, uint32_t *otp, uint32_t *otp_len) in dt_find_otp_name() argument 329 if ((name == NULL) || (otp == NULL)) { in dt_find_otp_name() 355 if (otp != NULL) { in dt_find_otp_name() 356 *otp = fdt32_to_cpu(*cuint) / sizeof(uint32_t); in dt_find_otp_name()
|
/trusted-firmware-a-3.6.0-3.5.0/plat/st/stm32mp1/ |
D | stm32mp1_private.c | 632 uint32_t otp; in stm32_iwdg_shadow_update() local 635 if (stm32_get_otp_index(HW2_OTP, &otp, NULL) != 0) { in stm32_iwdg_shadow_update() 651 result = bsec_write_otp(otp_value, otp); in stm32_iwdg_shadow_update() 657 if ((bsec_set_sr_lock(otp) != BSEC_OK) || in stm32_iwdg_shadow_update() 658 (bsec_set_sw_lock(otp) != BSEC_OK)) { in stm32_iwdg_shadow_update()
|
D | stm32mp1_usb_dfu.c | 183 uint32_t otp; in update_serial_num_string() local 187 if (stm32_get_otp_index(UID_OTP, &otp, &len) != 0) { in update_serial_num_string() 198 if (bsec_shadow_read_otp(&deviceserial[i], i + otp) != in update_serial_num_string()
|
D | bl2_plat_setup.c | 173 uint32_t otp; in update_monotonic_counter() local 179 if (stm32_get_otp_index(MONOTONIC_OTP, &otp, NULL) != 0) { in update_monotonic_counter() 183 if (stm32_get_otp_value_from_idx(otp, &version) != 0) { in update_monotonic_counter() 193 result = bsec_program_otp(version, otp); in update_monotonic_counter()
|
/trusted-firmware-a-3.6.0-3.5.0/plat/st/common/include/ |
D | stm32mp_dt.h | 43 int dt_find_otp_name(const char *name, uint32_t *otp, uint32_t *otp_len);
|
/trusted-firmware-a-3.6.0-3.5.0/fdts/ |
D | stm32mp15xx-osd32.dtsi | 162 st,non-secure-otp;
|
D | stm32mp157c-ed1.dts | 36 st,non-secure-otp;
|
D | stm32mp157c-odyssey-som.dtsi | 33 st,non-secure-otp;
|
D | stm32mp15xx-dkx.dtsi | 28 st,non-secure-otp;
|
D | stm32mp15xx-dhcom-som.dtsi | 22 st,non-secure-otp;
|
D | stm32mp135f-dk.dts | 55 st,non-secure-otp;
|
D | stm32mp131.dtsi | 456 st,non-secure-otp;
|
D | stm32mp151.dtsi | 495 st,non-secure-otp;
|