diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2017-12-06 10:53:41 +0800 |
---|---|---|
committer | Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> | 2017-12-13 00:36:00 +0100 |
commit | 8dee1d971af9af2f7b5f54c2eac4ebd04c5c237c (patch) | |
tree | 72bdb63f2ed5a58b2e809f385c92b1b61edaefb1 /include/linux/mtd | |
parent | 2666067fdba26a0a87cf50bb38f5a73aabd0f517 (diff) | |
download | linux-stable-8dee1d971af9af2f7b5f54c2eac4ebd04c5c237c.tar.gz linux-stable-8dee1d971af9af2f7b5f54c2eac4ebd04c5c237c.tar.bz2 linux-stable-8dee1d971af9af2f7b5f54c2eac4ebd04c5c237c.zip |
mtd: spi-nor: add an API to restore the status of SPI flash chip
Add this API to restore the status of SPI flash chip to the default
such as addressing mode, whenever detach the driver from device or
reboot the system.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/spi-nor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index c0836cca5280..de36969eb359 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -403,4 +403,10 @@ struct spi_nor_hwcaps { int spi_nor_scan(struct spi_nor *nor, const char *name, const struct spi_nor_hwcaps *hwcaps); +/** + * spi_nor_restore_addr_mode() - restore the status of SPI NOR + * @nor: the spi_nor structure + */ +void spi_nor_restore(struct spi_nor *nor); + #endif |