diff options
Diffstat (limited to 'src/drivers/spi/spi_flash.c')
-rw-r--r-- | src/drivers/spi/spi_flash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index 8213e852b..d40f72a85 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -234,6 +234,11 @@ out: return ret; } +int spi_flash_cmd_status(struct spi_flash *flash, u8 *reg) +{ + return spi_flash_cmd(flash->spi, flash->status_cmd, reg, sizeof(*reg)); +} + /* * The following table holds all device probe functions * @@ -372,6 +377,7 @@ flash_detected: tseg_relocate((void **)&flash->read); tseg_relocate((void **)&flash->write); tseg_relocate((void **)&flash->erase); + tseg_relocate((void **)&flash->status); tseg_relocate((void **)&flash->name); #endif |