Home
last modified time | relevance | path

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

/trusted-firmware-a-3.6.0-3.5.0/drivers/st/bsec/
Dbsec2.c72 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/
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 …]
/trusted-firmware-a-3.6.0-3.5.0/plat/st/common/
Dstm32mp_dt.c323 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/
Dstm32mp1_private.c632 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()
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()
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()
/trusted-firmware-a-3.6.0-3.5.0/plat/st/common/include/
Dstm32mp_dt.h43 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/
Dstm32mp15xx-osd32.dtsi162 st,non-secure-otp;
Dstm32mp157c-ed1.dts36 st,non-secure-otp;
Dstm32mp157c-odyssey-som.dtsi33 st,non-secure-otp;
Dstm32mp15xx-dkx.dtsi28 st,non-secure-otp;
Dstm32mp15xx-dhcom-som.dtsi22 st,non-secure-otp;
Dstm32mp135f-dk.dts55 st,non-secure-otp;
Dstm32mp131.dtsi456 st,non-secure-otp;
Dstm32mp151.dtsi495 st,non-secure-otp;