mirror of
https://review.coreboot.org/flashrom.git
synced 2025-10-16 23:31:53 +02:00
spi.h: Move SPI declarations from chipdrivers.h to spi.h
The corresponding functions implementations are already in spi.c, so the declarations naturally can be in spi.h Change-Id: I30dcd606b96e651470047d91bc460ac6383be8e8 Signed-off-by: Antonio Vázquez <antoniovazquezblanco@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/89271 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
5a4ea36b12
commit
5f37cfcd31
@@ -22,12 +22,6 @@
|
|||||||
|
|
||||||
#include "flash.h" /* for chipaddr and flashctx */
|
#include "flash.h" /* for chipaddr and flashctx */
|
||||||
|
|
||||||
/* spi.c */
|
|
||||||
int spi_aai_write(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
|
|
||||||
int spi_chip_write_256(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
|
|
||||||
int spi_chip_read(struct flashctx *flash, uint8_t *buf, unsigned int start, int unsigned len);
|
|
||||||
bool spi_probe_opcode(const struct flashctx *flash, uint8_t opcode);
|
|
||||||
|
|
||||||
/* spi25.c */
|
/* spi25.c */
|
||||||
int probe_spi_rdid(struct flashctx *flash);
|
int probe_spi_rdid(struct flashctx *flash);
|
||||||
int probe_spi_rdid4(struct flashctx *flash);
|
int probe_spi_rdid4(struct flashctx *flash);
|
||||||
|
@@ -249,4 +249,9 @@ int spi_send_multicommand(const struct flashctx *flash, struct spi_command *cmds
|
|||||||
|
|
||||||
void clear_spi_id_cache(void);
|
void clear_spi_id_cache(void);
|
||||||
|
|
||||||
|
int spi_aai_write(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
|
||||||
|
int spi_chip_write_256(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
|
||||||
|
int spi_chip_read(struct flashctx *flash, uint8_t *buf, unsigned int start, int unsigned len);
|
||||||
|
bool spi_probe_opcode(const struct flashctx *flash, uint8_t opcode);
|
||||||
|
|
||||||
#endif /* !__SPI_H__ */
|
#endif /* !__SPI_H__ */
|
||||||
|
Reference in New Issue
Block a user