summaryrefslogtreecommitdiffstats
path: root/src/include/spi_flash.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2016-11-22 11:43:58 -0800
committerFurquan Shaikh <furquan@google.com>2016-12-04 03:03:58 +0100
commit52896c6c33250036928406d9dc38aa2ce1906b05 (patch)
tree3030f7762c76a2e6cacfa903282e771673dba0bf /src/include/spi_flash.h
parent1d56eef728a9d9266b2dde9174520900ee87f9f2 (diff)
downloadcoreboot-52896c6c33250036928406d9dc38aa2ce1906b05.tar.gz
coreboot-52896c6c33250036928406d9dc38aa2ce1906b05.tar.bz2
coreboot-52896c6c33250036928406d9dc38aa2ce1906b05.zip
spi_flash: Move spi flash opcodes to spi_flash.h
BUG=chrome-os-partner:59832 BRANCH=None TEST=Compiles successfully Change-Id: I3b6656923bb312de470da43a23f66f350e1cebc7 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17680 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/include/spi_flash.h')
-rw-r--r--src/include/spi_flash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h
index 70eef8e325e8..8fec4849c767 100644
--- a/src/include/spi_flash.h
+++ b/src/include/spi_flash.h
@@ -19,6 +19,10 @@
#include <stddef.h>
#include <boot/coreboot_tables.h>
+/* SPI Flash opcodes */
+#define SPI_OPCODE_WREN 0x06
+#define SPI_OPCODE_FAST_READ 0x0b
+
struct spi_flash {
struct spi_slave *spi;
const char *name;