From 52896c6c33250036928406d9dc38aa2ce1906b05 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 22 Nov 2016 11:43:58 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/17680 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/include/spi-generic.h | 4 ---- src/include/spi_flash.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/spi-generic.h b/src/include/spi-generic.h index e57f56d88c..347ec3c202 100644 --- a/src/include/spi-generic.h +++ b/src/include/spi-generic.h @@ -20,10 +20,6 @@ /* Controller-specific definitions: */ -/* SPI opcodes */ -#define SPI_OPCODE_WREN 0x06 -#define SPI_OPCODE_FAST_READ 0x0b - /*----------------------------------------------------------------------- * Representation of a SPI slave, i.e. what we're communicating with. * diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h index 70eef8e325..8fec4849c7 100644 --- a/src/include/spi_flash.h +++ b/src/include/spi_flash.h @@ -19,6 +19,10 @@ #include #include +/* SPI Flash opcodes */ +#define SPI_OPCODE_WREN 0x06 +#define SPI_OPCODE_FAST_READ 0x0b + struct spi_flash { struct spi_slave *spi; const char *name; -- cgit v1.2.3