Lines Matching full:otp

3  * OTP support for SPI NOR flashes
15 #define spi_nor_otp_region_len(nor) ((nor)->params->otp.org->len)
16 #define spi_nor_otp_n_regions(nor) ((nor)->params->otp.org->n_regions)
29 * 256). Thus one "security register" maps to one OTP region.
167 * spi_nor_otp_lock_sr2() - lock the OTP region
169 * @region: OTP region
171 * Lock the OTP region by writing the status register-2. This method is used on
199 * spi_nor_otp_is_locked_sr2() - get the OTP region lock status
201 * @region: OTP region
203 * Retrieve the OTP region lock bit by reading the status register-2. This
226 const struct spi_nor_otp_organization *org = nor->params->otp.org; in spi_nor_otp_region_start()
236 /* Translate the file offsets from and to OTP regions. */
251 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_info()
288 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_range_is_locked()
293 * If any of the affected OTP regions are locked the entire range is in spi_nor_mtd_otp_range_is_locked()
313 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_read_write()
345 * The OTP regions are mapped into a contiguous area starting in spi_nor_mtd_otp_read_write()
347 * file offsets to the address of an OTP region as used in the in spi_nor_mtd_otp_read_write()
354 * The size of a OTP region is expected to be a power of two, in spi_nor_mtd_otp_read_write()
360 /* don't access beyond one OTP region */ in spi_nor_mtd_otp_read_write()
399 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_erase()
405 /* OTP erase is optional */ in spi_nor_mtd_otp_erase()
452 const struct spi_nor_otp_ops *ops = nor->params->otp.ops; in spi_nor_mtd_otp_lock()
488 if (!nor->params->otp.ops) in spi_nor_set_mtd_otp_ops()
498 * different variants. One with a factory locked OTP area and one where in spi_nor_set_mtd_otp_ops()
499 * it is left to the user to write to it. The factory locked OTP is in spi_nor_set_mtd_otp_ops()