1 /* 2 * Copyright (c) 2019-2020, Broadcom 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef SPI_FLASH_H 8 #define SPI_FLASH_H 9 10 #include <sf.h> 11 12 int spi_flash_probe(struct spi_flash *flash); 13 int spi_flash_erase(struct spi_flash *flash, uint32_t offset, uint32_t len); 14 int spi_flash_write(struct spi_flash *flash, uint32_t offset, 15 uint32_t len, void *buf); 16 int spi_flash_read(struct spi_flash *flash, uint32_t offset, 17 uint32_t len, void *data); 18 #endif /* _SPI_FLASH_H_ */ 19