Home
last modified time | relevance | path

Searched refs:otp_value (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/plat/st/stm32mp1/
H A Dstm32mp1_private.c608 uint32_t otp_value; in stm32_iwdg_get_otp_config() local
610 if (stm32_get_otp_value(HW2_OTP, &otp_value) != 0) { in stm32_iwdg_get_otp_config()
614 if ((otp_value & BIT(iwdg_inst + HW2_OTP_IWDG_HW_POS)) != 0U) { in stm32_iwdg_get_otp_config()
618 if ((otp_value & BIT(iwdg_inst + HW2_OTP_IWDG_FZ_STOP_POS)) != 0U) { in stm32_iwdg_get_otp_config()
622 if ((otp_value & BIT(iwdg_inst + HW2_OTP_IWDG_FZ_STANDBY_POS)) != 0U) { in stm32_iwdg_get_otp_config()
632 uint32_t otp_value; in stm32_iwdg_shadow_update() local
640 if (stm32_get_otp_value(HW2_OTP, &otp_value) != 0) { in stm32_iwdg_shadow_update()
645 otp_value |= BIT(iwdg_inst + HW2_OTP_IWDG_FZ_STOP_POS); in stm32_iwdg_shadow_update()
649 otp_value |= BIT(iwdg_inst + HW2_OTP_IWDG_FZ_STANDBY_POS); in stm32_iwdg_shadow_update()
652 result = bsec_write_otp(otp_value, otp); in stm32_iwdg_shadow_update()
H A Dstm32mp1_syscfg.c266 uint32_t otp_value; in stm32mp_syscfg_set_hslv() local
285 if (stm32_get_otp_value(HW2_OTP, &otp_value) != 0) { in stm32mp_syscfg_set_hslv()
289 product_below_2v5 = (otp_value & HW2_OTP_PRODUCT_BELOW_2V5) != 0U; in stm32mp_syscfg_set_hslv()