diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-31 17:09:23 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-08-31 17:12:38 +0200 |
commit | 746a5530bee37c8d2ffc75609447641b3f3cb55b (patch) | |
tree | a7f5bf3fd5a5ccb7cab25ccc31e9d34f49f12f3d /include | |
parent | ff5660c2bb6cb7d3506ce1de22e963a6d907519d (diff) | |
download | barebox-746a5530bee37c8d2ffc75609447641b3f3cb55b.tar.gz barebox-746a5530bee37c8d2ffc75609447641b3f3cb55b.tar.xz |
spi: i.MX: optimize transfers for ECSPI v2.3
Instead of writing one word to the txfifo and then wait until
one is received in the rxfifo we can write until the txfifos
are not full and read as long the rxfifos contain data. This
makes transfers for the m25p80 driver around 7 times faster
here.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/spi/imx-spi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spi/imx-spi.h b/include/spi/imx-spi.h index 5c89634770..221c66502f 100644 --- a/include/spi/imx-spi.h +++ b/include/spi/imx-spi.h @@ -79,6 +79,7 @@ #define CSPI_2_3_INT_RREN (1 << 3) #define CSPI_2_3_STAT 0x18 -#define CSPI_2_3_STAT_RR (1 << 3) +#define CSPI_2_3_STAT_TF (1 << 2) +#define CSPI_2_3_STAT_RR (1 << 3) #endif /* __SPI_IMX_SPI_H */ |