summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRavi Babu <ravibabu@ti.com>2015-02-11 18:54:29 -0500
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>2015-03-30 01:39:20 +0530
commit46122960f0e7bac8cbb97bcccf8dc788c3a0beeb (patch)
treeca04d74539ddc9c1f2659795e4ce8e1579db94ba /drivers
parent81a66446c319225c4a8f0c4c0d9cf4ee10f8c2b9 (diff)
downloadu-boot-imx-46122960f0e7bac8cbb97bcccf8dc788c3a0beeb.zip
u-boot-imx-46122960f0e7bac8cbb97bcccf8dc788c3a0beeb.tar.gz
u-boot-imx-46122960f0e7bac8cbb97bcccf8dc788c3a0beeb.tar.bz2
qspi: dra7x: enable quad mode read for ti-qspi driver
This patch enables QUAD read mode for qspi to improve the read performace while loading the binaries from qspi. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/ti_qspi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index 857b604..3356c0f 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -109,10 +109,17 @@ static void ti_spi_setup_spi_register(struct ti_qspi_slave *qslave)
slave->op_mode_rx = 8;
#endif
+#ifdef CONFIG_QSPI_QUAD_SUPPORT
+ memval |= (QSPI_CMD_READ_QUAD | QSPI_SETUP0_NUM_A_BYTES |
+ QSPI_SETUP0_NUM_D_BYTES_8_BITS |
+ QSPI_SETUP0_READ_QUAD | QSPI_CMD_WRITE |
+ QSPI_NUM_DUMMY_BITS);
+#else
memval |= QSPI_CMD_READ | QSPI_SETUP0_NUM_A_BYTES |
QSPI_SETUP0_NUM_D_BYTES_NO_BITS |
QSPI_SETUP0_READ_NORMAL | QSPI_CMD_WRITE |
QSPI_NUM_DUMMY_BITS;
+#endif
writel(memval, &qslave->base->setup0);
}