summaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorJason Wang <Qingpei.Wang@amd.com>2008-11-28 21:36:51 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-11-28 21:36:51 +0000
commit269eeed6e72b9c22c2699897b80533e69d803ac9 (patch)
treeb1e437eb9e184676bc4ca62472bfb103ca4d2196 /spi.h
parent91c19f8a021338af955c186ad3af33a4af3e56c5 (diff)
downloadflashrom-269eeed6e72b9c22c2699897b80533e69d803ac9.zip
flashrom-269eeed6e72b9c22c2699897b80533e69d803ac9.tar.gz
Add support for the AMD/ATI SB600 southbridge SPI functionality
This has been tested by Uwe Hermann on an RS690/SB600 board. Reviewed-by: Joe Bao <zheng.bao@amd.com> Corresponding to flashrom svn r351 and coreboot v2 svn r3779. Signed-off-by: Jason Wang <Qingpei.Wang@amd.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/spi.h b/spi.h
index c096dce..25ce297 100644
--- a/spi.h
+++ b/spi.h
@@ -80,6 +80,11 @@
#define JEDEC_RDSR_INSIZE 0x01
#define JEDEC_RDSR_BIT_WIP (0x01 << 0)
+/* Write Status Enable */
+#define JEDEC_EWSR 0x50
+#define JEDEC_EWSR_OUTSIZE 0x01
+#define JEDEC_EWSR_INSIZE 0x00
+
/* Write Status Register */
#define JEDEC_WRSR 0x01
#define JEDEC_WRSR_OUTSIZE 0x02
OpenPOWER on IntegriCloud