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.
22 * LPC18xx OTP memory contains 4 banks with 4 32-bit words. Bank 0 starts
44 struct lpc18xx_otp *otp = context; in lpc18xx_otp_read() local
54 *buf++ = readl(otp->base + i * LPC18XX_OTP_WORD_SIZE); in lpc18xx_otp_read()
60 .name = "lpc18xx-otp",
70 struct lpc18xx_otp *otp; in lpc18xx_otp_probe() local
73 otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); in lpc18xx_otp_probe()
74 if (!otp) in lpc18xx_otp_probe()
78 otp->base = devm_ioremap_resource(&pdev->dev, res); in lpc18xx_otp_probe()
79 if (IS_ERR(otp->base)) in lpc18xx_otp_probe()
80 return PTR_ERR(otp->base); in lpc18xx_otp_probe()
84 lpc18xx_otp_nvmem_config.priv = otp; in lpc18xx_otp_probe()
92 { .compatible = "nxp,lpc1850-otp" },
107 MODULE_DESCRIPTION("NXP LPC18xx OTP NVMEM driver");