Searched hist:c6d2483af6fb4710cda41670255f07af5eb2baa3 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_bsec.c | c6d2483af6fb4710cda41670255f07af5eb2baa3 Mon Dec 12 13:35:54 UTC 2022 Gatien Chevallier <gatien.chevallier@foss.st.com> drivers: stm32_bsec: correct address in lock support for any upper_base value
The address computed in stm32_bsec_permanent_lock_otp (with hardcoded +2 offset) only supports OTP upper base offset 32. This patch corrects to handle any value of OTP upper base.
This patch corrects to handle any value of OTP upper base. and simplify this part by using division clearer than mask in this context.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|