blob: bbaaa5088db457cf54c86d7537bfe82b0110b51d [file] [log] [blame]
Sheetal Tigadoli6c4db5d2020-01-06 00:08:24 +05301/*
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
12int spi_flash_probe(struct spi_flash *flash);
13int spi_flash_erase(struct spi_flash *flash, uint32_t offset, uint32_t len);
14int spi_flash_write(struct spi_flash *flash, uint32_t offset,
15 uint32_t len, void *buf);
16int spi_flash_read(struct spi_flash *flash, uint32_t offset,
17 uint32_t len, void *data);
18#endif /* _SPI_FLASH_H_ */