diff options
author | Tom Rini <trini@ti.com> | 2013-06-13 15:18:35 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-06-13 15:18:35 -0400 |
commit | f0df254663d44f7fd4b714542bb4602626837465 (patch) | |
tree | 2b59e4c4caf22cbfe8d59e81306d97f71179b496 /include | |
parent | 41341221d12341a2ecfb280142d6478071738fc2 (diff) | |
parent | ea7fcc5aeb10d2cbb5589e91f36b205dcaf4b7a8 (diff) | |
download | u-boot-imx-f0df254663d44f7fd4b714542bb4602626837465.zip u-boot-imx-f0df254663d44f7fd4b714542bb4602626837465.tar.gz u-boot-imx-f0df254663d44f7fd4b714542bb4602626837465.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'include')
-rw-r--r-- | include/spi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h index 3fe2e1e..1638b50 100644 --- a/include/spi.h +++ b/include/spi.h @@ -37,11 +37,16 @@ #define SPI_LSB_FIRST 0x08 /* per-word bits-on-wire */ #define SPI_3WIRE 0x10 /* SI/SO signals shared */ #define SPI_LOOP 0x20 /* loopback mode */ +#define SPI_SLAVE 0x40 /* slave mode */ +#define SPI_PREAMBLE 0x80 /* Skip preamble bytes */ /* SPI transfer flags */ #define SPI_XFER_BEGIN 0x01 /* Assert CS before transfer */ #define SPI_XFER_END 0x02 /* Deassert CS after transfer */ +/* Header byte that marks the start of the message */ +#define SPI_PREAMBLE_END_BYTE 0xec + /*----------------------------------------------------------------------- * Representation of a SPI slave, i.e. what we're communicating with. * |