Home
last modified time | relevance | path

Searched refs:otp (Results 1 – 15 of 15) sorted by relevance

/arm-trusted-firmware-2.8.0/drivers/st/bsec/
A Dbsec2.c74 otp_nsec_access[otp / __WORD_BIT] |= BIT(otp % __WORD_BIT); in enable_non_secure_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()
120 otp = STM32MP1_UPPER_OTP_START; in bsec_dt_otp_nsec_access()
145 for (i = otp; i < (otp + size); i++) { in bsec_dt_otp_nsec_access()
345 otp); in bsec_shadow_register()
391 if (otp > STM32MP1_OTP_MAX_ID) { in bsec_read_otp()
396 (otp * sizeof(uint32_t))); in bsec_read_otp()
424 otp); in bsec_write_otp()
[all …]
/arm-trusted-firmware-2.8.0/include/drivers/st/
A Dbsec.h99 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 …]
/arm-trusted-firmware-2.8.0/plat/st/common/
A Dstm32mp_dt.c326 int dt_find_otp_name(const char *name, uint32_t *otp, uint32_t *otp_len) in dt_find_otp_name() argument
332 if ((name == NULL) || (otp == NULL)) { in dt_find_otp_name()
358 if (otp != NULL) { in dt_find_otp_name()
359 *otp = fdt32_to_cpu(*cuint) / sizeof(uint32_t); in dt_find_otp_name()
/arm-trusted-firmware-2.8.0/plat/st/stm32mp1/
A Dstm32mp1_usb_dfu.c183 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()
A Dstm32mp1_private.c666 uint32_t otp; in stm32_iwdg_shadow_update() local
669 if (stm32_get_otp_index(HW2_OTP, &otp, NULL) != 0) { in stm32_iwdg_shadow_update()
685 result = bsec_write_otp(otp_value, otp); in stm32_iwdg_shadow_update()
691 if ((bsec_set_sr_lock(otp) != BSEC_OK) || in stm32_iwdg_shadow_update()
692 (bsec_set_sw_lock(otp) != BSEC_OK)) { in stm32_iwdg_shadow_update()
A Dbl2_plat_setup.c173 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()
/arm-trusted-firmware-2.8.0/plat/st/common/include/
A Dstm32mp_dt.h43 int dt_find_otp_name(const char *name, uint32_t *otp, uint32_t *otp_len);
/arm-trusted-firmware-2.8.0/fdts/
A Dstm32mp15xx-osd32.dtsi162 st,non-secure-otp;
A Dstm32mp135f-dk.dts55 st,non-secure-otp;
A Dstm32mp157c-ed1.dts36 st,non-secure-otp;
A Dstm32mp157c-odyssey-som.dtsi33 st,non-secure-otp;
A Dstm32mp15xx-dhcom-som.dtsi22 st,non-secure-otp;
A Dstm32mp15xx-dkx.dtsi28 st,non-secure-otp;
A Dstm32mp131.dtsi456 st,non-secure-otp;
A Dstm32mp151.dtsi495 st,non-secure-otp;

Completed in 15 milliseconds