misc: Add RZG2L OTP support
PATCH v2 1/1 misc: Add RZG2L OTP support
Add OTP support through the fuse command. Fusing is directly performed by U-Boot, which means that the trusted-firmware must allow the non-secure world to perform fusing operations.
Signed-off-by Mathieu Othacehe <[email protected]>
---
Changelog
v2: Depend on CMD_FUSE. Use readl_poll_sleep_timeout and clrbits_le32 functions.
drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/rzg2l_otp.c | 221 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 229 insertions(+) create mode 100644 drivers/misc/rzg2l_otp.c
drivers/misc/Kconfig +7 -0
@@ -132,6 +132,13 @@ config SPL_ROCKCHIP_IODOMAIN for the IO-domain setting of the SoC to match the voltage supplied by the regulators. +config RZG2L_OTP + bool "Renesas RZ/G2L OTP support" + depends on MISC && CMD_FUSE + help + Enable support for the OTP controller on + Renesas RZ/G2L SoCs. + config SIFIVE_OTP bool "SiFive eMemory OTP driver" depends on MISC
drivers/misc/Makefile +1 -0
@@ -69,6 +69,7 @@ obj-$(CONFIG_QCOM_GENI) += qcom_geni.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_EFUSE) += rockchip-efuse.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_OTP) += rockchip-otp.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_IODOMAIN) += rockchip-io-domain.o +obj-$(CONFIG_RZG2L_OTP) += rzg2l_otp.o obj-$(CONFIG_SANDBOX) += syscon_sandbox.o misc_sandbox.o obj-$(CONFIG_SIFIVE_OTP) += sifive-otp.o obj-$(CONFIG_SMSC_LPC47M) += smsc_lpc47m.o
drivers/misc/rzg2l_otp.c new file +221 -0
221 lines not on this page · raw message
Signature · 1 line
2.52.0