Home | History | Annotate | Download | only in spi

Lines Matching refs:flash

3  * SPI flash internal definitions
15 /* Dual SPI flash memories - see SPI_COMM_DUAL_... */
82 /* Flash timeout values */
105 int sst_write_wp(struct spi_flash *flash, u32 offset, size_t len,
107 int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len,
156 * for flash array reads, etc.
163 * data. Used for programming the flash array, etc.
169 /* Flash erase(sectors) operation, support all possible erase commands */
170 int spi_flash_cmd_erase_ops(struct spi_flash *flash, u32 offset, size_t len);
172 /* Lock stmicro spi flash region */
173 int stm_lock(struct spi_flash *flash, u32 ofs, size_t len);
175 /* Unlock stmicro spi flash region */
176 int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len);
178 /* Check if a stmicro spi flash region is completely locked */
179 int stm_is_locked(struct spi_flash *flash, u32 ofs, size_t len);
181 /* Enable writing on the SPI flash */
182 static inline int spi_flash_cmd_write_enable(struct spi_flash *flash)
184 return spi_flash_cmd(flash->spi, CMD_WRITE_ENABLE, NULL, 0);
187 /* Disable writing on the SPI flash */
188 static inline int spi_flash_cmd_write_disable(struct spi_flash *flash)
190 return spi_flash_cmd(flash->spi, CMD_WRITE_DISABLE, NULL, 0);
201 int spi_flash_write_common(struct spi_flash *flash, const u8 *cmd,
205 * Flash write operation, support all possible write commands.
209 int spi_flash_cmd_write_ops(struct spi_flash *flash, u32 offset,
216 int spi_flash_read_common(struct spi_flash *flash, const u8 *cmd,
219 /* Flash read operation, support all possible read commands */
220 int spi_flash_cmd_read_ops(struct spi_flash *flash, u32 offset,
224 int spi_flash_mtd_register(struct spi_flash *flash);
229 * spi_flash_scan - scan the SPI FLASH
230 * @flash: the spi flash structure
232 * The drivers can use this fuction to scan the SPI FLASH.
238 int spi_flash_scan(struct spi_flash *flash);