linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] nvmem: imx-ocotp: Set type to OTP
@ 2019-07-09 18:30 Trent Piepho
  2019-07-09 18:30 ` [PATCH 2/2] nvmem: imx-ocotp: Support multiple word writes Trent Piepho
  0 siblings, 1 reply; 3+ messages in thread
From: Trent Piepho @ 2019-07-09 18:30 UTC (permalink / raw)
  To: linux-arm-kernel@lists.infradead.org
  Cc: Fabio Estevam, Sascha Hauer, Srinivas Kandagatla, NXP Linux Team,
	Shawn Guo, Trent Piepho

The nvmem subsystem supports a type, like battery backed nvram, eeprom,
or otp.  This device is otp.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
---
 drivers/nvmem/imx-ocotp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index 42d4451e7d67..d45e71e9b73a 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -414,6 +414,7 @@ static int imx_ocotp_write(void *context, unsigned int offset, void *val,
 static struct nvmem_config imx_ocotp_nvmem_config = {
 	.name = "imx-ocotp",
 	.read_only = false,
+	.type = NVMEM_TYPE_OTP,
 	.word_size = 4,
 	.stride = 4,
 	.reg_read = imx_ocotp_read,
-- 
2.14.5




_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-06  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-09 18:30 [PATCH 1/2] nvmem: imx-ocotp: Set type to OTP Trent Piepho
2019-07-09 18:30 ` [PATCH 2/2] nvmem: imx-ocotp: Support multiple word writes Trent Piepho
2019-08-06  9:57   ` Srinivas Kandagatla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).