mtd: spi-nor-core: Introduce flash-specific fixup hooks
[platform/kernel/u-boot.git] / include / linux / mtd / spi-nor.h
index 47a2ece..b2e9e08 100644 (file)
@@ -416,6 +416,7 @@ struct spi_flash {
  * @write_proto:       the SPI protocol for write operations
  * @reg_proto          the SPI protocol for read_reg/write_reg/erase operations
  * @cmd_buf:           used by the write_reg
+ * @fixups:            flash-specific fixup hooks.
  * @prepare:           [OPTIONAL] do some preparations for the
  *                     read/write/erase/lock/unlock operations
  * @unprepare:         [OPTIONAL] do some post work after the
@@ -457,6 +458,7 @@ struct spi_nor {
        bool                    sst_write_second;
        u32                     flags;
        u8                      cmd_buf[SPI_NOR_MAX_CMD_SIZE];
+       struct spi_nor_fixups   *fixups;
 
        int (*setup)(struct spi_nor *nor, const struct flash_info *info,
                     const struct spi_nor_flash_parameter *params,