Declare special commands to support the Atmel AT25F512A
Corresponding to flashrom svn r353 and coreboot v2 svn r3781.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/spi.h b/spi.h
index 25ce297..d3d9805 100644
--- a/spi.h
+++ b/spi.h
@@ -29,6 +29,11 @@
#define JEDEC_RDID_OUTSIZE 0x01
#define JEDEC_RDID_INSIZE 0x03
+/* AT25F512A has bit 3 as don't care bit in commands */
+#define AT25F512A_RDID 0x15
+#define AT25F512A_RDID_OUTSIZE 0x01
+#define AT25F512A_RDID_INSIZE 0x02
+
/* Read Electronic Manufacturer Signature */
#define JEDEC_REMS 0x90
#define JEDEC_REMS_OUTSIZE 0x04