summaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-06 17:03:40 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-05-06 17:03:40 +0000
commit5e695ab4d7555952f0b020f235d868955251e3ae (patch)
tree2fbeddbc906b96de794bd02794d73360124277d6 /spi.h
parentdc704edad44995845727a231e3f1d6dda74708fd (diff)
downloadflashrom-5e695ab4d7555952f0b020f235d868955251e3ae.tar.gz
flashrom-5e695ab4d7555952f0b020f235d868955251e3ae.tar.bz2
flashrom-5e695ab4d7555952f0b020f235d868955251e3ae.zip
dummyflasher: Add a status register to SPI chips
Corresponding to flashrom svn r1532. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/spi.h b/spi.h
index 5f07eae63..a57f1b67c 100644
--- a/spi.h
+++ b/spi.h
@@ -95,7 +95,11 @@
#define JEDEC_RDSR 0x05
#define JEDEC_RDSR_OUTSIZE 0x01
#define JEDEC_RDSR_INSIZE 0x01
-#define JEDEC_RDSR_BIT_WIP (0x01 << 0)
+
+/* Status Register Bits */
+#define SPI_SR_WIP (0x01 << 0)
+#define SPI_SR_WEL (0x01 << 1)
+#define SPI_SR_AAI (0x01 << 6)
/* Write Status Enable */
#define JEDEC_EWSR 0x50