[U-Boot] [PATCH 1/5] mtd: spi: Define CLSR command

Ahmed Samir Khalil engkhalil86 at gmail.com
Sun Oct 1 01:20:40 UTC 2017


Define clear status register command to be used
in error handling.

Signed-off-by: Ahmed S. Khalil <engkhalil86 at gmail.com>
---
 drivers/mtd/spi/sf_internal.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h
index 839cdbe..42f2b20 100644
--- a/drivers/mtd/spi/sf_internal.h
+++ b/drivers/mtd/spi/sf_internal.h
@@ -71,6 +71,9 @@ enum spi_nor_option_flags {
 # define CMD_EXTNADDR_RDEAR		0xC8
 #endif
 
+/* Register access commands */
+#define CMD_CLEAR_STATUS		0x30
+
 /* Common status */
 #define STATUS_WIP			BIT(0)
 #define STATUS_QEB_WINSPAN		BIT(1)
-- 
2.7.4



More information about the U-Boot mailing list