Lines Matching +full:otp +full:- +full:2
1 /* SPDX-License-Identifier: GPL-2.0 */
104 SPI_MEM_OP_DATA_IN(2, NULL, 0))
110 SPI_MEM_OP_DATA_OUT(2, NULL, 0))
128 SNOR_F_BROKEN_RESET = BIT(2),
202 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
204 * JEDEC JESD216B imposes erase sizes to be a power of 2.
205 * @size_shift: @size is a power of 2, the shift is stored in
223 * struct spi_nor_erase_command - Used for non-uniform erases
226 * are run-length encoded.
241 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase region
257 #define SNOR_ERASE_TYPE_MASK GENMASK_ULL(SNOR_ERASE_TYPE_MAX - 1, 0)
263 #define SNOR_ERASE_FLAGS_MASK GENMASK_ULL(SNOR_ERASE_FLAGS_MAX - 1, 0)
266 * struct spi_nor_erase_map - Structure to describe the SPI NOR erase map
270 * @uniform_region: a pre-allocated erase region for SPI NOR with a uniform
278 * uniform and non-uniform SPI NOR flash memories if they
290 * struct spi_nor_locking_ops - SPI NOR locking methods
302 * struct spi_nor_otp_organization - Structure to describe the SPI NOR OTP regions
303 * @len: size of one OTP region in bytes.
304 * @base: start address of the OTP area.
305 * @offset: offset between consecutive OTP regions if there are more
307 * @n_regions: number of individual OTP regions.
317 * struct spi_nor_otp_ops - SPI NOR OTP methods
318 * @read: read from the SPI NOR OTP area.
319 * @write: write to the SPI NOR OTP area.
320 * @lock: lock an OTP region.
321 * @erase: erase an OTP region.
322 * @is_locked: check if an OTP region of the SPI NOR is locked.
334 * struct spi_nor_otp - SPI NOR OTP grouping structure
335 * @org: OTP region organization
336 * @ops: OTP access ops
344 * struct spi_nor_flash_parameter - SPI NOR flash parameters and settings.
352 * ECC unit size for ECC-ed flashes.
375 * @otp: SPI NOR OTP info.
381 * not a power-of-2.
411 struct spi_nor_otp otp; member
425 * struct spi_nor_fixups - SPI NOR fixup hooks
452 * struct spi_nor_id - SPI NOR flash ID.
465 * struct flash_info - SPI NOR flash_info entry.
484 * SPI_NOR_4BIT_BP: flash SR has 4 bit fields (BP0-3) for block
489 * Usually these will power-up in a write-protected
521 * @otp_org: flash's OTP organization.
536 #define SPI_NOR_TB_SR_BIT6 BIT(2)
560 const struct spi_nor_otp_organization *otp; member
579 * struct spi_nor_manufacturer - SPI NOR manufacturer object
593 * struct sfdp - SFDP data
706 * spi_nor_needs_sfdp() - returns true if SFDP parsing is used for this flash.
715 * non-legacy flash entries in flash_info will have a size of zero iff in spi_nor_needs_sfdp()
718 return !nor->info->size; in spi_nor_needs_sfdp()