mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
4BA: Add spi_exit_4ba function to switch SPI flash to 3-byte addressing
Change-Id: I553e7fb5028f35e14a3a81b3fa8903c1b321a223 Signed-off-by: Ed Swierk <eswierk@skyportsystems.com> Reviewed-on: https://review.coreboot.org/20509 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
4
spi4ba.h
4
spi4ba.h
@ -80,6 +80,10 @@
|
||||
int spi_enter_4ba_b7(struct flashctx *flash);
|
||||
int spi_enter_4ba_b7_we(struct flashctx *flash);
|
||||
|
||||
/* exit 4-bytes addressing mode */
|
||||
int spi_exit_4ba_e9(struct flashctx *flash);
|
||||
int spi_exit_4ba_e9_we(struct flashctx *flash);
|
||||
|
||||
/* read/write flash bytes in 4-bytes addressing mode */
|
||||
int spi_byte_program_4ba(struct flashctx *flash, unsigned int addr, uint8_t databyte);
|
||||
int spi_nbyte_program_4ba(struct flashctx *flash, unsigned int addr, const uint8_t *bytes, unsigned int len);
|
||||
|
Reference in New Issue
Block a user