diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-05-06 17:03:40 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-05-06 17:03:40 +0000 |
commit | 5e695ab4d7555952f0b020f235d868955251e3ae (patch) | |
tree | 2fbeddbc906b96de794bd02794d73360124277d6 /spi.h | |
parent | dc704edad44995845727a231e3f1d6dda74708fd (diff) | |
download | flashrom-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |