Home
last modified time | relevance | path

Searched hist:"93114 f2e539bd61019ee67875d958598184e7377" (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/drivers/
H A Dstm32_bsec.h93114f2e539bd61019ee67875d958598184e7377 Wed Dec 07 17:41:28 UTC 2022 Gatien Chevallier <gatien.chevallier@foss.st.com> drivers: stm32_bsec: support NVMEM cell description in device-tree

Support the nvmem cells description in device tree and
add the platform helper function stm32_bsec_find_otp_in_nvmem_layout()
that allows drivers to find an OTP location (BSEC word number and bit
size) from the OTP string identifier, name of the cell in device tree.

The bsec driver directly reads the nvmem cells sub node of bsec device.

This allow to remove the hardcoded OTP index in platform and is aligned
with linux kernel binding.

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>
/optee_os/core/drivers/
H A Dstm32_bsec.c93114f2e539bd61019ee67875d958598184e7377 Wed Dec 07 17:41:28 UTC 2022 Gatien Chevallier <gatien.chevallier@foss.st.com> drivers: stm32_bsec: support NVMEM cell description in device-tree

Support the nvmem cells description in device tree and
add the platform helper function stm32_bsec_find_otp_in_nvmem_layout()
that allows drivers to find an OTP location (BSEC word number and bit
size) from the OTP string identifier, name of the cell in device tree.

The bsec driver directly reads the nvmem cells sub node of bsec device.

This allow to remove the hardcoded OTP index in platform and is aligned
with linux kernel binding.

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>