Lines Matching full:otp
3 * NXP LPC18xx/43xx OTP memory NVMEM driver
10 * TODO: add support for writing OTP register via API in boot ROM.
21 * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts
43 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local
53 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read()
59 .name = "lpc18xx-otp",
69 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local
71 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe()
72 if (!otp) in lpc18xx_otp_probe()
75 otp->base = devm_platform_ioremap_resource(pdev, 0); in lpc18xx_otp_probe()
76 if (IS_ERR(otp->base)) in lpc18xx_otp_probe()
77 return PTR_ERR(otp->base); in lpc18xx_otp_probe()
81 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
89 { .compatible = "nxp,lpc1850-otp" },
104 MODULE_DESCRIPTION("NXP LPC18xx OTP NVMEM driver");