summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi/spi_flash_internal.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-04 23:18:17 -0500
committerMike Frysinger <vapier@gentoo.org>2012-03-04 23:18:17 -0500
commit41e1713425d9817fdbe4fc89ad11b8dc9c4fca30 (patch)
treecc284fbfb28cd5da90278a9af9849596cb82548e /drivers/mtd/spi/spi_flash_internal.h
parent7a6d2a7ec1afb53df8b78185fe77d66423c8dcea (diff)
downloadblackbird-obmc-uboot-41e1713425d9817fdbe4fc89ad11b8dc9c4fca30.tar.gz
blackbird-obmc-uboot-41e1713425d9817fdbe4fc89ad11b8dc9c4fca30.zip
sf: unify status register writing (and thus block unlocking)
The only two drivers to write the status register do it in the same way, so unify the implementations. This also makes the block unlock logic the same. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/spi_flash_internal.h')
-rw-r--r--drivers/mtd/spi/spi_flash_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash_internal.h b/drivers/mtd/spi/spi_flash_internal.h
index 3c6bccf0c8..141cfa8b26 100644
--- a/drivers/mtd/spi/spi_flash_internal.h
+++ b/drivers/mtd/spi/spi_flash_internal.h
@@ -74,6 +74,9 @@ static inline int spi_flash_cmd_write_disable(struct spi_flash *flash)
return spi_flash_cmd(flash->spi, CMD_WRITE_DISABLE, NULL, 0);
}
+/* Program the status register. */
+int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr);
+
/*
* Same as spi_flash_cmd_read() except it also claims/releases the SPI
* bus. Used as common part of the ->read() operation.
OpenPOWER on IntegriCloud