spi: flash: wait for operations to complete

This commit is contained in:
S.J.R. van Schaik 2017-06-14 15:13:34 +02:00
parent 5bafd2ac8f
commit f20e7128eb
2 changed files with 23 additions and 0 deletions

View file

@ -4,6 +4,9 @@
#define SPI_FLASH_MFR_DEV_ID 0x90
#define SPI_FLASH_JEDEC_ID 0x9f
#define SPI_FLASH_READ_SR1 0x05
#define SPI_FLASH_SR1_BUSY BIT(0)
#define SPI_FLASH_READ 0x03
#define SPI_FLASH_PAGE_PROGRAM 0x02